Bring up nokia-sparkler SMP/cpufreq/lk2nd/cam/haptics, fix timer and EDL USB timeout
- Add 0013 early-SCM 4-core SMP + cpufreq kernel patch and clock-frequency DT nodes - Complete nokia-sparkler lk2nd port, boot/X11 session startup, 180-deg cached camera, and 157 Hz haptic audio - Replace root-only timer backend with permissionless sxmo_timer.sh and keypad/hook cancellation - Fix EDL Firehose rawmode ACK, USB active-config preservation, *+# hint, and 30 s default USB timeout - Sync a1120 (cocojamboo) prebuilts, docs, tests, and verified checksums in check-rebuild.sh
This commit is contained in:
1 parent
ab53423e33
commit
d7992904bf
56 files changed
+31850
-28281
No files matched your search
+16
-4
@@ -12,7 +12,18 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
## Upcoming build `a1120` — codename `cocojamboo`
|
||||
|
||||
Upcoming release build (`a1120` / `cocojamboo` via `scripts/version.sh`) targeting **Nokia 8110 4G (`nokia-argon`)**, **Nokia 2720 Flip (`nokia-beatles`)**, and **Nokia 800 Tough (`nokia-coconut`)** while keeping `a1114` (`carbonara`) as the current published release.
|
||||
Upcoming release build (`a1120` / `cocojamboo` via `scripts/version.sh`) targeting **Nokia 8110 4G (`nokia-argon`)**, **Nokia 2720 Flip (`nokia-beatles`)**, **Nokia 800 Tough (`nokia-coconut`)**, and **Nokia 8000 4G (`nokia-sparkler`)** while keeping `a1114` (`carbonara`) as the current published release.
|
||||
|
||||
### Nokia 8000 4G (`nokia-sparkler`) hardware-verified `lk2nd`, 4-core SMP/`cpufreq`, 157 Hz haptic audio, camera, and EDL bring-up
|
||||
|
||||
- **Layered `lk2nd` port (`bootloader/lk2nd/nokia-sparkler.patch`)**: added `nokia-sparkler.dtsi` (`msm8909-mtp.dts` `/lk2nd/nokia-sparkler`, matching `androidboot.hw.name=sparkler` without requiring `lk2nd,match-panel;`, GC9307 HLT 15-command and ST7789VX2 CTC 11-command 2.8" SPI init streams on BLSP1 QUP5 `0x078b9000`, `*` on `gpio90` as `KEY_VOLUMEUP` `0x115` alongside `#` `pm8941_resin` and Top Power) plus `"nokia,sparkler"` / `"nokia,leo"` support in `spi-display.c`; added `scripts/build-lk2nd-sparkler.sh`, `scripts/check-lk2nd-sparkler.py`, and `scripts/test-lk2nd-sparkler-port.py`, building `images/boot-lk2nd-nokia-sparkler{,-diagnostic,-display}.img` without altering `nokia-beatles` or `nokia-coconut` `lk2nd` images.
|
||||
- **4-core Cortex-A7 SMP, `cpufreq` DVFS up to `1.267 GHz`, and clean fast X11 startup (`0013`)**: added `patches/kernel/0013-msm8909-early-scm-smp-cpufreq.patch` allocating a cache-flushed `early_virt` page for 6-argument `qcom_scm_set_boot_addr_mc()` (`ARM_SMCCC_STD_CALL`) before `qcom_scm_probe()` creates its mempool, guarding `qcom-cpufreq-nvmem.c` with `cpu_present(cpu)`, and adding `clock-frequency = <1094400000>;` to `/cpus/cpu@0..3` in `qcom-msm8909.dtsi` and `nokia-{sparkler,leo}.dts`; ordered `kill-plymouth` (`after dbus elogind`) and raised `Xorg :0` readiness wait to `10 s` in `bananarchy-x11-session.sh`, verified live with `present=0-3`, `online=0-3` (`nproc=4`), `schedutil` scaling to `1.2672 GHz` (`a53pll`), zero SMP/`clock-frequency`/`cpuidle` boot errors, and instant first-pass `dwm` / `fcitx5` startup.
|
||||
- **Kernel DTS, 157 Hz speaker-LRA haptic audio, dual-GPIO torch, and upright cached-row camera (`msm8905-cam` / `camera.so`)**: set `deviceinfo_drm="true"` and `matrix_keypad`/`matrix_keymap` in `devices/nokia-sparkler/modules-initfs`; updated `qcom-msm8909-nokia-sparkler.dts` and `qcom-msm8909-nokia-sparkler.dtb` with stock MSM8909 MTP root IDs (`0xf5`/`0x8`/`0x100`/`0x1000d`), `512 MiB` `/memory`, QDSP6/Q6Voice audio (`wcd_codec: audio-codec@f000`, `apr`, `sound@7702000` with `dai-link-multimedia3` disabled, `lpass_codec: audio-codec@771c000`), Sxmo keypad codes (`0x500d4` `KEY_CAMERA`, `0x100007f` `KEY_COMPOSE`, `0x205000e` `BackSpace`, `0x301009e` `KEY_BACK`), and disabled unpopulated PM8909 `vibrator@c000` (`status = "disabled";`); added native `157.0 Hz` speaker-LRA haptic audio (`vibrate_haptic_audio()` over PipeWire/ALSA `default` with `500 ms` buffer and `plughw:0,0` fallback) to `src/dwm-plugins/sxmo_vibrate.c` (`links libasound` + `libm`); updated `src/leds-msm8905-torch/leds-msm8905-torch.c` (`GPIO_32` `flash-en` + `GPIO_31` `flash-now` `BC847BS`); added `nokia,sparkler` and `nokia,leo` to `rotate_180` plus cached `row_buf[2][CAM_RAW_STRIDE]` burst copies in `src/msm8905-cam/msm8905-cam.c` and reduced `camera_plugin.cpp` post-frame sleep to `10 ms` (verified `/dev/video0` frame time reduced from `1.34 s` to `0.193–0.229 s/frame` with upright JPEG output); wired `nokia-sparkler` across `check-beatles-bootimg.py`, `sync-beatles-bootfs.py`, `flash-edl.py`, `prepare-release.sh`, `check-rebuild.sh`, `test-sparkler-port.py`, and docs.
|
||||
- **EDL Firehose `<read>`, USB reconnect, and `30 s` USB timeout (`vendor/edl/Library/{firehose,usb,sahara}.py`, `flash-edl.py`, `MANUAL.md`)**: handled standard Qualcomm `rawmode="true"` XML ACK packets in `qualcomm_firehose` (`_begin_raw_read` / `_read_raw_sectors`) alongside FIH's immediate raw streams and capped reads to `min(bytes_to_read, max_chunk)`, fixing GPT/partition corruption on `8k.mbn` (`nokia-sparkler`, `nokia-leo`) and `2720v.mbn`; skipped redundant `set_configuration()` in `usb_class.connect()` when an active USB configuration already exists; raised per-transfer USB bulk read/write timeout to `30000 ms` (`DEFAULT_USB_TIMEOUT_MS = 30000`, `flash-edl.py --usb-timeout`, `2000 ms` Sahara connect probe, and `5–30 s` Fastboot/ADB kick timeouts); added `nokia-leo` to `UNLOCK_DEFAULT_DEVICES`, suppressed duplicate `Bootloader (boot)` output when a per-device `lk2nd` image is active, updated the EDL/Fastboot button-combo hints to **`*` + `#`** (EDL) and **`#`** (Fastboot) for `nokia-sparkler` and `nokia-leo`, added `scripts/test-edl-firehose-read.py`, and verified full live `--only-backup --dump-diagnostics` extraction from the connected `nokia-sparkler`.
|
||||
|
||||
### Keypad-friendly timer countdown and alarm cancellation across all targets
|
||||
|
||||
- **Permissionless `sxmo_timer.sh`, `dmenu` **Stop Timer** / **Cancel Timer**, and hook integration**: replaced `sxmo_sleep -c boottime_alarm` (`CLOCK_BOOTTIME_ALARM`, which failed with `Operation not permitted` for unprivileged `user`) with tracked `${XDG_RUNTIME_DIR}/sxmo_timers/*.timer` + `/tmp/sxmo_timer_ringing` state in `overlay/rootfs/usr/bin/sxmo_timer.sh`; added non-blocking `stty min 0 time 10` + `dd | tr` keypad cancellation (`Enter`/`0`/`q`/`BackSpace`/`#`/`*`) during countdown and any-key dismissal on expiry; replaced the infinite notification/vibration loop with a single wake, one replaceable critical notification, and a bounded `30 s` alert loop (`pw-play` / `mpv` + `sxmo_vibrate`) alongside `status`, `stop`, and `stop_ringing` subcommands and `HUP INT TERM EXIT` traps; added live `timer_menu_state()` **Stop Timer** / **Cancel Timer** items at the top of the `Sys` and `Timer` menus and `Clear Notification` / `sxmo_hook_mute_ring.sh` / `sxmo_hook_discard.sh` cancellation hooks, verified offline (`scripts/test-timer.py`) and live on `nokia-sparkler`.
|
||||
|
||||
### MicroSD card detection fix across all targets
|
||||
|
||||
@@ -45,9 +56,10 @@ Upcoming release build (`a1120` / `cocojamboo` via `scripts/version.sh`) targeti
|
||||
### Image persistence and upcoming `a1120` (`cocojamboo`) release archives
|
||||
|
||||
- **Verified `a1120` / `cocojamboo` image set (`--mkinitfs`) and packaged archives**:
|
||||
- `images/bananarchy-nokia-argon.img`: SHA-256 `8444544b0395c5bdef2f76b87721a99c326a868465d8236e85ff5572e7634cc0` (packaged in `bananarchy-nokia-argon-a1120-cocojamboo.zip`, SHA-256 `44f49c177749e60bbd511fec3c458fdd4393644ebcace0f050f9842c6502fcf4`, alongside `bootloader/lk2nd-msm8909.img`).
|
||||
- `images/bananarchy-nokia-beatles.img`: SHA-256 `7749caec22f5803112d21d24f032c09162bc7e6a239beabddb903272ebbd79c8`, `images/boot-bananarchy-nokia-beatles.img`: SHA-256 `cc58d92e6a54eab77f355a148cbc0b424d2da64e65353e3163a9cfc1eba37235`, and `images/boot-lk2nd-nokia-beatles-display.img`: SHA-256 `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d` (packaged in `bananarchy-nokia-beatles-a1120-cocojamboo.zip`, SHA-256 `4021aebf1c5c126e313947626d736cfc11d76f81e640f6d9862461ad0a5bbd1d`).
|
||||
- `images/bananarchy-nokia-coconut.img`: SHA-256 `19d17f31b970099dc6c212da58efdf8a99249aaa43e65ebeb6e2b904d0c5809d`, `images/boot-bananarchy-nokia-coconut.img`: SHA-256 `2ff959ec89916adc02296adb948788bf8180009cd26454643e9f59334f09ad08`, and `images/boot-lk2nd-nokia-coconut-display.img`: SHA-256 `e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a` (packaged in `bananarchy-nokia-coconut-a1120-cocojamboo.zip`, SHA-256 `2899c34b0f29623ce2d4e32e4a1a2e04763af4be0e7a312b0b47a7d979e02d54`).
|
||||
- `images/bananarchy-nokia-argon.img`: SHA-256 `82f617e425fa9d33b1395c4e35639a6207e3c9d0aa376c7cedf35fddaccb5cc2` (packaged in `bananarchy-nokia-argon-a1120-cocojamboo.zip`, SHA-256 `b1d47511ae36384a16db8e1cf64dc5b39ed72afcaf0128d555dbea8bffc2256b`, alongside `bootloader/lk2nd-msm8909.img`).
|
||||
- `images/bananarchy-nokia-beatles.img`: SHA-256 `cc40c682fcdacb6415c112494344826362de2f965e6238685462859de66d660e`, `images/boot-bananarchy-nokia-beatles.img`: SHA-256 `786e9a1f4e4ae92efc948393a1d8f04a9405840a214b6ef37914cf5821d7ed82`, and `images/boot-lk2nd-nokia-beatles-display.img`: SHA-256 `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d` (packaged in `bananarchy-nokia-beatles-a1120-cocojamboo.zip`, SHA-256 `ab6b0bbea53298fdabb781ac8f29756f6f096872cde80fe31e4e45c851a3329f`).
|
||||
- `images/bananarchy-nokia-coconut.img`: SHA-256 `e82d64bd9f14b1fcca2c078e9fd43a4c4268b29ff688f268b32a939213be0545`, `images/boot-bananarchy-nokia-coconut.img`: SHA-256 `55299e15abe5923fc525b4e54e81aa4791f0e61f8a070e84fe7497f75c62d7d7`, and `images/boot-lk2nd-nokia-coconut-display.img`: SHA-256 `e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a` (packaged in `bananarchy-nokia-coconut-a1120-cocojamboo.zip`, SHA-256 `3ff640fcfa4360bd23e354379ffd343dd26a782daf096c770adda917a2ea6e75`).
|
||||
- `images/bananarchy-nokia-sparkler.img`: SHA-256 `5dc17319742e4af95facc42681f0fe6fb2e80ddf30f421f3c54b9dbe04fefd3f`, `images/boot-bananarchy-nokia-sparkler.img`: SHA-256 `8205e2cb486d8ecc1e261a5c0b6f9ee7f70fd4eed2534d5bafc28ebc62d953d8`, and `images/boot-lk2nd-nokia-sparkler-display.img`: SHA-256 `bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f` (packaged in `bananarchy-nokia-sparkler-a1120-cocojamboo.zip`, SHA-256 `cd27557b8bc13ca83d04e3e41b40876d7fedb5e1149f744aee1dc8ca7a7bea73`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user