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:
1 parent
fc5c4282f5
commit
ab53423e33
60 files changed
+2669
-453
No files matched your search
+24
-2
@@ -10,7 +10,22 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
---
|
||||
|
||||
## Unreleased
|
||||
## 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.
|
||||
|
||||
### MicroSD card detection fix across all targets
|
||||
|
||||
- **Restore `non-removable;` on `sdhci@7864000` (`mmc1`)**: removed the unwired `gpio38` `cd-gpios = <0x27 0x26 0x01>;` property and `sdc2-cd-on-state` / `sdc2-cd-off-state` (`phandle = <0x90>` / `<0x91>`) pinctrl states, and restored upstream `non-removable;` on `sdhci@7864000` across all six DTS/DTB targets (`nokia-argon`, `nokia-beatles`, `nokia-beatles-cover`, `nokia-coconut`, `nokia-sparkler`, `nokia-leo`) and `patches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch` without altering `l8`/`l11`/`l12` `regulator-allow-set-load;`. This eliminates `gpio38` holding `cd-gpios` permanently high/absent with zero card-detect interrupts while avoiding `broken-cd` polling, keeping `7864900.sdhci` in `runtime_status = suspended` and `l11`/`l12` at `0 mA` when empty or idle.
|
||||
- **Harden `/usr/bin/sxmo_sdcard.sh`, docs, and preflight guards**: preferred `mmcblkNp1..4` partitions over raw whole-disk nodes in `find_sd_part()`, added `probe_controller --force` unbind/rebind with `20 x 0.1 s` SDXC init polling, `udevadm settle`, and `p1` node wait, serialized root `mount`/`unmount` under `flock -w 10 /run/sxmo_sdcard.lock` (closing fd 9 before background `notify-send` helpers), cleanly unbound `7864900.sdhci` on `unmount` while silencing expected `remove` notifications, fixed sticky-`/tmp` `Permission denied` stderr noise in unprivileged `do_status()`, updated `10-power-save.start` and `MANUAL.md`, and added `scripts/check-rebuild.sh` guards forbidding `cd-gpios`, `sdc2-cd-*`, and `broken-cd` across all six DTS files and five prebuilt DTBs.
|
||||
- **Live 128 GB SDXC verification**: verified on connected `nokia-argon` that a 128 GB exFAT SDXC card (`SDR104`, `/dev/mmcblk1p1`) auto-mounts at `/media/sdcard`, `unmount` -> `absent` -> `rescan` -> `mounted` works as `user` via `doas` with zero stderr noise, `gpio38` stays unclaimed (`in low func0 2mA pull down`), and `7864900.sdhci` returns to `runtime_status = suspended` with `l11`/`l12` at `0 mA`.
|
||||
|
||||
### Nokia 800 Tough (`nokia-coconut`) target canonicalization, `lk2nd` port, keypad, and dual-LED bring-up
|
||||
|
||||
- **Canonical `nokia-coconut` target migration**: renamed `devices/nokia-tough` to `devices/nokia-coconut` and `50-device-nokia-tough.conf` to `50-device-nokia-coconut.conf`, and updated `rebuild-image.sh`, `flash-edl.py`, `prepare-release.sh`, `scripts/apply-bananarchy-overlay.sh`, `scripts/bootstrap-rootfs.sh`, `scripts/set-bananarchy-hostname.sh`, `scripts/build-kernel-audio.sh`, `bananarchy-engmenu-ctl`, `scripts/check-rebuild.sh`, and documentation to use `nokia-coconut` canonically while preserving `nokia-tough` / `tough` / `coconut` as CLI aliases.
|
||||
- **Stage 1 `lk2nd`, kernel DTS, and offline tooling**: added layered `bootloader/lk2nd/nokia-coconut.patch`, `scripts/build-lk2nd-coconut.sh`, `scripts/check-lk2nd-coconut.py`, `scripts/test-lk2nd-coconut-port.py`, and `find_panel_init_in_dev()` active-device panel lookup without modifying `nokia-beatles` `lk2nd` binaries; added stock SKUB root IDs (`0x14b`/`0x1000b`/`0x100`, PMIC `0x1000d`), `512 MiB` `/memory`, `2,100 mAh` battery capacity, and deleted phantom 8110 slider `gpio-keys` switches from `qcom-msm8905-nokia-coconut.dts` and `patches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch`; parameterized `scripts/check-beatles-bootimg.py` and `scripts/sync-beatles-bootfs.py` with `--device nokia-coconut`; and added `--only-backup` in `flash-edl.py` plus offline `scripts/inspect-stock-msm8905-dump.py` for Stage 2 hardware bring-up.
|
||||
- **Stage 2 4x6 matrix keypad, `KEY_POWER`, and `pm8941_resin` D-pad Down fix**: updated `devices/nokia-coconut/qcom-msm8905-nokia-coconut.dts`, `prebuilt/kernel-6.12.1-msm8916/dtbs/qcom-msm8905-nokia-coconut.dtb`, and `patches/kernel/0002-msm8905-nokia-beatles-and-coconut-dts.patch` from live stock hardware/DTB inspection so `matrix-keypad` scans all six columns (`gpio0, gpio3, gpio7, gpio99, gpio6, gpio1`) across the 22-entry `linux,keymap` (`0x500d4` `KEY_CAMERA` -> `XF86WebCam`, `(1,5)` `0x105000e` `BackSpace`, `(2,0)` `0x200007f` `XK_Menu`, `(3,2)` `0x302009e` `XF86Back`, `(3,3)` `0x3030067` `KEY_UP`, `(3,4)` `0x304006c` `KEY_DOWN`), `gpio-key-active-state` covers `gpio98` with `key-end` mapped to `KEY_POWER` (`0x74`), `key-up` remains on `gpio90` (`0x67`), and `pon@800:resin` (`pm8941_resin`) emits `KEY_DOWN` (`0x6c` -> `Down`) instead of `KEY_VOLUMEDOWN` (`0x72` -> `XF86AudioLowerVolume`) so physical D-pad Down navigates menus rather than adjusting toggles/sliders in `xdrawer` and NeoUI menus.
|
||||
- **Stage 2 dedicated top-edge flashlight (`GPIO_13`) vs rear camera flash (`GPIO_32`)**: updated `src/leds-msm8905-torch/leds-msm8905-torch.c` (`leds-msm8905-torch.ko.zst`) so `of_machine_is_compatible("nokia,coconut")` registers `white:torch` on TLMM `GPIO_13` (`0x0100d000`, dedicated top-edge flashlight driven by `sxmo_flashtoggle.sh`, `dmenu`, `xdrawer`, and quick actions) and `camera:flash` on TLMM `GPIO_32` (`cci_timer1` 150 kHz SY7807 PWM rear camera flash LED), disabling both on reboot/poweroff while preserving single-LED `white:torch` on `GPIO_32` for `nokia-argon` and `nokia-beatles`; updated `src/dwm-plugins/camera_plugin.cpp` (`camera.so`), `overlay/rootfs/usr/bin/bananarchy-photo`, and `overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_power.sh` to prefer `camera:flash` with `white:torch` fallback, and added DTS/DTB/driver guards in `scripts/check-rebuild.sh`, `X_KEYPAD_MAPPING.md`, and `MANUAL.md`.
|
||||
|
||||
### 72-hour DSDS and Wi-Fi standby battery optimizations (`0012`)
|
||||
|
||||
@@ -25,7 +40,14 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
### Initramfs per-archive `depmod` hook and `.ko.zst`-only module hygiene
|
||||
|
||||
- **Eliminate Stage 2 `udevd` missing-module console errors**: added executable hook `overlay/rootfs/etc/boot-deploy/hooks/10-initramfs-depmod.sh` so `boot-deploy` unpacks each staged `initramfs` cpio archive, runs `depmod -b` against its `6.12.1-msm8916` module subset (`27` modules on `nokia-argon`, `30` on `nokia-beatles`), verifies every `modules.dep` entry exists in the archive, and repacks it before creating `boot.img` or copying `/boot/initramfs`. This eliminates the `<27>` `udevd` `No such file or directory` boot console errors on `qcom_pil_info.ko.zst` and `snd-soc-qcom-common.ko.zst`.
|
||||
- **Module install hygiene, Alpine 3.24 chroot `depmod` libs, and image verification**: updated `scripts/apply-bananarchy-overlay.sh` to remove stale uncompressed `.ko` files and copy only `*.ko.zst` across all prebuilt module directories; updated `rebuild-image.sh` to stage `libz.so*` and `libcrypto.so*` from both `/lib/` and `/usr/lib/` (`-aL`) into `/tmp/hostbin/` with guaranteed chroot failure cleanup; added initramfs cpio `modules.dep`/`modules.alias` and `.ko*` guards in `scripts/check-rebuild.sh`; and rebuilt and verified local `a1114` / `carbonara` images (`images/bananarchy-nokia-argon.img` SHA-256 `753c186db1fa5e7d58f3252ad344004bcb0d6fb26eb810ae9427d572cd7d94ca`, `images/bananarchy-nokia-beatles.img` SHA-256 `12eb7e589a40c3935fcf283f3771b1e7e65d04b08b6d632c23b0f290304dd673`, and `images/boot-bananarchy-nokia-beatles.img` SHA-256 `d6b82239f80038c1bd916c36d4c674dc1e36996b3d52c65efdd545ff320a08d8`).
|
||||
- **Module install hygiene, Alpine 3.24 chroot `depmod` libs, and image verification**: updated `scripts/apply-bananarchy-overlay.sh` to remove stale uncompressed `.ko` files and copy only `*.ko.zst` across all prebuilt module directories; updated `rebuild-image.sh` to stage `libz.so*` and `libcrypto.so*` from both `/lib/` and `/usr/lib/` (`-aL`) into `/tmp/hostbin/` with guaranteed chroot failure cleanup; added initramfs cpio `modules.dep`/`modules.alias` and `.ko*` guards in `scripts/check-rebuild.sh`; earlier intermediate `a1114` builds are superseded by the `a1120` / `cocojamboo` images below.
|
||||
|
||||
### 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`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user