From 2198ba16b37fc1bbd374d15b2508eb6640de856b Mon Sep 17 00:00:00 2001 From: Luxferre Date: Tue, 10 Nov 2026 18:01:01 +0200 Subject: [PATCH] Shorten Power menu bootloader label to fit screen Change Reboot to bootloader to Reboot to loader in dmenu.so, appmenu and context menu. Rebuild the ARM dmenu plugin, sync prebuilt/overlay artifacts, strengthen check-rebuild guards, and synchronize docs. Deployed to the live phone and restarted the resident dmenu plugin. --- AGENTS.md | 4 ++-- CHANGELOG.md | 4 ++++ MANUAL.md | 8 ++++---- README.md | 4 ++-- flash-edl.py | 2 +- overlay/rootfs/usr/bin/sxmo_appmenu.sh | 2 +- overlay/rootfs/usr/lib/dwm/plugins/dmenu.so | Bin 87288 -> 87288 bytes .../default_hooks/sxmo_hook_contextmenu.sh | 2 +- .../sxmo-x11/usr/lib/dwm/plugins/dmenu.so | Bin 87288 -> 87288 bytes prepare-release.sh | 2 +- scripts/check-rebuild.sh | 17 +++++++++++++++-- src/sxmo-dmenu/dmenu.c | 2 +- 12 files changed, 32 insertions(+), 15 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 44e6d24..2957664 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,7 +27,7 @@ It uses a pure **X11 (`Xlibre` + `sxmo-de-dwm`)** stack (no Wayland) with **Adre - `prebuilt/`: cross-compiled `armv7` binaries and kernel modules (`sxmo-x11`, `fcitx5-t9`, `xlibre`, `kernel-6.12.1-msm8916`, `bantam`, `games`, `gsocket`). - `devices/` & `patches/`: device trees (`.dts`/`.dtb`), MIPI-DBI panel init sequences, and upstream patch sets. - The stock `system` superblock is wiped by default for every flash method; `--no-wipe-system` is the opt-out and `--wipe-system` a redundant alias. In `recovery` mode the wiped `system` means a normal power-on hangs on the KaiOS logo and Volume Up is mandatory to boot Bananarchy. -- `nokia-beatles` boot chain: `images/boot-lk2nd-nokia-beatles.img` is built from upstream `msm8916-mainline/lk2nd` at pinned commit `cf45aefd22d744b2bf9b39455afae697ce430063` plus `bootloader/lk2nd/nokia-beatles.patch` (see `bootloader/lk2nd/README.md`; rebuild with `scripts/build-lk2nd-beatles.sh`). It keeps the upstream QCDT layout (both `0x14b` entries `0xb/0x100` and `0x1000b/0x100` sharing one `msm8905-qrd-skub` DTB, stock `qcom,board-id` order) with a compact `/lk2nd/nokia-beatles` node injected, and **adds `/cpus` with `cpu@0`..`cpu@3` and 4-byte `device_type` to the common `lk2nd.dtsi` so every QCDT DTB has it**. The 2720's MSM8905 is a partial-goods 2-core part and its aboot `ASSERT`s at `platform/msm_shared/partial_goods.c:80` when `/cpus`, `cpu@2` or `cpu@3` is missing — that was the actual "black screen / no fastboot" crash (Sahara MEMORY_DEBUG RLOG log, see `bootloader/lk2nd/README.md` and `backup/nokia-beatles-2720/crash-20261109/aboot-log.txt`). cmdline `lk2nd lk2nd.compatible=nokia,beatles`, `lk2nd,match-panel` for all three GC9305 panel names the aboot reports, and the single `qcom,mdss_spi_gc9305_v2_qvga_cmd` (the panel the live aboot reports) `lk2nd,panel-init` stream replayed on BLSP1 QUP5 (DC GPIO 110) only when aboot did not leave continuous splash enabled (or when `lk2nd.force-panel-init` is in the cmdline), so the 240x320 RGB565 main panel is initialized even without cont-splash. `spi-display.c` also paints the branded RGB565 boot splash into the framebuffer (without flushing during init): `DISABLE_SPLASH_PARTITION=1` plus `menu.c`'s bottom-only text means upstream lk2nd otherwise pushes a nearly black frame, which is what the "KaiOS logo then blank screen" is. `lk2nd/include/lk2nd/spi-panel-init.h` is shared with the host unit test; the repo copy is `bootloader/lk2nd/spi-panel-init.h` and `check-lk2nd-beatles.py` keeps them in sync and enforces that QCDT shape. Both the normal and diagnostic images carry `lk2nd.no-display` (RAM-only framebuffer, no QUP SPI before USB) because unbounded QUP/clock register polls used to wedge lk2nd with the boot vibrator stuck on. The port now bounds those polls (`QUP_FIFO_TIMEOUT`, `CLK_POLL_TIMEOUT`) and adds `oem display-init` / `oem display-test` / `oem scan-dtb` fastboot probes that run after USB is up, plus `oem screenshot` to verify the framebuffer. Live `oem display-init` confirmed the GC9305 v2 stream and the 240x320 RGB565 frame; a chain-loaded diagnostic falls back to the QCDT panel stream when aboot tags are absent, `oem scan-dtb` stages the final DTB after lk2nd DT updates, `oem ramoops console` validates and bounds pstore data, and the QUP per-word `SPEW` log is removed. The r3 port also makes `oem read-partition` block-safe: it rounds MMC reads up to the eMMC block size, rejects unaligned offsets and stages only the requested byte count. `images/boot-lk2nd-nokia-beatles-display.img` uses `lk2nd.display=on` for boot-time panel init via the downstream GC9305 v2 `lk2nd,panel-init` stream; flash it with `--lk2nd-image`. The diagnostic image additionally has `DEBUG=2 LK2ND_FORCE_FASTBOOT=1`. `check-lk2nd-beatles.py --expect-display` guards the display variant; `scripts/test-lk2nd-beatles-port.py` runs all three. lk2nd is confirmed working over live fastboot (`lk2nd:compatible=nokia,beatles`, `model=Nokia 2720 Flip`, panel `qcom,mdss_spi_gc9305_v2_qvga_cmd`, `unlocked=yes`). `flash-edl.py` defaults to `--method lk2nd` for every target; stock aboot accepts the port and lk2nd boots Bananarchy from `userdata` via `extlinux.conf` (`fdt /qcom-msm8905-nokia-beatles.dtb`). On `nokia-beatles` the default is now the Argon shape: lk2nd in `boot`, the standalone mainline `boot.img` in `recovery` (Volume Up fallback). `--method both` remains as a fallback that writes the standalone mainline `boot.img` to both slots. `--verify` reads back every slot and `--dump-diagnostics` saves small bootloader/config partitions for secure-boot analysis. `scripts/check-lk2nd-beatles.py` validates the boot header, both 2720 QCDT entries, `/cpus` in every QCDT DTB, the device node and the GC9305 v2 panel init stream; `scripts/test-lk2nd-beatles-port.py` adds the host C parser test. The stock 2720 aboot is locked (`devinfo.is_unlocked=0`) and verifies boot images against `Nokia_beatles ROOT CA0`; `flash-edl.py` therefore defaults to setting `devinfo.is_unlocked=1` on `nokia-beatles` via `unlock_devinfo()` before writing any boot image, saves `backup/devinfo-locked-.img`, and supports `--no-unlock-bootloader` to skip. `scripts/make-unlocked-devinfo.py` produces the same patched image offline. Correction: the GPT has `keystore` but no `keymaster`, so `target_get_vb_version()` returns `VB_L=1` while `VB_M=2`; aboot therefore reads `devinfo` from eMMC, not RPMB. The 21:25 dump confirms eMMC `is_unlocked=1`, so the unlock is effective and no stock fastboot / `oem unlock-go` step is required. `--only-unlock`, `enable_oem_unlock()` and `scripts/make-oem-unlock-config.py` remain as harmless optional prerequisites, not a boot requirement. The appended DTB must carry the exact stock `qcom,msm-id = <0x14b 0>`, `qcom,board-id = <0x1000b 0x100>` and `qcom,pmic-id = <0x1000d 0 0 0>` values; older aboot revisions read only the first `qcom,board-id` pair, so an extra `0x0b 0x100` variant ahead of it makes the DTB look like a different board (the lk2nd QCDT DTB keeps upstream's `0x0b` pair first). `/memory` keeps `device_type = "memory"` and a 512 MiB `reg = <0x80000000 0x20000000>` fallback, so a bootloader that fails to patch it still gives Linux usable RAM. `scripts/repack-beatles-bootimg.py` rebuilds only the standalone Android boot.img after a DTB change; `scripts/sync-beatles-bootfs.py` updates the boot.img, DTB and extlinux.conf inside the raw image's ext2 `pmOS_boot` filesystem (never write an Android boot.img at raw offset 1 MiB). The old binary-patched headless image and `scripts/make-beatles-lk2nd-bootimg.py` are gone. `check-beatles-bootimg.py`, `check-lk2nd-beatles.py` and `sync-beatles-bootfs.py --check` are all called by `check-rebuild.sh`, which also guards the port source files. The shipping kernel display stack keeps the verified single internal panel. The two-GC9305 `gpio-mux`/`spi-mux` layout lives in `devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts` and is opt-in via `scripts/build-beatles-cover-panel.py`: a live test produced `/dev/fb1` but darkened the main panel, so gpio13 mux polarity and gpio21/gpio23 DC/reset routing still need hardware sign-off. `scripts/build-beatles-no-cover-dtb.py` builds the single-panel rollback. The `mux-core`, `mux-gpio` and `spi-mux` modules and the external panel firmware are already provisioned in the initramfs for the opt-in layout, and Xorg pins `/dev/dri/card0`. The stock boot chain passes the Power-menu reboot reason in `PON_SOFT_RB_SPARE[1:0]`; the port reads those low bits and writes low-bit cookies so the visible Fastboot menu survives `Reboot to bootloader` and `fastboot reboot-bootloader`. +- `nokia-beatles` boot chain: `images/boot-lk2nd-nokia-beatles.img` is built from upstream `msm8916-mainline/lk2nd` at pinned commit `cf45aefd22d744b2bf9b39455afae697ce430063` plus `bootloader/lk2nd/nokia-beatles.patch` (see `bootloader/lk2nd/README.md`; rebuild with `scripts/build-lk2nd-beatles.sh`). It keeps the upstream QCDT layout (both `0x14b` entries `0xb/0x100` and `0x1000b/0x100` sharing one `msm8905-qrd-skub` DTB, stock `qcom,board-id` order) with a compact `/lk2nd/nokia-beatles` node injected, and **adds `/cpus` with `cpu@0`..`cpu@3` and 4-byte `device_type` to the common `lk2nd.dtsi` so every QCDT DTB has it**. The 2720's MSM8905 is a partial-goods 2-core part and its aboot `ASSERT`s at `platform/msm_shared/partial_goods.c:80` when `/cpus`, `cpu@2` or `cpu@3` is missing — that was the actual "black screen / no fastboot" crash (Sahara MEMORY_DEBUG RLOG log, see `bootloader/lk2nd/README.md` and `backup/nokia-beatles-2720/crash-20261109/aboot-log.txt`). cmdline `lk2nd lk2nd.compatible=nokia,beatles`, `lk2nd,match-panel` for all three GC9305 panel names the aboot reports, and the single `qcom,mdss_spi_gc9305_v2_qvga_cmd` (the panel the live aboot reports) `lk2nd,panel-init` stream replayed on BLSP1 QUP5 (DC GPIO 110) only when aboot did not leave continuous splash enabled (or when `lk2nd.force-panel-init` is in the cmdline), so the 240x320 RGB565 main panel is initialized even without cont-splash. `spi-display.c` also paints the branded RGB565 boot splash into the framebuffer (without flushing during init): `DISABLE_SPLASH_PARTITION=1` plus `menu.c`'s bottom-only text means upstream lk2nd otherwise pushes a nearly black frame, which is what the "KaiOS logo then blank screen" is. `lk2nd/include/lk2nd/spi-panel-init.h` is shared with the host unit test; the repo copy is `bootloader/lk2nd/spi-panel-init.h` and `check-lk2nd-beatles.py` keeps them in sync and enforces that QCDT shape. Both the normal and diagnostic images carry `lk2nd.no-display` (RAM-only framebuffer, no QUP SPI before USB) because unbounded QUP/clock register polls used to wedge lk2nd with the boot vibrator stuck on. The port now bounds those polls (`QUP_FIFO_TIMEOUT`, `CLK_POLL_TIMEOUT`) and adds `oem display-init` / `oem display-test` / `oem scan-dtb` fastboot probes that run after USB is up, plus `oem screenshot` to verify the framebuffer. Live `oem display-init` confirmed the GC9305 v2 stream and the 240x320 RGB565 frame; a chain-loaded diagnostic falls back to the QCDT panel stream when aboot tags are absent, `oem scan-dtb` stages the final DTB after lk2nd DT updates, `oem ramoops console` validates and bounds pstore data, and the QUP per-word `SPEW` log is removed. The r3 port also makes `oem read-partition` block-safe: it rounds MMC reads up to the eMMC block size, rejects unaligned offsets and stages only the requested byte count. `images/boot-lk2nd-nokia-beatles-display.img` uses `lk2nd.display=on` for boot-time panel init via the downstream GC9305 v2 `lk2nd,panel-init` stream; flash it with `--lk2nd-image`. The diagnostic image additionally has `DEBUG=2 LK2ND_FORCE_FASTBOOT=1`. `check-lk2nd-beatles.py --expect-display` guards the display variant; `scripts/test-lk2nd-beatles-port.py` runs all three. lk2nd is confirmed working over live fastboot (`lk2nd:compatible=nokia,beatles`, `model=Nokia 2720 Flip`, panel `qcom,mdss_spi_gc9305_v2_qvga_cmd`, `unlocked=yes`). `flash-edl.py` defaults to `--method lk2nd` for every target; stock aboot accepts the port and lk2nd boots Bananarchy from `userdata` via `extlinux.conf` (`fdt /qcom-msm8905-nokia-beatles.dtb`). On `nokia-beatles` the default is now the Argon shape: lk2nd in `boot`, the standalone mainline `boot.img` in `recovery` (Volume Up fallback). `--method both` remains as a fallback that writes the standalone mainline `boot.img` to both slots. `--verify` reads back every slot and `--dump-diagnostics` saves small bootloader/config partitions for secure-boot analysis. `scripts/check-lk2nd-beatles.py` validates the boot header, both 2720 QCDT entries, `/cpus` in every QCDT DTB, the device node and the GC9305 v2 panel init stream; `scripts/test-lk2nd-beatles-port.py` adds the host C parser test. The stock 2720 aboot is locked (`devinfo.is_unlocked=0`) and verifies boot images against `Nokia_beatles ROOT CA0`; `flash-edl.py` therefore defaults to setting `devinfo.is_unlocked=1` on `nokia-beatles` via `unlock_devinfo()` before writing any boot image, saves `backup/devinfo-locked-.img`, and supports `--no-unlock-bootloader` to skip. `scripts/make-unlocked-devinfo.py` produces the same patched image offline. Correction: the GPT has `keystore` but no `keymaster`, so `target_get_vb_version()` returns `VB_L=1` while `VB_M=2`; aboot therefore reads `devinfo` from eMMC, not RPMB. The 21:25 dump confirms eMMC `is_unlocked=1`, so the unlock is effective and no stock fastboot / `oem unlock-go` step is required. `--only-unlock`, `enable_oem_unlock()` and `scripts/make-oem-unlock-config.py` remain as harmless optional prerequisites, not a boot requirement. The appended DTB must carry the exact stock `qcom,msm-id = <0x14b 0>`, `qcom,board-id = <0x1000b 0x100>` and `qcom,pmic-id = <0x1000d 0 0 0>` values; older aboot revisions read only the first `qcom,board-id` pair, so an extra `0x0b 0x100` variant ahead of it makes the DTB look like a different board (the lk2nd QCDT DTB keeps upstream's `0x0b` pair first). `/memory` keeps `device_type = "memory"` and a 512 MiB `reg = <0x80000000 0x20000000>` fallback, so a bootloader that fails to patch it still gives Linux usable RAM. `scripts/repack-beatles-bootimg.py` rebuilds only the standalone Android boot.img after a DTB change; `scripts/sync-beatles-bootfs.py` updates the boot.img, DTB and extlinux.conf inside the raw image's ext2 `pmOS_boot` filesystem (never write an Android boot.img at raw offset 1 MiB). The old binary-patched headless image and `scripts/make-beatles-lk2nd-bootimg.py` are gone. `check-beatles-bootimg.py`, `check-lk2nd-beatles.py` and `sync-beatles-bootfs.py --check` are all called by `check-rebuild.sh`, which also guards the port source files. The shipping kernel display stack keeps the verified single internal panel. The two-GC9305 `gpio-mux`/`spi-mux` layout lives in `devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts` and is opt-in via `scripts/build-beatles-cover-panel.py`: a live test produced `/dev/fb1` but darkened the main panel, so gpio13 mux polarity and gpio21/gpio23 DC/reset routing still need hardware sign-off. `scripts/build-beatles-no-cover-dtb.py` builds the single-panel rollback. The `mux-core`, `mux-gpio` and `spi-mux` modules and the external panel firmware are already provisioned in the initramfs for the opt-in layout, and Xorg pins `/dev/dri/card0`. The stock boot chain passes the Power-menu reboot reason in `PON_SOFT_RB_SPARE[1:0]`; the port reads those low bits and writes low-bit cookies so the visible Fastboot menu survives `Reboot to loader` and `fastboot reboot-bootloader`. - `bootloader/loaders/`: device-specific signed Firehose programmers; `DEVICE_LOADERS` in `flash-edl.py` maps each target codename to one (`8k.mbn` serves both `nokia-sparkler` and `nokia-leo`), and `DEVICE_LOADER_VARIANTS` maps `--variant us` on `nokia-beatles` to `2720v.mbn` (`Nokia_bts_us`). Never flash a different device's programmer: Sahara rejects the signature and `--list-loaders` shows the embedded attestation identity. - `vendor/edl/`: vendored, patched EDL client library (MIT) used by `flash-edl.py`; a local `edl/` checkout or `BANANARCHY_EDL_DIR` overrides it. - `scripts/rootfs-packages.txt`: single source of truth for the `armv7` rootfs package set, read by both `bootstrap-rootfs.sh` and `rebuild-image.sh`. It intentionally contains no `device-*` package; `scripts/apply-bananarchy-overlay.sh` installs the per-device `devices//modules-initfs` list as `/usr/share/mkinitfs/modules/00-device-.modules` (plus its `initramfs.load` mapping) so a clean-clone bootstrap still builds the correct initramfs. `scripts/check-rebuild.sh` guards this. The package set also includes `msm-firmware-loader`, its OpenRC companion and `msm-firmware-loader-wcnss`; explicit sysinit/boot links are required because packages are installed with `--no-scripts`. This mounts the stock `modem` and `persist` partitions before udev and supplies WCNSS/modem firmware plus factory Wi-Fi NV data, allowing both `wlan0` and `hci0` to enumerate. The package set explicitly contains `glib` and `gsettings-desktop-schemas`; because apk is invoked with `--no-scripts`, `apply-bananarchy-overlay.sh` must run `compile-gsettings-schemas.sh` to generate `gschemas.compiled`, otherwise WebKitGTK's network process aborts with an internal error. The package set also includes `util-linux-misc` for `script(1)` and `bluez-btmgmt` for `btmgmt`, which the live Bluetooth scan wrapper uses to keep a single interactive BlueZ client alive and enable LE discovery on the WCNSS controller. `overlay/rootfs/etc/bluetooth/main.conf` must keep `ControllerMode = dual`: BlueZ 5.87 rejects LE-only HOGP profile registration in `bredr` mode, so BLE HID peripherals would be discoverable but never create an input node. `bananarchy-bt-obex` powers the controller on, enables LE, selects the LE bearer for HID-over-GATT devices and pairs unbonded devices before connecting. @@ -102,7 +102,7 @@ network-up events, and keep `var/lib/chrony` owned by the `chrony` user. Network - `images/bananarchy-nokia-beatles.img`, `images/boot-bananarchy-nokia-beatles.img`, and `images/boot-lk2nd-nokia-beatles-display.img` are the current verified release artifacts. Their hashes are pinned by `scripts/check-rebuild.sh`, and `images/bananarchy-nokia-argon.img` is pinned as the matching 8110 4G release image. These files are local build outputs, not tracked in git; clean clones rebuild them from source. - The shipping display lk2nd image is rebuilt from the pinned source patch and must contain the low-bit reboot cookie. `scripts/check-lk2nd-beatles.py`, `scripts/build-lk2nd-beatles.sh`, `scripts/test-lk2nd-beatles-port.py`, and `scripts/check-rebuild.sh` reject a display image without it; `prepare-release.sh` rebuilds stale or missing lk2nd images before packaging. - `scripts/set-bananarchy-hostname.sh` writes `/etc/hostname`, `/etc/hosts` and the OpenRC hostname runlevel link from the canonical target name. Both bootstrap and overlay application call it, and `check-rebuild.sh` verifies all five target codenames. -- The Power menu item is **Reboot to bootloader** and calls `sxmo_power.sh bootloader`. The torch module uses the low-bit cookie on `nokia,beatles` and both low/high lanes on other targets, preserving generic lk2nd compatibility. The default `147147` unlock passcode provisioning is guarded, and the locker/passcode path is unchanged. +- The Power menu item is **Reboot to loader** and calls `sxmo_power.sh bootloader`. The torch module uses the low-bit cookie on `nokia,beatles` and both low/high lanes on other targets, preserving generic lk2nd compatibility. The default `147147` unlock passcode provisioning is guarded, and the locker/passcode path is unchanged. - `src/sxmo-dwm/dwm.c` uses the known-good 350 ms wake guard. Do not reintroduce the 120 ms `WAKE_KEY_DEBOUNCE_MS` experiment: it allowed a cold-boot key to open a resident `dmenu` window that held the keyboard grab. - `overlay/rootfs/usr/bin/bananarchy-x11-session.sh` performs one startup `dwm-plugin dmenu close`, trusted locker `CLOSE`, and `Escape` key to release stale startup keyboard grabs. It does not leave a background poller running. - `prepare-release.sh` packages the verified images by default and copies `bootloader/lk2nd-msm8909.img` for non-beatles targets. Set `BA_REBUILD=1` only when intentionally regenerating images from source. diff --git a/CHANGELOG.md b/CHANGELOG.md index cc6cc10..bf15a4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ Release versions follow the `
` format (where `2026` is `a`, Work since `a1108` has focused on reliable 2720 Flip hardware support and a reproducible boot/flash path. Earlier incremental and superseded diagnostic entries are consolidated here. +### Power menu label + +- Shortened the Power menu item **Reboot to bootloader** to **Reboot to loader** in `dmenu.so`, `sxmo_appmenu.sh` and the context-menu hook so the full label fits the 240x320 screen. Rebuilt `dmenu.so`, updated the prebuilt and overlay artifacts and guards, and kept the `sxmo_power.sh bootloader` action unchanged. + ### Real Bluetooth connections and HID-over-GATT - **Root cause**: the previous image could discover and even bond BLE peripherals, but `ControllerMode = bredr` made BlueZ 5.87's `btd_profile_register()` reject the LE-only `input-hog` profile. `bluetoothd -d` logged `System does not support hog plugin`, so HID-over-GATT keyboards and mice never produced a usable `/dev/input` node. diff --git a/MANUAL.md b/MANUAL.md index 861fc71..a835e93 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -53,7 +53,7 @@ The script performs the following steps automatically: 2. Waits for the phone in Qualcomm EDL/Sahara mode. The flasher auto-detects `05c6:9008` (QDLoader), `05c6:900e` (QHSUSB_BULK, common after a failed boot) and `05c6:9006` (DLOAD); pass `--pid` to force one: - - **From Bananarchy Linux**: open the **Power** menu (`End / Power` key or `System menu -> Power`), select **Reboot to bootloader** (`sxmo_power.sh bootloader`) to enter the visible `lk2nd` Fastboot menu, then select **EDL** (or let `flash-edl.sh` automatically send `fastboot oem reboot-edl`). The low-bit reboot cookie now survives the stock boot chain and keeps the menu available. + - **From Bananarchy Linux**: open the **Power** menu (`End / Power` key or `System menu -> Power`), select **Reboot to loader** (`sxmo_power.sh bootloader`) to enter the visible `lk2nd` Fastboot menu, then select **EDL** (or let `flash-edl.sh` automatically send `fastboot oem reboot-edl`). The low-bit reboot cookie now survives the stock boot chain and keeps the menu available. - **Button combo**: power off the phone, hold **D-Pad up + D-Pad down**, and plug in the USB cable. - **EDL cable**: hold the EDL cable button while plugging in USB. - **From ADB or Fastboot**: the script automatically sends `adb reboot edl` or `fastboot oem reboot-edl` if detected. @@ -69,7 +69,7 @@ The script performs the following steps automatically: ### Method B: Fastboot flashing (once `lk2nd` is installed) -1. Enter the `lk2nd` Fastboot menu either by selecting **Reboot to bootloader** from the **Power** menu (`sxmo_power.sh bootloader`) or by holding **D-Pad down** while powering on the phone. +1. Enter the `lk2nd` Fastboot menu either by selecting **Reboot to loader** from the **Power** menu (`sxmo_power.sh bootloader`) or by holding **D-Pad down** while powering on the phone. 2. Flash the system image to `userdata`: ```bash fastboot flash userdata ./images/bananarchy-nokia-argon.img @@ -136,7 +136,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/ 1. **System and context menus (`dmenu.so` / `dmenu` / `xdmenu`)**: - **Open / close**: press **Left softkey (`Menu`)** for the **System menu** or **Right softkey (`Back`)** inside an application for its **Context menu**; press the same softkey or `Escape` to close. - - **Built-in submenus and instant toggles**: renders `sys`, `applications`, `scripts`, `modem`, `config`, `sdcard`, `power` (including **Lock**, **Lock (Screen off)**, **Logout**, **Reboot**, **Reboot to bootloader**, and **Poweroff**; use the lk2nd Fastboot menu for **EDL**), `audio` (with linear volume steps and **Output: Speaker**, **Output: Earpiece**, and **Output: Headphones** routing), `notifications`, `wm`, `timezone`, `games`, `st`, and `nano` menus in place in `< 0.5 ms` without spawning external processes. + - **Built-in submenus and instant toggles**: renders `sys`, `applications`, `scripts`, `modem`, `config`, `sdcard`, `power` (including **Lock**, **Lock (Screen off)**, **Logout**, **Reboot**, **Reboot to loader**, and **Poweroff**; use the lk2nd Fastboot menu for **EDL**), `audio` (with linear volume steps and **Output: Speaker**, **Output: Earpiece**, and **Output: Headphones** routing), `notifications`, `wm`, `timezone`, `games`, `st`, and `nano` menus in place in `< 0.5 ms` without spawning external processes. - **Script compatibility**: any script piping items into `/usr/bin/dmenu` or `sxmo_dmenu.sh` communicates with the resident daemon over `/tmp/dwm_plugin_dmenu.sock`. 2. **Global phone controls (`xdrawer.so` / `xdrawer`)**: @@ -673,4 +673,4 @@ The bootstrap is idempotent: an up-to-date rootfs is left untouched. `prebuilt/` ## Verified 2720 Flip image set -For the `a1108` / `dejavu` release, use the verified `nokia-beatles` raw image, standalone boot image, and display-enabled lk2nd image generated in `images/`. These files are local build outputs and are not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present. `scripts/set-bananarchy-hostname.sh` gives every image its target codename as the default hostname, and the display lk2nd image now requires the low-bit reboot cookie so **Reboot to bootloader** reaches the visible Fastboot menu. The default `147147` unlock passcode remains provisioned with the locker path unchanged. The X session performs a one-shot startup cleanup of stale `dmenu` and xlocker keyboard grabs, while `dwm` keeps the known-good 350 ms wake guard. `prepare-release.sh` rebuilds missing images from source and packages them; use `BA_REBUILD=1` for a forced source rebuild. +For the `a1108` / `dejavu` release, use the verified `nokia-beatles` raw image, standalone boot image, and display-enabled lk2nd image generated in `images/`. These files are local build outputs and are not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present. `scripts/set-bananarchy-hostname.sh` gives every image its target codename as the default hostname, and the display lk2nd image now requires the low-bit reboot cookie so **Reboot to loader** reaches the visible Fastboot menu. The default `147147` unlock passcode remains provisioned with the locker path unchanged. The X session performs a one-shot startup cleanup of stale `dmenu` and xlocker keyboard grabs, while `dwm` keeps the known-good 350 ms wake guard. `prepare-release.sh` rebuilds missing images from source and packages them; use `BA_REBUILD=1` for a forced source rebuild. diff --git a/README.md b/README.md index 01b75a2..0a76343 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ sudo ./flash-edl.sh nokia-argon The patched EDL client library is vendored under `vendor/edl/` (MIT), so a clean clone flashes without any manual download. `flash-edl.sh` also installs `pyusb` and `pyserial` into the gitignored `.flash-deps/` directory when the host lacks them; set `BANANARCHY_EDL_DIR` to use a different library checkout. -After a successful flash the phone boots lk2nd's branded boot splash, then the Plymouth boot splash, then X. Log in over the USB network with `ssh user@172.16.42.1` (password `147147`); if the main sshd's PAM stack is ever broken, a USB-only fallback listener accepts the same credentials on `ssh -p 2222 user@172.16.42.1`. Selecting **Reboot to bootloader** from the Power menu shows the visible lk2nd Fastboot menu; **Bootloader** stays in fastboot, **EDL** enters Sahara, and `fastboot reboot` returns to Linux. On the 2720 Flip, OpenRC starts independent services in parallel with a patched `local` service, a bounded `udevadm settle` and an independent USB fallback sshd keep X from waiting on modem firmware, a boot-open lid starts unlocked with a live keypad, and the external cover panel wiring is opt-in pending gpio13 mux / reset polarity sign-off; the shipping DTS keeps the known-good single internal panel. See `MANUAL.md` section 4.1 for first-boot troubleshooting of the boot splash, keypad input and the external cover display. +After a successful flash the phone boots lk2nd's branded boot splash, then the Plymouth boot splash, then X. Log in over the USB network with `ssh user@172.16.42.1` (password `147147`); if the main sshd's PAM stack is ever broken, a USB-only fallback listener accepts the same credentials on `ssh -p 2222 user@172.16.42.1`. Selecting **Reboot to loader** from the Power menu shows the visible lk2nd Fastboot menu; **Bootloader** stays in fastboot, **EDL** enters Sahara, and `fastboot reboot` returns to Linux. On the 2720 Flip, OpenRC starts independent services in parallel with a patched `local` service, a bounded `udevadm settle` and an independent USB fallback sshd keep X from waiting on modem firmware, a boot-open lid starts unlocked with a live keypad, and the external cover panel wiring is opt-in pending gpio13 mux / reset polarity sign-off; the shipping DTS keeps the known-good single internal panel. See `MANUAL.md` section 4.1 for first-boot troubleshooting of the boot splash, keypad input and the external cover display. See [MANUAL.md](MANUAL.md) for complete EDL, Fastboot, and microSD installation instructions, keypad navigation shortcuts, and the multi-mode T9 reference. @@ -214,4 +214,4 @@ Alpine Linux, postmarketOS/Nura, and other third-party components are guided by ## Verified 2720 Flip release images -The `a1108` / `dejavu` release packages the verified 2720 Flip image set: the raw `userdata` image, standalone mainline `boot.img`, and display-enabled lk2nd image. These are local build outputs, not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present, and `prepare-release.sh` rebuilds missing artifacts from source. The default hostname is the target codename, the Power menu's **Reboot to bootloader** uses the cookie-enabled lk2nd image, and the default `147147` unlock passcode remains provisioned with the locker path unchanged. `dwm` uses the known-good 350 ms wake guard, the X session releases stale startup keyboard grabs once, and `BA_REBUILD=1` forces an explicit rebuild. +The `a1108` / `dejavu` release packages the verified 2720 Flip image set: the raw `userdata` image, standalone mainline `boot.img`, and display-enabled lk2nd image. These are local build outputs, not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present, and `prepare-release.sh` rebuilds missing artifacts from source. The default hostname is the target codename, the Power menu's **Reboot to loader** uses the cookie-enabled lk2nd image, and the default `147147` unlock passcode remains provisioned with the locker path unchanged. `dwm` uses the known-good 350 ms wake guard, the X session releases stale startup keyboard grabs once, and `BA_REBUILD=1` forces an explicit rebuild. diff --git a/flash-edl.py b/flash-edl.py index 1f1d8b1..492f7d9 100755 --- a/flash-edl.py +++ b/flash-edl.py @@ -936,7 +936,7 @@ def main(): if method == "lk2nd" and device == "nokia-beatles": # Match the 8110/Argon shape: lk2nd in boot, mainline boot.img in # recovery (Volume Up fallback). Also refresh the separate 512 KiB - # lk2nd partition so "Reboot to bootloader" cannot chain-load a stale + # lk2nd partition so "Reboot to loader" cannot chain-load a stale # image without the visible menu. target_names = ("boot", "recovery", "lk2nd") target_parts = [] diff --git a/overlay/rootfs/usr/bin/sxmo_appmenu.sh b/overlay/rootfs/usr/bin/sxmo_appmenu.sh index 45ba627..60d000c 100755 --- a/overlay/rootfs/usr/bin/sxmo_appmenu.sh +++ b/overlay/rootfs/usr/bin/sxmo_appmenu.sh @@ -210,7 +210,7 @@ getprogchoices() { $icon_lck Lock (Screen off)^0^sxmo_state.sh set screenoff $icon_out Logout^0^confirm Logout && sxmo_power.sh logout $icon_rld Reboot^0^confirm Reboot && sxmo_power.sh reboot -$icon_rld Reboot to bootloader^0^confirm Bootloader && sxmo_power.sh bootloader +$icon_rld Reboot to loader^0^confirm Bootloader && sxmo_power.sh bootloader $icon_pwr Poweroff^0^confirm Poweroff && sxmo_power.sh poweroff" ;; modem) diff --git a/overlay/rootfs/usr/lib/dwm/plugins/dmenu.so b/overlay/rootfs/usr/lib/dwm/plugins/dmenu.so index 09d1039f3f2cf72c016a35a7b5565a9c8cedfef1..fe151a27c228d3c5968c2a9174071179c97570c7 100755 GIT binary patch delta 2139 zcmYk83rv<(7=YhH{0NSVBykB*5pMx1Q@Z$vz=#M?2@%i`oDwOnEJH0u=&y!~MvVO2 zaLwso^8%&_ehe(l0XfIWp&3)w5YUXNbHa)#^8!6*{w>*_J@0pJ-+AA2{%;IbTZXDF z74ep?SS4NGB%Sd&G#ps?Pj^wT`<|5M>o*cEeYfvQmFchchN=|fMA#hVY2FC4jZ$`F z<(!kM)AWw?vZxL-cXfnYz$JCp3_958IiswMG0+9>Uo&sL$T;k46Pbi}7l{Z?FA%wJ zsG7017Dl!@xQE-|GF*jD=yuTiTzrf8CiH=xa~E26K8x=YUwAIg-2VRUCoykEBlHv=AK*njf$|23m)yDm-Z6ct{8V}C)k|XtqW99quh^0 zZn1Xk4pxNRPec-N0wgkP0o>dovV*#I;Lf!oR`wAK5s*(-dw5F({W>luegaPPX+MAg zC}W*+=-ei=rHO@FpcMw-Zy17j1|&l&WI`W@mcZm>>!;bHK&Y~W{6sDZZ|Kvt1Kg_fhIG*a>#0Q!cp5 zm^KiYPHBfWvI&S-EaC~rIGRBYt{h*0+B9~OCN^>6;S|{60TYH7iOiJyD1gf)A~SIj&V~}BxyNrx`+IDY zD-sV=A(ZEvOF2j!4t7qx!F<}|<&{xNnYxR)fw&mD;C{Hsd3+8|LoGDGF{lT-Bd&5- z_y3edC0^hj5SJM%`={|`+SMPZa*f0NAuqj=NG-^(1Ijp{IP&!|uJ_OKPFz4`r||9+ zk!?_61PufxMK7er^z2WjmeV+#`CRD`&IBKr#E$7ppq9JY=`F5tVG?h~p>UQtdfp$w zeB;cm1HZeuIloPrxgQ-y&ZBp1ZLur{?V#gxP`E}U53-2UAQ|Go3bWyI3?+fSd=3)3 z28uKh+lgPq$#^Dy`s&C?IB`6&FAl}djxmGLB(++sa+RPBnxFxyR*QU#D_{o{LjmMN z9DOaTM52kUM$Y39Rc>y5?56?>-{OO_;#twV;zU+JAv73uPk!O6zwv3MQfa2gNQ}k% z$vi$6uo>(eRBmIAvof7M%B_4rGs*6C)~XD0Q@^U>$~$iAjGEbac(jTNZu~1ujf`!) z9itLQR}RD~*UE@wXJcuK)Pn42)9EsC$I$nX-;g4`xl(I=7K@|-p_&lz_z1WUro|0NT5ue3T_#)26 zUAPzzfkZ#EtHWckKj?OC-LC%z1C)%%`uhzVI!m3QPEIGLlhO(4WOO1r37vp)WfxIiEZq3> ke6`crGLfC;H72F1Kb=&5<&4E@f~AvxBRU%wEmlX>zux#b2mk;8 delta 2139 zcmYk6drXyO7{H&G&Ou-Tq9!0B65jI4luQYM5fUJh7eMmDln8NYnzx)m2k%JOh>wMT zIOPviG)3rR9K6&3%{gOe=#()OEXLG1VU8(7$$sxREzkDb@A=-_d7tNfzpwAKwePgG zFxuJ~sigDAxJx4scl`cfZ}pQ43v!aKBuCW`cxT*BHhom_6qRC}n>t&KG9OO04N+yr z+S%t-o9PweX;m#|;Jo9`%FU>c@KZz0`w?GGR7cIY%zI8M*a%$j?Voo~WNe?vKHT(D zq!z{!SL4xU^7@w{s>WD!?528V`X9G@OfM`DxeOgJ?664gR*`XdlucwJ&fg_s!AV<0 zo*SxSgzXw58y)oECb$Ew&<1}w=zJ@FMBD{WK+kyw4F?C~=fv0Eic|LgKSq!HZ+usd z$fF!Fj0%61WK>n`wT82=NMqjl<-RMv7g+<_wuz+SRiK?}oIbzRy?L+5-5nw=+Q$2p zLDqyrB8kS5%H`J4c_L$sbCuo`oc4%le4v(f+^~m(&fQd$w!6mT$^e@SyLE$dYLxz! zNGEGYA7DjD-z1WN;~{}ri=iu5Tg$kJy{ zlK}J*mmB-*7TPkIoCZ;+L?%N>hRD*LBGXQC0I-8N?HjHxcK)1W)_s(Eq<)6{B+3P? zjA;T3Os2H2w~N$3@G=e$Dma=x4z38_fXb!pWU1K1nTHxEgMKFbvqWSTogT3Gi@}9{ zp{)p9=wGcJ_p2cL?JkKGyl z;-%44U!kJRoQ7@>m1S=H^JjMzW%#zQRE@^=_L=_WD@Atk8f<}E`$T5oU3eAb8TIYn z6PiC`n_LfljV8hjp1V>xNE{5Moccv`pxx6mxqvb~$Q~?NE^!Aun|8IB0cpf3kO(ml4s+m6 z1SNs4EDjyJ`0+=?WyHgABA$T$!D`c;rBGIzi7R=(LElfjz7qIX2Gd&q{1M%C*ps?^**P@+_d z>Ha3d>LpCp?3qt#IH*kfYKt;0?nR*@PgBV5Lq1+5{;ui|wXfu{tGc9S*-yBsus}=t zrcK-I52va(BkXMvD#5KJI9|Ef%H}EQ2~|>whkc~vGMcrNw{Qxc2k;#8c9Gw?RN85f2rn`9H5r6CVr$Hll4mto6%CDnL5 zuEUY|7G8rpa4vogmheFjb$BEm1G-&Xx9eZ8uadF2lsRGe?0g&9(pO7EsuRbEU54;3 z;v;0LtD`HUtD-BStD!5QtDq~Ov)7sHtaZjZTb-%SQfH`>(~0S%bV52Aorq3CC!k!| qMVKcG+kaiC4qB|^*=d$NZn65?No_8fzDxyJJ0cltU$RV{QvU*6s5A8d diff --git a/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_contextmenu.sh b/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_contextmenu.sh index 1d49949..6b737cb 100755 --- a/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_contextmenu.sh +++ b/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_contextmenu.sh @@ -93,7 +93,7 @@ case "$WMCLASS" in $icon_lck Lock (Screen off) ^ 0 ^ sxmo_state.sh set screenoff $icon_out Logout ^ 0 ^ confirm Logout && sxmo_power.sh logout $icon_rld Reboot ^ 0 ^ confirm Reboot && sxmo_power.sh reboot - $icon_rld Reboot to bootloader ^ 0 ^ confirm Bootloader && sxmo_power.sh bootloader + $icon_rld Reboot to loader ^ 0 ^ confirm Bootloader && sxmo_power.sh bootloader $icon_pwr Poweroff ^ 0 ^ confirm Poweroff && sxmo_power.sh poweroff " WINNAME=Power diff --git a/prebuilt/sxmo-x11/usr/lib/dwm/plugins/dmenu.so b/prebuilt/sxmo-x11/usr/lib/dwm/plugins/dmenu.so index 09d1039f3f2cf72c016a35a7b5565a9c8cedfef1..fe151a27c228d3c5968c2a9174071179c97570c7 100755 GIT binary patch delta 2139 zcmYk83rv<(7=YhH{0NSVBykB*5pMx1Q@Z$vz=#M?2@%i`oDwOnEJH0u=&y!~MvVO2 zaLwso^8%&_ehe(l0XfIWp&3)w5YUXNbHa)#^8!6*{w>*_J@0pJ-+AA2{%;IbTZXDF z74ep?SS4NGB%Sd&G#ps?Pj^wT`<|5M>o*cEeYfvQmFchchN=|fMA#hVY2FC4jZ$`F z<(!kM)AWw?vZxL-cXfnYz$JCp3_958IiswMG0+9>Uo&sL$T;k46Pbi}7l{Z?FA%wJ zsG7017Dl!@xQE-|GF*jD=yuTiTzrf8CiH=xa~E26K8x=YUwAIg-2VRUCoykEBlHv=AK*njf$|23m)yDm-Z6ct{8V}C)k|XtqW99quh^0 zZn1Xk4pxNRPec-N0wgkP0o>dovV*#I;Lf!oR`wAK5s*(-dw5F({W>luegaPPX+MAg zC}W*+=-ei=rHO@FpcMw-Zy17j1|&l&WI`W@mcZm>>!;bHK&Y~W{6sDZZ|Kvt1Kg_fhIG*a>#0Q!cp5 zm^KiYPHBfWvI&S-EaC~rIGRBYt{h*0+B9~OCN^>6;S|{60TYH7iOiJyD1gf)A~SIj&V~}BxyNrx`+IDY zD-sV=A(ZEvOF2j!4t7qx!F<}|<&{xNnYxR)fw&mD;C{Hsd3+8|LoGDGF{lT-Bd&5- z_y3edC0^hj5SJM%`={|`+SMPZa*f0NAuqj=NG-^(1Ijp{IP&!|uJ_OKPFz4`r||9+ zk!?_61PufxMK7er^z2WjmeV+#`CRD`&IBKr#E$7ppq9JY=`F5tVG?h~p>UQtdfp$w zeB;cm1HZeuIloPrxgQ-y&ZBp1ZLur{?V#gxP`E}U53-2UAQ|Go3bWyI3?+fSd=3)3 z28uKh+lgPq$#^Dy`s&C?IB`6&FAl}djxmGLB(++sa+RPBnxFxyR*QU#D_{o{LjmMN z9DOaTM52kUM$Y39Rc>y5?56?>-{OO_;#twV;zU+JAv73uPk!O6zwv3MQfa2gNQ}k% z$vi$6uo>(eRBmIAvof7M%B_4rGs*6C)~XD0Q@^U>$~$iAjGEbac(jTNZu~1ujf`!) z9itLQR}RD~*UE@wXJcuK)Pn42)9EsC$I$nX-;g4`xl(I=7K@|-p_&lz_z1WUro|0NT5ue3T_#)26 zUAPzzfkZ#EtHWckKj?OC-LC%z1C)%%`uhzVI!m3QPEIGLlhO(4WOO1r37vp)WfxIiEZq3> ke6`crGLfC;H72F1Kb=&5<&4E@f~AvxBRU%wEmlX>zux#b2mk;8 delta 2139 zcmYk6drXyO7{H&G&Ou-Tq9!0B65jI4luQYM5fUJh7eMmDln8NYnzx)m2k%JOh>wMT zIOPviG)3rR9K6&3%{gOe=#()OEXLG1VU8(7$$sxREzkDb@A=-_d7tNfzpwAKwePgG zFxuJ~sigDAxJx4scl`cfZ}pQ43v!aKBuCW`cxT*BHhom_6qRC}n>t&KG9OO04N+yr z+S%t-o9PweX;m#|;Jo9`%FU>c@KZz0`w?GGR7cIY%zI8M*a%$j?Voo~WNe?vKHT(D zq!z{!SL4xU^7@w{s>WD!?528V`X9G@OfM`DxeOgJ?664gR*`XdlucwJ&fg_s!AV<0 zo*SxSgzXw58y)oECb$Ew&<1}w=zJ@FMBD{WK+kyw4F?C~=fv0Eic|LgKSq!HZ+usd z$fF!Fj0%61WK>n`wT82=NMqjl<-RMv7g+<_wuz+SRiK?}oIbzRy?L+5-5nw=+Q$2p zLDqyrB8kS5%H`J4c_L$sbCuo`oc4%le4v(f+^~m(&fQd$w!6mT$^e@SyLE$dYLxz! zNGEGYA7DjD-z1WN;~{}ri=iu5Tg$kJy{ zlK}J*mmB-*7TPkIoCZ;+L?%N>hRD*LBGXQC0I-8N?HjHxcK)1W)_s(Eq<)6{B+3P? zjA;T3Os2H2w~N$3@G=e$Dma=x4z38_fXb!pWU1K1nTHxEgMKFbvqWSTogT3Gi@}9{ zp{)p9=wGcJ_p2cL?JkKGyl z;-%44U!kJRoQ7@>m1S=H^JjMzW%#zQRE@^=_L=_WD@Atk8f<}E`$T5oU3eAb8TIYn z6PiC`n_LfljV8hjp1V>xNE{5Moccv`pxx6mxqvb~$Q~?NE^!Aun|8IB0cpf3kO(ml4s+m6 z1SNs4EDjyJ`0+=?WyHgABA$T$!D`c;rBGIzi7R=(LElfjz7qIX2Gd&q{1M%C*ps?^**P@+_d z>Ha3d>LpCp?3qt#IH*kfYKt;0?nR*@PgBV5Lq1+5{;ui|wXfu{tGc9S*-yBsus}=t zrcK-I52va(BkXMvD#5KJI9|Ef%H}EQ2~|>whkc~vGMcrNw{Qxc2k;#8c9Gw?RN85f2rn`9H5r6CVr$Hll4mto6%CDnL5 zuEUY|7G8rpa4vogmheFjb$BEm1G-&Xx9eZ8uadF2lsRGe?0g&9(pO7EsuRbEU54;3 z;v;0LtD`HUtD-BStD!5QtDq~Ov)7sHtaZjZTb-%SQfH`>(~0S%bV52Aorq3CC!k!| qMVKcG+kaiC4qB|^*=d$NZn65?No_8fzDxyJJ0cltU$RV{QvU*6s5A8d diff --git a/prepare-release.sh b/prepare-release.sh index db5a384..29a0310 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -31,7 +31,7 @@ if [ "$BA_REBUILD" = "1" ] || [ "$NEED_REBUILD" = "1" ]; then fi # The default 2720 lk2nd image must contain the low-bit reboot cookie, or -# "Reboot to bootloader" cannot return to the visible Fastboot menu. +# "Reboot to loader" cannot return to the visible Fastboot menu. if [ "$BA_TARGET" = "nokia-beatles" ] && \ { [ "$BA_REBUILD" = "1" ] || ! display_lk2nd_is_current; }; then ./scripts/build-lk2nd-beatles.sh diff --git a/scripts/check-rebuild.sh b/scripts/check-rebuild.sh index 9ec0959..25ee7fb 100755 --- a/scripts/check-rebuild.sh +++ b/scripts/check-rebuild.sh @@ -750,8 +750,21 @@ fi for f in src/sxmo-dmenu/dmenu.c \ overlay/rootfs/usr/bin/sxmo_appmenu.sh \ overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_contextmenu.sh; do - if ! grep -qF 'Reboot to bootloader' "$BASE_DIR/$f"; then - fail "$f lost the Reboot to bootloader menu item" + if ! grep -qF 'Reboot to loader' "$BASE_DIR/$f"; then + fail "$f lost the Reboot to loader menu item" + fi + if grep -qF 'Reboot to bootloader' "$BASE_DIR/$f"; then + fail "$f still uses the long Reboot to bootloader label" + fi +done +POWER_DMENU_SO="$BASE_DIR/prebuilt/sxmo-x11/usr/lib/dwm/plugins/dmenu.so" +POWER_DMENU_OVERLAY_SO="$BASE_DIR/overlay/rootfs/usr/lib/dwm/plugins/dmenu.so" +for so in "$POWER_DMENU_SO" "$POWER_DMENU_OVERLAY_SO"; do + if ! strings "$so" 2>/dev/null | grep -qF '%s Reboot to loader'; then + fail "$(basename "$so") lacks the compact Reboot to loader label" + fi + if strings "$so" 2>/dev/null | grep -qF '%s Reboot to bootloader'; then + fail "$(basename "$so") still contains the long bootloader label" fi done if ! grep -qF 'set_kernel_reboot_mode "bootloader"' \ diff --git a/src/sxmo-dmenu/dmenu.c b/src/sxmo-dmenu/dmenu.c index 9858650..a877588 100644 --- a/src/sxmo-dmenu/dmenu.c +++ b/src/sxmo-dmenu/dmenu.c @@ -3084,7 +3084,7 @@ open_builtin_menu(const char *menu_name, int keep_idx) add_menu_item(label, "@menu:confirm_logout", 1); snprintf(label, sizeof(label), "%s Reboot", ICON_RLD); add_menu_item(label, "@menu:confirm_reboot", 1); - snprintf(label, sizeof(label), "%s Reboot to bootloader", ICON_RLD); + snprintf(label, sizeof(label), "%s Reboot to loader", ICON_RLD); add_menu_item(label, "@menu:confirm_bootloader", 1); snprintf(label, sizeof(label), "%s Poweroff", ICON_PWR); add_menu_item(label, "@menu:confirm_poweroff", 1);