Port Nokia 800 Tough (nokia-coconut), fix microSD detection, and stage upcoming a1120 (cocojamboo) build

- Migrate nokia-tough to canonical nokia-coconut while keeping CLI aliases, add layered bootloader/lk2nd/nokia-coconut.patch, bootfs/bootimg validators, and offline scripts/inspect-stock-msm8905-dump.py

- Complete nokia-coconut Stage 2 hardware bring-up: wire 6-column 22-key keypad (gpio0, gpio3, gpio7, gpio99, gpio6, gpio1), gpio98 KEY_POWER, and pon@800:resin KEY_DOWN (0x6c); split leds-msm8905-torch into GPIO_13 white:torch (dedicated top-edge flashlight) and GPIO_32 camera:flash (rear camera flash for camera.so and bananarchy-photo)

- Restore sdhci@7864000 non-removable across all six DTS/DTB targets, remove unwired gpio38 cd-gpios/sdc2-cd-* states, and harden sxmo_sdcard.sh under flock

- Register upcoming build a1120 (cocojamboo) in scripts/version.sh, scripts/check-rebuild.sh, CHANGELOG.md, AGENTS.md, README.md, and MANUAL.md with verified hashes across nokia-argon, nokia-beatles, and nokia-coconut
This commit is contained in:
Luxferre committed 2026-11-15 18:00:10 +02:00
1 parent fc5c4282f5
commit ab53423e33
60 files changed
+2669 -453

No files matched your search

+3 -3
View File
@@ -70,7 +70,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-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` | Source build (`rebuild-image.sh`) |
| **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 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`) |
@@ -192,12 +192,12 @@ All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be
# Or build for Nokia 2720 Flip, Nokia 800 Tough, or Nokia 8000 4G:
./rebuild-image.sh nokia-beatles --mkinitfs
./rebuild-image.sh nokia-tough --mkinitfs
./rebuild-image.sh nokia-coconut --mkinitfs
./rebuild-image.sh nokia-sparkler --mkinitfs
```
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` the default `--method lk2nd` boots the **source-built** `images/boot-lk2nd-nokia-beatles-display.img` first (the upstream QCDT layout with a compact `/lk2nd/nokia-beatles` node, `/cpus` added to every QCDT DTB to satisfy aboot's partial-goods ASSERT, and the 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 this standalone `boot.img` to `recovery`; `--method both` is the fallback that flashes it into both slots. Hold Volume Up if the KaiOS splash persists. The stock 2720 aboot is locked, so the flasher also 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. The eMMC `devinfo` unlock is effective here (`VB_L` path, no `keymaster`), so EDL alone is sufficient; stock fastboot / `oem unlock-go` is not required. `--only-unlock` is optional. After changing that DTB, run `scripts/repack-beatles-bootimg.py` and `scripts/sync-beatles-bootfs.py --debug-cmdline`; rebuild lk2nd with `scripts/build-lk2nd-beatles.sh` if the lk2nd port changed; validate with `scripts/check-beatles-bootimg.py`, `scripts/check-lk2nd-beatles.py`, `scripts/test-lk2nd-beatles-port.py` and `scripts/sync-beatles-bootfs.py --check`. If the phone only shows the KaiOS logo and then goes dark, check `lsusb`: `05c6:900e` means aboot crashed into EDL. The confirmed cause was `ASSERT FAILED at (platform/msm_shared/partial_goods.c:80): 0` because lk2nd's QCDT DTBs lacked `/cpus`; the port now adds it. Flash `images/boot-lk2nd-nokia-beatles-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), if it returns to `900e`, re-read aboot's RLOG buffer for the next ASSERT (the untouched `bootloader/lk2nd-msm8909.img` lacks `/cpus` too and will crash identically); see `bootloader/lk2nd/README.md`.
- `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`.
---