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

+33
View File
@@ -266,3 +266,36 @@ sudo ./flash-edl.sh nokia-beatles --backup-dir ./backup/nokia-beatles-2720 --ver
`flash-edl.py` writes the normal image to `boot` and the standalone mainline
`boot.img` to `recovery` (Volume Up fallback), and unlocks eMMC `devinfo` first.
A successful Bananarchy boot has not been observed yet.
---
## Nokia 800 Tough (`nokia-coconut`) layered port
Nokia 800 Tough (`nokia-coconut`, FIH `CNT`, MSM8905 QRD SKUB `0x14b`/`0x1000b`/`0x100`,
PMIC `0x1000d`, 512 MiB RAM, no flip cover display) builds through a separate
layered patch `bootloader/lk2nd/nokia-coconut.patch` applied on top of
`bootloader/lk2nd/nokia-beatles.patch`, leaving `nokia-beatles` build outputs
byte-for-byte untouched.
- **Device node and SPI lookup**: `nokia-coconut.dtsi` adds `/lk2nd/nokia-coconut`
(`nokia,coconut`, GC9305 v2 init stream plus secondary source match nodes) to
`msm8905-qrd-skub.dts`, and `spi-display.c` adds `find_panel_init_in_dev()` so
`lk2nd,panel-init` resolves from the active `lk2nd.compatible` device node
before scanning siblings.
- **Building and validating**:
```sh
./scripts/build-lk2nd-coconut.sh
python3 scripts/check-lk2nd-coconut.py --image images/boot-lk2nd-nokia-coconut-display.img --expect-display 1
python3 scripts/test-lk2nd-coconut-port.py
```
- **Hardware verification**: `images/boot-lk2nd-nokia-coconut-display.img` is hardware-verified booting mainline Bananarchy on physical Nokia 800 Tough (`nokia-coconut`) hardware. Before flashing a new unit, back up stock partitions via
EDL first (using `bootloader/loaders/800t.mbn` signed `Nokia_coconut`) so the stock QCDT/panel init stream, keypad
matrix, flashlight GPIO/MPP, speaker PA, camera sensor, and `aboot` lock strings can be inspected offline if needed:
```sh
sudo ./flash-edl.sh nokia-coconut --only-backup --dump-diagnostics --backup-dir ./backup/nokia-coconut
python3 scripts/inspect-stock-msm8905-dump.py ./backup/nokia-coconut/boot-nokia-coconut.img \
./backup/nokia-coconut/recovery-nokia-coconut.img --aboot ./backup/nokia-coconut/aboot-nokia-coconut.img
```