Use target hostnames and restore lk2nd bootloader reboot
This commit is contained in:
1 parent
1c011b360a
commit
3b96b8f242
22 files changed
+203
-70
No files matched your search
+11
-3
@@ -9,6 +9,14 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — target hostnames and verified bootloader reboot
|
||||
|
||||
- **Target-specific hostname**: added `scripts/set-bananarchy-hostname.sh` as the single source for `/etc/hostname`, `/etc/hosts` and the OpenRC hostname runlevel link. Both the clean bootstrap and the overlay application call it, so `nokia-argon`, `nokia-beatles`, `nokia-tough`, `nokia-sparkler` and `nokia-leo` images no longer inherit the `nokia-argon` default. `check-rebuild.sh` executes the helper for all five canonical targets and guards the default `147147` unlock passcode hash generation; the locker/passcode path was left unchanged after the user confirmed it works.
|
||||
- **Reboot to bootloader**: the Power menu item is now **Reboot to bootloader** and calls `sxmo_power.sh bootloader` (the `loader` alias remains). The torch module writes the low-only `FASTBOOT_MODE` cookie on the beatles stock chain and the dual low/high cookie on other targets, so both the patched beatles lk2nd and generic lk2nd can read the reboot reason. The rebuilt module keeps the `6.12.1-msm8916 SMP preempt mod_unload ARMv7 p2v8` vermagic.
|
||||
- **Cookie-enabled display lk2nd**: rebuilt `images/boot-lk2nd-nokia-beatles-display.img` from the pinned upstream commit and patch. Its hash is `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d`, the same source-built image whose visible Fastboot menu was previously live-verified. The temporary `--allow-missing-cookie` validator escape was removed; `prepare-release.sh` now rebuilds stale or missing lk2nd images before packaging.
|
||||
- **Minimal image update**: patched only hostname/hosts, the dmenu label, the power/context menu text, `sxmo_power.sh` and the torch module inside both local raw images; `locker.so`, `dwm`, the X session and the known-good main-panel stack are unchanged. New local raw image hashes are `69a44f60eb123ebddf600be927155dc4a599ec35b7a0cf80060f4ba01f599f08` for `nokia-argon` and `f4e9b8b2b36d4ffa9ba4f74de293b14f16b5ed45bbd5ab1d62bc2023242b73b2` for `nokia-beatles`; both standalone and raw boot filesystems are unchanged.
|
||||
- **Validation**: `check-rebuild.sh` passes with and without local `images/`, `sync-prebuilt-overlay.sh --check` reports zero drift, `test-lk2nd-beatles-port.py` requires the reboot cookie, `check-beatles-bootimg.py` and `sync-beatles-bootfs.py --check` pass, and `e2fsck -fn` is clean on both patched root filesystems. Both `nokia-argon` and `nokia-beatles` were rebuilt into scratch `IMAGES_DIR` outputs with `--mkinitfs`; each image has the correct hostname, menu label and rebuilt torch module, and both source-built boot images pass the boot-image validator. The exact `b554…` lk2nd image was live-verified earlier; no additional EDL/fastboot reboot loop was performed.
|
||||
|
||||
## Unreleased — decisive known-good 2720 Flip recovery
|
||||
|
||||
- **Live regression**: after the final `a1108` image set, X started and SSH worked, but the user saw a garbled main panel and reported that input was unresponsive. X inspection found a viewable `dmenu` window holding the keyboard path; `xdotool key Escape` unmapped it. The fullscreen `Phone Lock` window was already unmapped.
|
||||
@@ -21,7 +29,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
- **Flash result**: `boot` and `recovery` read-back matched, `userdata` wrote successfully, the stock `system` superblock was cleared, and reset returned `18d1:d001` Linux USB with root SSH, user network, Xorg and dwm running.
|
||||
- **Post-boot state**: `state=unlock`, no lock flag, backlight 14, `xset` OK, `keypad`, `gpio-keys` and `pm8941_pwrkey` enumerated by X, `fb0=240,320` at 32 bpp, `/dev/fb1` absent, no `spi_mux`/`mux_gpio`/`mux_core` loaded, and both `dmenu` and `Phone Lock` windows unmapped. The X screenshot is a normal 240x320 desktop with 12118 colors rather than a garbled or blank frame.
|
||||
- **Release note**: the verified `images/` artifacts are local build outputs and are not tracked in git. `scripts/check-rebuild.sh` pins their hashes when present; `prepare-release.sh` rebuilds missing artifacts from source and copies `bootloader/lk2nd-msm8909.img` for non-beatles targets. `BA_REBUILD=1` remains the explicit forced-rebuild path.
|
||||
- **Final source guard**: `dwm` is back on the known-good 350 ms wake guard, and the X session performs one startup `dmenu` close plus `Escape` to release stale keyboard grabs. The known-good display lk2nd binary predates the low-bit reboot cookie, so `scripts/check-lk2nd-beatles.py` accepts that one image with `--allow-missing-cookie` while the source patch retains the cookie.
|
||||
- **Final source guard**: `dwm` is back on the known-good 350 ms wake guard, and the X session performs one startup `dmenu` close plus `Escape` to release stale keyboard grabs. The later release image is rebuilt from source and now requires the low-bit reboot cookie; `--allow-missing-cookie` was removed.
|
||||
- **Cleanup**: EDL backup dumps, local lk2nd build caches, Python bytecode, stale diagnostic boot images and scratch logs were removed from the release tree. Image blobs were removed from git tracking while the local verified copies remain available for immediate packaging and flashing. Both `nokia-argon` and `nokia-beatles` images were rebuilt into scratch output directories and validated for flashability without overwriting the verified release images.
|
||||
|
||||
## Unreleased — cover overlay rollback after live regression
|
||||
@@ -30,7 +38,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
- **Rollback**: restored the known-good single-panel beatles DTB (`8a14f7bc...`), removed the folded `spi-mux`/`gpio-mux`/external-panel nodes from `qcom-msm8905-nokia-beatles.dts`, restored `spidev@1` and kept `cover-panel.dtsi` as a compile-checked but unapplied hardware-gated reference. `check-rebuild.sh` now rejects a shipping DTB that contains the cover overlay.
|
||||
- **Live state after rollback**: forced sysrq reboot with the base DTB, `/dev/fb0` is again 240x320 internal, `/dev/fb1` is absent, `bananarchy-coverctl STATUS` reports `backend=none`, `state=unlock`, backlight 14, no lock flag, and no kernel oops or RCU stall.
|
||||
- **Kept fixes**: OpenRC parallel startup with the patched `local` service, bounded `udevadm settle`, independent USB fallback sshd, event-driven 80 ms lid debounce, boot-open unlock guard, compiled C daemons and 32-bpp cover renderer code remain; the 120 ms keypad wake experiment was reverted to the physically verified 350 ms guard, and the X session now releases stale `dmenu`/xlocker keyboard grabs once at startup. The cover renderer is idle until hardware exposes `/dev/fb1`.
|
||||
- **Finalized release method**: the physically verified known-good raw image, standalone boot image and display lk2nd image hashes are pinned by `scripts/check-rebuild.sh`. The display lk2nd binary predates the low-bit reboot cookie, so `scripts/check-lk2nd-beatles.py` accepts that one image with `--allow-missing-cookie` while the source patch retains the cookie for future builds. `prepare-release.sh` packages the verified images by default; set `BA_REBUILD=1` to regenerate them from source.
|
||||
- **Finalized release method**: the physically verified known-good raw image, standalone boot image and display lk2nd image hashes are pinned by `scripts/check-rebuild.sh`. The later release image is rebuilt from source and now requires the low-bit reboot cookie; `--allow-missing-cookie` was removed. `prepare-release.sh` packages the verified images by default; set `BA_REBUILD=1` to regenerate them from source.
|
||||
- **Cleanup**: removed EDL backup dumps, local lk2nd build caches and Python bytecode from the release tree. Temporary diagnostic images and scratch logs are no longer part of the shipped release set.
|
||||
- **Release state**: the raw image, standalone boot image and validators are rebuilt against the rolled-back DTB. Physical main-panel/keypad verification after this rollback is required before any further cover-panel work.
|
||||
|
||||
@@ -62,7 +70,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
## Unreleased — lk2nd menu and release hygiene
|
||||
|
||||
- **lk2nd Fastboot menu restored**: the Power menu's `sxmo_power.sh loader` writes `FASTBOOT_MODE` into `PON_SOFT_RB_SPARE[1:0]`, but the stock boot chain scrubs bits `[7:2]` before chain-loading lk2nd while upstream lk2nd only reads those high bits. `platform/msm_shared/reboot.c` now prefers the low-bit cookie and writes low-bit cookies for all small reboot reasons, while still accepting the high-bit `fastboot reboot-bootloader` cookie. The display-enabled image is the default for `flash-edl.py`, `check-rebuild.sh` validates it, and `prepare-release.sh` packages it. Live verification: the Power-menu cookie reaches lk2nd fastboot in 6 s, `fastboot oem screenshot` stages a 240x320 frame with the menu text, `fastboot getvar lk2nd:version` reports `bananarchy-beatles-a1109-display-r3`, and `fastboot reboot-bootloader` returns to the same lk2nd menu. Use `fastboot reboot` to return to Linux.
|
||||
- **lk2nd Fastboot menu restored**: the Power menu's `sxmo_power.sh bootloader` writes `FASTBOOT_MODE` into `PON_SOFT_RB_SPARE[1:0]`, but the stock boot chain scrubs bits `[7:2]` before chain-loading lk2nd while upstream lk2nd only reads those high bits. `platform/msm_shared/reboot.c` now prefers the low-bit cookie and writes low-bit cookies for all small reboot reasons, while still accepting the high-bit `fastboot reboot-bootloader` cookie. The display-enabled image is the default for `flash-edl.py`, `check-rebuild.sh` validates it, and `prepare-release.sh` packages it. Live verification: the Power-menu cookie reaches lk2nd fastboot in 6 s, `fastboot oem screenshot` stages a 240x320 frame with the menu text, `fastboot getvar lk2nd:version` reports `bananarchy-beatles-a1109-display-r3`, and `fastboot reboot-bootloader` returns to the same lk2nd menu. Use `fastboot reboot` to return to Linux.
|
||||
- **Abandoned pstore_blk diagnostics removed**: `CONFIG_PSTORE_BLK`, `CONFIG_PSTORE_ZONE` and the scratch `cache` PARTUUID settings are gone from the kernel config copies; `vmlinuz`, `System.map`, config, modules and DTBs were rebuilt from the clean config. `pstore_blk_get_config` no longer appears in either shipped `System.map`, and the stale `-debug`/`-ramoops` standalone boot images were removed.
|
||||
- **Cover kernel modules built**: `scripts/build-kernel-audio.sh` now builds and exports `mux-core.ko.zst`, `mux-gpio.ko.zst` and `spi-mux.ko.zst`; `modules-load.d/bananarchy-hardware.conf` and `local.d/10-bananarchy-hardware.start` load them, and `check-rebuild.sh` guards the modules, config and release hygiene. `devices/nokia-beatles/cover-panel.dtsi` remains opt-in: gpio13 polarity and external reset/DC routing still require physical validation before it is applied to the shipping DTB.
|
||||
- **Full clean rebuild**: `./rebuild-image.sh nokia-beatles --mkinitfs` was rerun against an empty scratch rootfs with the pinned `a1108` / `dejavu` release. It regenerated `images/bananarchy-nokia-beatles.img` and `images/boot-bananarchy-nokia-beatles.img`; `check-rebuild.sh`, `check-beatles-bootimg.py`, `sync-beatles-bootfs.py --check`, `build-lk2nd-beatles.sh --check`, `test-lk2nd-beatles-port.py`, Python/shell syntax checks and `e2fsck -fn` all pass. A dangling `/bin/linux32` BusyBox symlink from the fresh package set initially aborted the overlay; `apply-bananarchy-overlay.sh` now removes dangling symlinks before recreating them and `check-rebuild.sh` guards that path.
|
||||
|
||||
Reference in new issue
Block a user