Fix unbootable image: restore kernel/module ABI compatibility
The previous battery pass rebuilt the kernel image from a retuned config and produced an image stuck on the lk2nd logo. Two incompatibilities with the linux-postmarketos-qcom-msm8916 module tree (which this repo does not rebuild) were identified: 1. Vermagic: CONFIG_PREEMPT_VOLUNTARY removes CONFIG_PREEMPT_BUILD, so the rebuilt kernel reported "6.12.1-msm8916 SMP mod_unload ARMv7 p2v8" while every package module reports "6.12.1-msm8916 SMP preempt mod_unload ARMv7 p2v8". modprobe refuses all of them, including panel-mipi-dbi, so the display never initialises. 2. Struct layout: CONFIG_SUSPEND selects CONFIG_PM_SLEEP, which adds fields to struct dev_pm_info. Modules built without it use wrong dev->power offsets, so matching vermagic alone is not enough. Restored the known-good kernel config, the serial-console cmdline and the DTB wakeup-source additions. The kernel image is still cross-compiled by build-kernel-audio.sh but from the original config, so vermagic and struct layouts match every module in the rootfs. Reverted the config-level items K1, K6, K7, K8, K13 and K14; implementing them requires vendoring and rebuilding the entire pmaports kernel module tree. Kept: K2 clock-latency-ns, K3/K4/K5 via patch 0006 (rebuilt with the original config), K10 IPv6 sysctl, and all U1-U14 userspace changes. Rebuilt the kernel image/modules/DTBs and images/bananarchy-nokia-argon.img with --mkinitfs. Verified: all modules (package + rebuilt) now report identical vermagic, boot.img contains the new zImage + DTB byte-for-byte, the console cmdline is restored, check-rebuild.sh passes and artifact drift is 0. Docs: CHANGELOG.md (recovery section), MANUAL.md, README.md, AGENTS.md, BATTERY-OPTIMIZATION-ANALYSIS.md (section 11).
This commit is contained in:
1 parent
ad3461babf
commit
0dbb37fba3
127 files changed
+190712
-136883
No files matched your search
@@ -101,7 +101,7 @@ sudo dd if=./images/bananarchy-nokia-argon.img of=/dev/sdX bs=4M status=progress
|
||||
| **Slider close / open** | `SW_LID` (`lid:on` / `lid:off`) | **Close**: close open menu, turn off keypad backlight, and lock phone with passcode (`xlocker`); **Open**: restore screen and keypad backlight and show passcode lock screen |
|
||||
|
||||
> **Screen blanking, idle blanking, deep standby, passcode locking (`xlocker`), waking, and brightness persistence**:
|
||||
> While unlocked, the display now blanks automatically after `SXMO_UNLOCK_IDLE_TIME` seconds of inactivity (60 by default) via `bananarchy-idle-blank.sh`; any keypad, lid or power key restores it immediately without engaging the passcode locker. Create `~/.cache/sxmo/sxmo.noidle` to restore the old "unlocked screen never blanks" policy. X11 screensaver timeouts stay at `0 0 0`; DPMS is driven by the backlight state. Optional **deep standby** suspends the system after `BANANARCHY_SUSPEND_GRACE` seconds of screen-off (60 by default): it is shipped **disabled** via `/etc/bananarchy-no-deep-standby` until the rebuilt kernel has been boot-tested; remove that file to enable `freeze` (s2idle, any IRQ wakes), and additionally create `/etc/bananarchy-allow-mem-suspend` to try `mem`. Active calls, SSH sessions and VPN/tether connections block suspension. Locking the phone (`Power -> Lock`, `Power -> Lock (Screen off)`, `2x End / Power`, or closing the physical slider) activates the fullscreen `240x320` **Passcode Locker (`xlocker` / `locker.so`)**, which verifies your numeric system password (`147147` by default, checked against `/etc/shadow` via `/usr/bin/bananarchy-verify-passcode`). While locked, there is no keypad, softkey, slider, or power-button bypass (`dmenu`, `xdrawer`, terminal spawning, and desktop shortcuts are blocked, and only incoming calls can temporarily overlay `xcallscreen`). Screen and keypad brightness levels configured in **XDrawer** or **Config -> Brightness** are persisted in `~/.config/sxmo/brightness` and `/tmp/sxmo_saved_brightness` and restored on every wake.
|
||||
> While unlocked, the display now blanks automatically after `SXMO_UNLOCK_IDLE_TIME` seconds of inactivity (60 by default) via `bananarchy-idle-blank.sh`; any keypad, lid or power key restores it immediately without engaging the passcode locker. Create `~/.cache/sxmo/sxmo.noidle` to restore the old "unlocked screen never blanks" policy. X11 screensaver timeouts stay at `0 0 0`; DPMS is driven by the backlight state. Optional **deep standby** is currently **unavailable**: the shipped kernel keeps the pmaports module ABI and has no sleep states in `/sys/power/state`. It stays disabled via `/etc/bananarchy-no-deep-standby`; enabling it requires a full custom kernel module tree (see `BATTERY-OPTIMIZATION-ANALYSIS.md`). Active calls, SSH sessions and VPN/tether connections would block suspension. Locking the phone (`Power -> Lock`, `Power -> Lock (Screen off)`, `2x End / Power`, or closing the physical slider) activates the fullscreen `240x320` **Passcode Locker (`xlocker` / `locker.so`)**, which verifies your numeric system password (`147147` by default, checked against `/etc/shadow` via `/usr/bin/bananarchy-verify-passcode`). While locked, there is no keypad, softkey, slider, or power-button bypass (`dmenu`, `xdrawer`, terminal spawning, and desktop shortcuts are blocked, and only incoming calls can temporarily overlay `xcallscreen`). Screen and keypad brightness levels configured in **XDrawer** or **Config -> Brightness** are persisted in `~/.config/sxmo/brightness` and `/tmp/sxmo_saved_brightness` and restored on every wake.
|
||||
|
||||
#### 3.1.1 Window tiling modes and switching combos
|
||||
By default, `dwm` uses the **vertical bottom-stack (`bstack`, `TTT`)** layout so multiple `st` terminals stack **vertically (one under another)** to preserve full line width on the `240x320` portrait screen.
|
||||
|
||||
Reference in new issue
Block a user