Make clean-clone OS rebuilds autonomous
A fresh clone can now bootstrap a complete armv7 rootfs, apply the Bananarchy overlay, regenerate boot artifacts, and produce a flashable image without local build artifacts. - Add a shared package list and Docker-based rootfs bootstrap, wired into rebuild-image.sh and chroot-shell.sh. - Add offline rebuild preflight checks and prebuilt-to-overlay artifact synchronization. - Vendor the patched EDL client and provision host flashing dependencies. - Remove the hardcoded credential from the power menu helper. - Refresh documentation and changelog for the autonomous workflow.
This commit is contained in:
1 parent
a9b72700ac
commit
0ab9367e28
31 files changed
+3809
-181
No files matched your search
@@ -21,7 +21,7 @@
|
||||
- **Pure X11 graphical stack with GPU acceleration**: cross-compiled **Xlibre** (`X11Libre/xserver`) display server offloading 2D/3D screen rendering to the **Adreno 304 GPU** via **Glamor, DRI3, GLX, and Mesa Freedreno (`FD304`, OpenGL 3.1 / OpenGL ES 3.0)** over `panel-mipi-dbi` KMSRO, paired with a customized **Sxmo (`sxmo-de-dwm`)** window manager (`240x320` vertical stack layout, native `ParentRelative` desktop clock and softkey bar without Conky overhead, `< 2 ms` slider/key wake latency, and zero Wayland overhead).
|
||||
|
||||
### Keypad-first user experience and native DWM plugins
|
||||
Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs a suite of 25 preloaded C/C++ plugins inside DWM that sleep at 0% CPU and open in `< 2 ms`:
|
||||
Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs a suite of 26 preloaded C/C++ plugins inside DWM that sleep at 0% CPU and open in `< 2 ms`:
|
||||
- **System and context menus (`dmenu`)**: instant full-screen 10-line vertical menus with live T9 filtering, built-in submenus, and hardware toggles.
|
||||
- **Passcode-based fullscreen phone locker (`xlocker`), GUI passcode configurator (`xpasscode`), and Duress Mode**: zero-bypass `240x320` fullscreen numeric passcode lock screen verified against the current user's system shadow password (`/usr/bin/bananarchy-verify-passcode`), blocking all desktop, menu, drawer, terminal, and power actions while locked and automatically handing off the display only during incoming calls. Includes a NeoUI **Passcode Configurator (`xpasscode` / `passcode.so`)** in `Config -> Passcode` to change the real Linux user password (`user`, any numeric length `>= 4` digits) and configure a separate **Duress Passcode**. Entering the duress passcode on the lock screen switches the session into **Duress Mode** (`/tmp/duress_home` blank profile with no contacts, SMS, call logs, or personal files, microSD unmounted and disabled, `xfiles` clamped to the profile directory, Passcode/Privacy Center/Tox/IRC/SIP/`st` terminal hidden and blocked, `*#06#` displaying a session-persistent random Luhn-valid IMEI derived from the device's TAC, and theme/wallpaper locked to `NordFrost.xth` and `nordic-peaks.png` until poweroff or reboot).
|
||||
- **Privacy Center (`xprivacy` / `privacy` / `privacy.so`) and `/usr/bin/bananarchy-privacy-ctl`**: 5-tab NeoUI privacy and tunneling control center (`1:Tor`, `2:Warp`, `3:OVPN`, `4:GS`, `5:WG`, hidden and disabled in Duress Mode) with zero background CPU or battery consumption when services are turned off:
|
||||
@@ -89,7 +89,7 @@ bananarchy/
|
||||
│ ├── sxmo-dwm/ # Patched sxmo-dwm (240x320 bstack, Pango bar, softkey bar, and plugin API)
|
||||
│ ├── dwm-plugins/ # DWM plugins (locker, passcode, dialer, calllog, callscreen, contacts, sms,
|
||||
│ │ # files, camera, themes, modem, networks, ringtones, wallpapers, music, sip,
|
||||
│ │ # email, irc, tox, smallweb, webarchy, gps, privacy) and runner
|
||||
│ │ # email, irc, tox, smallweb, webarchy, gps, privacy, engmenu) and runner
|
||||
│ ├── xdrawer/ # XDrawer global phone controls DWM plugin (xdrawer.so / xdrawer)
|
||||
│ ├── sxmo-dmenu/ # Resident DWM menu plugin (dmenu.so) and client (dmenu / xdmenu)
|
||||
│ ├── sxmo-st/ # Patched sxmo-st terminal with HarfBuzz Fira Code ligatures and XIM
|
||||
@@ -100,14 +100,40 @@ bananarchy/
|
||||
│ ├── leds-msm8905-torch/ # Kernel driver for SY7807 torch LED, WCD codec init, and PON shutdown
|
||||
│ └── msm8905-cam/ # Kernel V4L2 driver for GC2395/GC2385/GC2365 2MP rear camera (/dev/video0)
|
||||
├── overlay/rootfs/ # System configuration overlay applied over the target rootfs
|
||||
├── prebuilt/ # Pre-compiled armv7 binaries and kernel modules
|
||||
└── scripts/ # Cross-compilation, artwork generation, version, and overlay scripts
|
||||
├── prebuilt/ # Pre-compiled armv7 binaries and kernel modules (single source of truth)
|
||||
├── vendor/edl/ # Vendored, patched EDL client library (MIT) used by flash-edl.py
|
||||
└── scripts/ # Cross-compilation, bootstrap, verification, version, and overlay scripts
|
||||
# rootfs-packages.txt: single source of truth for the armv7 package set
|
||||
# bootstrap-rootfs.sh: builds a complete rootfs from a clean clone
|
||||
# check-rebuild.sh: offline rebuild preflight
|
||||
# sync-prebuilt-overlay.sh: mirrors prebuilt/ into overlay/rootfs/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Build and customization workflow
|
||||
|
||||
### 0. Rebuild from a clean clone (autonomous)
|
||||
|
||||
A fresh `git clone` contains everything required to produce a flashable image. Docker, Python 3, and network access are the only host requirements:
|
||||
|
||||
```bash
|
||||
./scripts/check-rebuild.sh # optional offline preflight
|
||||
./rebuild-image.sh nokia-argon # bootstraps rootfs/, then builds images/
|
||||
```
|
||||
|
||||
`rebuild-image.sh` performs the whole pipeline without manual preparation:
|
||||
|
||||
1. Runs `scripts/check-rebuild.sh` to validate shell and Python syntax, the package list, plugin artifacts, overlay sync, and the ignored local agent config.
|
||||
2. Mirrors `prebuilt/` into `overlay/rootfs/` with `scripts/sync-prebuilt-overlay.sh` so the tracked overlay snapshot never drifts.
|
||||
3. Creates a complete `armv7` rootfs from `scripts/rootfs-packages.txt` when `rootfs/` is missing or stale, using `scripts/bootstrap-rootfs.sh` (rootless Docker, Alpine `edge` and postmarketOS `v26.06` repositories, and the trusted keys in `keys/`).
|
||||
4. Applies the overlay and prebuilt artifacts, regenerates the initramfs, and writes `images/bananarchy-<device>.img`.
|
||||
|
||||
The bootstrap is idempotent and safe to re-run; `./chroot-shell.sh` uses it too. Override `ROOTFS_DIR`, `IMAGES_DIR`, or `BANANARCHY_USER_PASSWORD` to change the defaults. Run `./scripts/bootstrap-rootfs.sh --check` to report whether a rootfs needs bootstrapping, or `--force` to rebuild its configuration.
|
||||
|
||||
All cross-compilation scripts write to `prebuilt/`, which is the single source of truth for compiled artifacts. After running any `build-*.sh` script, `rebuild-image.sh` automatically refreshes the matching files in `overlay/rootfs/`.
|
||||
|
||||
### 1. Regenerate artwork assets
|
||||
### 1. Regenerate artwork assets
|
||||
Whenever `artwork/icon-large.png` is updated, regenerate all icons, `240x320` wallpapers, and animated boot splashes:
|
||||
```bash
|
||||
@@ -120,7 +146,7 @@ All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be
|
||||
# Rebuild cross-compiled Xlibre (X11Libre/xserver) + Glamor/GLX + libinput/fbdev DDX drivers
|
||||
./scripts/build-xlibre.sh
|
||||
|
||||
# Rebuild patched sxmo-st, sxmo-dmenu, sxmo-dwm, and all 22 C++ DWM plugins
|
||||
# Rebuild patched sxmo-st, sxmo-dmenu, sxmo-dwm, and all 26 DWM plugins
|
||||
./scripts/build-sxmo-x11.sh
|
||||
|
||||
# Rebuild standalone X11 games and emulators (snake, tetris, scoundrel, gambatte, remedy)
|
||||
@@ -165,6 +191,9 @@ Output images are written to `images/`:
|
||||
```bash
|
||||
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.
|
||||
|
||||
See [MANUAL.md](MANUAL.md) for complete EDL, Fastboot, and microSD installation instructions, keypad navigation shortcuts, and the multi-mode T9 reference.
|
||||
|
||||
## Credits
|
||||
|
||||
Reference in new issue
Block a user