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:
Luxferre committed 2026-11-16 11:45:38 +02:00
1 parent ab53423e33
commit d7992904bf
56 files changed
+31850 -28281

No files matched your search

+3 -3
View File
@@ -27,7 +27,7 @@
### Keypad-first user experience and native DWM plugins
Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs a suite of 26 preloaded C/C++ plugins inside DWM that sleep at 0% CPU and open in `< 2 ms`:
- **System and context menus (`dmenu`)**: instant full-screen 10-line vertical menus with live T9 filtering, built-in submenus, and hardware toggles.
- **System and context menus (`dmenu`)**: instant full-screen 10-line vertical menus with live T9 filtering, built-in submenus, top-level **Stop Timer** / **Cancel Timer** controls when a timer is active, and hardware toggles.
- **Passcode-based fullscreen phone locker (`xlocker`), GUI passcode configurator (`xpasscode`), and Duress Mode**: zero-bypass `240x320` fullscreen numeric passcode lock screen verified against the current user's system shadow password (`/usr/bin/bananarchy-verify-passcode`), blocking all desktop, menu, drawer, terminal, and power actions while locked and automatically handing off the display only during incoming calls. Includes a NeoUI **Passcode Configurator (`xpasscode` / `passcode.so`)** in `Config -> Passcode` to change the real Linux user password (`user`, any numeric length `>= 4` digits) and configure a separate **Duress Passcode**. Entering the duress passcode on the lock screen switches the session into **Duress Mode** (`/tmp/duress_home` blank profile with no contacts, SMS, call logs, or personal files, microSD unmounted and disabled, `xfiles` clamped to the profile directory, Passcode/Privacy Center/Tox/IRC/SIP/`st` terminal hidden and blocked, `*#06#` displaying a session-persistent random Luhn-valid IMEI derived from the device's TAC, and theme/wallpaper locked to `NordFrost.xth` and `nordic-peaks.png` until poweroff or reboot).
- **Idle screen lock**: after the configurable **Screen blank** timeout, `bananarchy-idle-blank.sh` arms `bananarchy-idle-lock.sh`, which triggers `xlocker screenoff` after a 30 s dark-panel grace period (set `~/.config/sxmo/idle_lock_delay` to `0` for immediate locking or `off` to blank without a passcode). Waking the panel cancels the pending lock, so a quick key press returns to the unlocked desktop.
- **Privacy Center (`xprivacy` / `privacy` / `privacy.so`) and `/usr/bin/bananarchy-privacy-ctl`**: 5-tab NeoUI privacy and tunneling control center (`1:Tor`, `2:Warp`, `3:OVPN`, `4:GS`, `5:WG`, hidden and disabled in Duress Mode) with zero background CPU or battery consumption when services are turned off:
@@ -71,7 +71,7 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs
| **Nokia 8110 4G** | `nokia-argon` | Qualcomm MSM8905 (SD205) | 2x Cortex-A7 @ 1.1 GHz, 512 MB | 2.4" 240x320 SPI (`nokia,argon-gc9305-v2-panel.bin`) | `qcom-msm8905-nokia-argon.dtb` | Verified public release (`a1114`) |
| **Nokia 2720 Flip** | `nokia-beatles` | Qualcomm MSM8905 (SD205) | 2x Cortex-A7 @ 1.1 GHz, 512 MB | 2.8" 240x320 + 1.3" 240x240 cover SPI (`nokia,beatles-gc9305-panel.bin`, `nokia,beatles-gc9305-ext-panel.bin`) | `qcom-msm8905-nokia-beatles.dtb` | Verified public release (`a1114`) |
| **Nokia 800 Tough** | `nokia-coconut` | Qualcomm MSM8905 (SD205) | 2x Cortex-A7 @ 1.1 GHz, 512 MB | 2.4" 240x320 SPI (`nokia,coconut-gc9305-panel.bin`) | `qcom-msm8905-nokia-coconut.dtb` | Hardware-verified (upcoming `a1120`; `rebuild-image.sh`) |
| **Nokia 8000 4G** | `nokia-sparkler` | Qualcomm MSM8909 (SD210) | 4x Cortex-A7 @ 1.1 GHz, 512 MB | 2.8" 240x320 SPI (`nokia,sparkler-gc9307-hlt-28-panel.bin`) | `qcom-msm8909-nokia-sparkler.dtb` | Source build (`rebuild-image.sh`) |
| **Nokia 8000 4G** | `nokia-sparkler` | Qualcomm MSM8909 (SD210) | 4x Cortex-A7 @ 1.27 GHz, 512 MB | 2.8" 240x320 SPI (`nokia,sparkler-gc9307-hlt-28-panel.bin`) | `qcom-msm8909-nokia-sparkler.dtb` | Hardware-verified (upcoming `a1120`; `rebuild-image.sh`) |
| **Nokia 6300 4G** *(sibling)* | `nokia-leo` | Qualcomm MSM8909 (SD210) | 4x Cortex-A7 @ 1.1 GHz, 512 MB | 2.4" 240x320 SPI (`nokia,leo-gc9305-hlt-24-panel.bin`) | `qcom-msm8909-nokia-leo.dtb` | Source build (`rebuild-image.sh`) |
---
@@ -197,7 +197,7 @@ All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be
```
Output images are written to `images/`:
- `images/bananarchy-<device>.img`: partitioned MBR image with `pmOS_boot` + `pmOS_root` for EDL `userdata`, `fastboot flash userdata`, or a microSD card.
- `images/boot-bananarchy-<device>.img`: standalone Android `boot.img` with the appended device DTB. On `nokia-beatles` and `nokia-coconut`, the default `--method lk2nd` boots the **source-built** `images/boot-lk2nd-nokia-<device>-display.img` first (`nokia-coconut.patch` layers on top of `nokia-beatles.patch` using upstream QCDT layout, `/cpus` partial-goods fix, `/lk2nd/nokia-<device>` nodes, and GC9305 v2 panel init stream; see `bootloader/lk2nd/README.md`), then lk2nd loads this kernel/DTB from `userdata` via `extlinux.conf`. The default writes lk2nd to `boot` (and refreshes `lk2nd` when present) and this standalone `boot.img` to `recovery`; `--method both` is the fallback that flashes it into both slots. Hold Volume Up (`nokia-beatles`) if the KaiOS splash persists. Stock 2720 and 800 Tough aboot images are locked, so the flasher sets `devinfo.is_unlocked=1` by default (see `scripts/make-unlocked-devinfo.py`); pass `--no-unlock-bootloader` only if you know the device is already unlocked. On `nokia-beatles`, eMMC `devinfo` unlock is effective (`VB_L` path, no `keymaster`), so EDL alone is sufficient; stock fastboot / `oem unlock-go` is not required. `--only-unlock` is optional. Before flashing an unverified `nokia-coconut` unit, back up stock partitions first with `sudo ./flash-edl.sh nokia-coconut --only-backup --dump-diagnostics` and inspect them offline with `scripts/inspect-stock-msm8905-dump.py`. After changing a device DTB, run `scripts/repack-beatles-bootimg.py` / `scripts/sync-beatles-bootfs.py --device <device> --debug-cmdline`; rebuild lk2nd with `scripts/build-lk2nd-beatles.sh` or `scripts/build-lk2nd-coconut.sh`; validate with `scripts/check-beatles-bootimg.py --device <device>`, `scripts/check-lk2nd-beatles.py` / `scripts/check-lk2nd-coconut.py`, `scripts/test-lk2nd-beatles-port.py` / `scripts/test-lk2nd-coconut-port.py`, and `scripts/sync-beatles-bootfs.py --device <device> --check`. If a 2720/800 Tough only shows the KaiOS logo and then goes dark, check `lsusb`: `05c6:900e` means aboot crashed into EDL. The confirmed cause on `nokia-beatles` was `ASSERT FAILED at (platform/msm_shared/partial_goods.c:80): 0` because lk2nd's QCDT DTBs lacked `/cpus`; both ports now add it. Flash `images/boot-lk2nd-nokia-<device>-diagnostic.img` with `--lk2nd-image --verify --dump-diagnostics` (forced fastboot + runtime `oem display-init` probe, QCDT panel fallback for chain-loading, final post-update `oem scan-dtb`, and bounded pstore console staging); see `bootloader/lk2nd/README.md`.
- `images/boot-bananarchy-<device>.img`: standalone Android `boot.img` with the appended device DTB. On `nokia-beatles`, `nokia-coconut`, and `nokia-sparkler`, the default `--method lk2nd` boots the **source-built** `images/boot-lk2nd-nokia-<device>-display.img` first (`nokia-coconut.patch` layers on top of `nokia-beatles.patch`, and `nokia-sparkler.patch` layers on top of both for MSM8909 MTP with GC9307 + ST7789VX2 SPI panel streams; see `bootloader/lk2nd/README.md`), then lk2nd loads this kernel/DTB from `userdata` via `extlinux.conf`. The default writes lk2nd to `boot` (and refreshes `lk2nd` when present) and this standalone `boot.img` to `recovery`; `--method both` is the fallback that flashes it into both slots. Hold Volume Up (`nokia-beatles`) if the KaiOS splash persists. Stock 2720, 800 Tough, and 8000 4G aboot images are locked, so the flasher sets `devinfo.is_unlocked=1` by default (see `scripts/make-unlocked-devinfo.py`); pass `--no-unlock-bootloader` only if you know the device is already unlocked. On `nokia-beatles`, eMMC `devinfo` unlock is effective (`VB_L` path, no `keymaster`), so EDL alone is sufficient; stock fastboot / `oem unlock-go` is not required. `--only-unlock` is optional. Before flashing an unverified `nokia-coconut` or `nokia-sparkler` unit, back up stock partitions first with `sudo ./flash-edl.sh <device> --only-backup --dump-diagnostics` and inspect them offline with `scripts/inspect-stock-msm8905-dump.py`. After changing a device DTB, run `scripts/repack-beatles-bootimg.py` / `scripts/sync-beatles-bootfs.py --device <device> --debug-cmdline`; rebuild lk2nd with `scripts/build-lk2nd-beatles.sh`, `scripts/build-lk2nd-coconut.sh`, or `scripts/build-lk2nd-sparkler.sh`; validate with `scripts/check-beatles-bootimg.py --device <device>`, `scripts/check-lk2nd-beatles.py` / `scripts/check-lk2nd-coconut.py` / `scripts/check-lk2nd-sparkler.py`, `scripts/test-lk2nd-beatles-port.py` / `scripts/test-lk2nd-coconut-port.py` / `scripts/test-lk2nd-sparkler-port.py` / `scripts/test-sparkler-port.py`, and `scripts/sync-beatles-bootfs.py --device <device> --check`. If a 2720/800 Tough/8000 4G only shows the KaiOS logo and then goes dark, check `lsusb`: `05c6:900e` means aboot crashed into EDL. The confirmed cause on `nokia-beatles` was `ASSERT FAILED at (platform/msm_shared/partial_goods.c:80): 0` because lk2nd's QCDT DTBs lacked `/cpus`; all three ports now add it. Flash `images/boot-lk2nd-nokia-<device>-diagnostic.img` with `--lk2nd-image --verify --dump-diagnostics` (forced fastboot + runtime `oem display-init` probe, QCDT panel fallback for chain-loading, final post-update `oem scan-dtb`, and bounded pstore console staging); see `bootloader/lk2nd/README.md`.
---