Streamline README.md and remove trailing verified release images section
This commit is contained in:
1 parent
e4be88be53
commit
fdf808f054
1 file changed
+84
-180
@@ -4,71 +4,20 @@
|
|||||||
|
|
||||||
**Bananarchy** is a keypad-first Linux distribution hardforked from postmarketOS (`v26.06` / Alpine `edge` `armv7`), built for **Qualcomm MSM8905 (Snapdragon 205)** and **Qualcomm MSM8909 (Snapdragon 210)** smart feature phones with **240x320 QVGA non-touch displays** and **physical 12-key T9 keypads**.
|
**Bananarchy** is a keypad-first Linux distribution hardforked from postmarketOS (`v26.06` / Alpine `edge` `armv7`), built for **Qualcomm MSM8905 (Snapdragon 205)** and **Qualcomm MSM8909 (Snapdragon 210)** smart feature phones with **240x320 QVGA non-touch displays** and **physical 12-key T9 keypads**.
|
||||||
|
|
||||||
- **Current public release**: `a1125` (codename `ampere`) — see the [changelog](./CHANGELOG.md) for release notes.
|
- **Current public release**: `a1125` (codename `ampere`) — see [CHANGELOG.md](./CHANGELOG.md) for release notes and SHA-256 checksums.
|
||||||
- **Device builds (`a1125` — codename `ampere`)** — available in the [shared download folder](https://drive.google.com/drive/folders/1jS68CQbKJPrNM7MZgV64qi6penY5g1nM?usp=sharing):
|
- **Device builds (`a1125` — codename `ampere`)** — available in the [shared download folder](https://drive.google.com/drive/folders/1jS68CQbKJPrNM7MZgV64qi6penY5g1nM?usp=sharing):
|
||||||
- **Nokia 8110 4G (`nokia-argon`)** — `bananarchy-nokia-argon-a1125-ampere.zip`
|
- **Nokia 8110 4G (`nokia-argon`)** — `bananarchy-nokia-argon-a1125-ampere.zip`
|
||||||
- **Nokia 2720 Flip (`nokia-beatles`)** — `bananarchy-nokia-beatles-a1125-ampere.zip`
|
- **Nokia 2720 Flip (`nokia-beatles`)** — `bananarchy-nokia-beatles-a1125-ampere.zip`
|
||||||
- **Nokia 800 Tough (`nokia-coconut`)** — `bananarchy-nokia-coconut-a1125-ampere.zip`
|
- **Nokia 800 Tough (`nokia-coconut`)** — `bananarchy-nokia-coconut-a1125-ampere.zip`
|
||||||
- **Nokia 8000 4G (`nokia-sparkler`)** — `bananarchy-nokia-sparkler-a1125-ampere.zip`
|
- **Nokia 8000 4G (`nokia-sparkler`)** — `bananarchy-nokia-sparkler-a1125-ampere.zip`
|
||||||
- **Project philosophy**: read [The Bananarchy Manifesto](./MANIFESTO.md) for the background and goals behind the distribution.
|
- **Community IRC**: `#bananarchy` on **Abjects** (`irc.abjects.net`, TLS port `6697`).
|
||||||
- **User and flashing guide**: see the [user manual](./MANUAL.md) for installation, keypad navigation, and hardware details.
|
- **Project philosophy**: [The Bananarchy Manifesto](./MANIFESTO.md).
|
||||||
- **UI and networking SDK reference**: see the [NeoUI and NeoNet SDK guide](./SDK.md) for building native C, C++, and Yabasic `240x320` GUI and networked applications.
|
- **User and flashing guide**: [MANUAL.md](./MANUAL.md) (complete installation, EFS backup, keypad shortcuts, and configuration reference).
|
||||||
|
- **UI and networking SDK**: [SDK.md](./SDK.md) (`NeoUI` and `NeoNet` reference for C, C++, and Yabasic `240x320` applications).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Key features
|
## Supported devices
|
||||||
|
|
||||||
### System and hardware support
|
|
||||||
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice and 48 kHz WCD/PM8909 HiFi audio with wired 3.5mm jack autodetection, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff. The kernel image is built from `config-bananarchy-msm8909.armv7` with the known-good pmaports module ABI, and ships with idle-blanking power management; `BATTERY-OPTIMIZATION-ANALYSIS.md` records the measured idle state and explains why suspend-to-RAM is unavailable on this firmware (PSCI `SYSTEM_SUSPEND` missing) and why a full custom module tree rebuild is not worthwhile. Section 17 adds the `a1108` re-analysis and two low-risk wins: the active zram swap now uses `lz4` instead of `zramstart`'s `zstd` default, and `vm.compaction_proactiveness=0` removes ~2 `kcompactd0` wakeups/s. Section 18 replaces the idle `nmcli device monitor` poller with NetworkManager dispatcher hooks and records the kernel/VFS tweaks that were A/B tested and rejected, while sections 19-21 add event-driven compiled C11 idle and autostart daemons, MSM8909 RPM interconnect bus scaling (`BIMC`/`PCNOC`/`SNOC`), live WCN3620 screen-off firmware offloads, ChipIdea USB runtime PM while unplugged, `panel-mipi-dbi` DPMS sleep, and dual-port DSDS standby power policy (with opt-in `AT$QCDRX` paging). Runtime Wi-Fi listen-interval, modem DRX and DSDS secondary-SIM power policies are configurable in `/etc/bananarchy-power-policy.conf`; see `MANUAL.md`.
|
|
||||||
- **Target-correct camera orientation and system-core keypad debouncing**: the V4L2 demosaic path rotates frames 180 degrees on `nokia-beatles`, `nokia-sparkler`, and `nokia-leo`, correcting those targets' sensor mounting directly at `/dev/video0` for the viewfinder, saved photos, and third-party V4L2 consumers without an extra frame-buffer copy, while `nokia-argon` and `nokia-coconut` retain their upright orientation. At the kernel `input_core` layer (`0014-input-core-keypad-debouncer.patch`), a zero-latency post-release chatter debouncer (`/sys/module/input_core/parameters/key_debounce_ms`, defaulting at boot to `55 ms` on `nokia-argon`/`nokia-sparkler`/`nokia-leo` and `45 ms` on `nokia-beatles`/`nokia-coconut`), combined with `col-scan-delay-us = <50>` (`matrix_keypad`), `pm8941-pwrkey` release chatter holdoff, and `xset r rate 300 25`, suppresses mechanical dome double-presses while keeping `uinput`, Bluetooth HOGP/AVRCP, and USB HID untouched.
|
|
||||||
- **Speaker-LRA haptic isolation on Nokia 8000 4G (`nokia-sparkler`)**: on devices that drive haptics over `SPK_DRV` (`RX3`) with a 157 Hz speaker-LRA (`nokia,sparkler`, `nokia,leo`), `xmusic`, `xfiles`, `xringtones`, and standalone `mpv` dynamically notch out the 157 Hz LRA resonance (`highpass=f=260` + `bandreject=f=157`) when outputting on `Speaker` while keeping full-range bass on `Headphones` and `Bluetooth` and zeroing `RX3` on `Earpiece`/`Headphones`/`Bluetooth` (`sxmo_audio.sh`), leaving `sxmo_vibrate` (`157.0 Hz`) calibration untouched.
|
|
||||||
- **High-brightness display and reliable flip handling**: the 2720 Flip internal panel uses a live-verified 25 MHz SPI clock to prevent corruption when backlight PWM exceeds the former 71% threshold, without reducing the brightness range. The compiled lid daemon combines event-driven `EV_SW` handling with 200 ms raw-hall reconciliation, so missed edges or stale switch state cannot leave the phone awake when closed.
|
|
||||||
- **Stock-signed Wi-Fi, Bluetooth, and modem firmware**: `msm-firmware-loader` mounts the phone's `modem` and `persist` partitions before udev, supplies `wcnss.mdt`, `mba.mbn`, and the device-specific WCNSS NV data to the mainline remote processors, and preserves the factory radio calibration and MAC addresses. The sysinit and boot service links are shipped explicitly so clean, `--no-scripts` image builds bring up both `wlan0`/`wcn36xx` and `hci0`/`btqcomsmd` without packaging device-specific firmware blobs.
|
|
||||||
- **Alpine Linux Edge base**: full access to the Alpine package ecosystem with `< 95 MB` idle RAM usage on 512 MB devices and full local root access out of the box.
|
|
||||||
- **Network time synchronisation**: `chronyd` uses `iburst` with long `minpoll 12 maxpoll 16` polls; `bananarchy-time-sync.sh` re-resolves the NTP pool and requests an immediate burst over chronyd's root-only Unix socket when NetworkManager brings a connection up, so the clock is set within seconds of boot or a Wi-Fi reconnect without shortening the battery-friendly steady-state interval. **Config -> Sync net time** forces a burst manually and reports the result when autosync is slow. The status bar clock is also refreshed synchronously on unlock and by dmenu itself, so it cannot show a stale pre-lock time. Plugging or unplugging the charger forces an immediate charge-icon republish plus a short delayed recheck, so the icon changes even when the reported capacity has not moved yet. See `MANUAL.md` section 5.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 27 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, top-level **Stop Timer** / **Cancel Timer** controls when a timer is active, 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).
|
|
||||||
- **Idle screen lock**: after the configurable **Screen blank** timeout, `bananarchy-idle-blank.sh` arms `bananarchy-idle-lock.sh`, which triggers `xlocker screenoff` after a 30 s dark-panel grace period (set `~/.config/sxmo/idle_lock_delay` to `0` for immediate locking or `off` to blank without a passcode). Waking the panel cancels the pending lock, so a quick key press returns to the unlocked desktop.
|
|
||||||
- **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:
|
|
||||||
- **Tor (`1:Tor`)**: start/stop the Tor anonymity daemon (`SocksPort 9050`, `TransPort 9040`, `DNSPort 9053`) and transparently route all native phone traffic and/or Wi-Fi hotspot (`10.42.0.0/24`) and USB-tethered (`usb0`) traffic through Tor.
|
|
||||||
- **GS-Warp (`2:Warp`)**: start/stop the GSocket-tunneled OpenVPN client (`gs-warp` / `gs-warp-simple.sh` over `tun_gswarp`), configure a custom GSocket secret string (defaulting to the MD5 of the selected `.ovpn` profile), and route native and/or Wi-Fi/USB-tethered traffic through it.
|
|
||||||
- **OpenVPN (`3:OVPN`)**: start/stop OpenVPN (`tun_ovpn`) with a custom `.ovpn` configuration file selected via the built-in file picker and route native and/or Wi-Fi/USB-tethered traffic through it.
|
|
||||||
- **GSocket single TCP port (`4:GS`)**: start/stop `gs-netcat` (`gsocket`) for a single configurable TCP port with a custom GSocket secret string (`client` or `server` mode) and transparently redirect native and/or Wi-Fi/USB-tethered traffic for that TCP port through GSocket.
|
|
||||||
- **WireGuard (`5:WG`)**: start/stop a kernel WireGuard tunnel (`wg0`), generate keypairs (`wg genkey` / `wg pubkey`) or import `.conf` profiles, edit custom `PrivateKey`, peer `PublicKey`, optional `PresharedKey`, `Endpoint`, `Address`, and `DNS`, and route native and/or Wi-Fi/USB-tethered traffic through it.
|
|
||||||
- **Zero-log privacy default and Extended Logging toggle (`xengmenu` / `dmenu config` / `bananarchy-engmenu-ctl logging`)**: extended system and session logging is **disabled by default** (`OFF`) across `sxmo_log`, `superd` and its managed services, `Xorg` (`-logfile /dev/null -logverbose 0`), `dwm`, `fcitx5` (`--verbose="*=0"`), `tinydm`, `NetworkManager` (`level=OFF`), `ModemManager` (`--log-level=ERR --log-file=/dev/null`), and kernel `printk`, ensuring zero eMMC log writes and zero idle logging activity. Extended RAM-only logging in `/tmp` (`/tmp/sxmo.log`, `/tmp/superd.log`, `/tmp/superd_state/superd/logs/*.log`) can be toggled at any time in the **Engineering Menu (`*#0001#` / `xengmenu` -> `8: Extended Logging`)**, **`Config -> Extended Logging`**, or via `bananarchy-engmenu-ctl logging [on|off|toggle|status]`.
|
|
||||||
- **Global controls drawer (`xdrawer`) and `*` + `#` screenshot combo**: press **both softkeys together** from anywhere to adjust linear (`1%`–`100%`) speaker, earpiece, and ringtone volume, audio output routing (`Speaker`, `Earpiece`, `Headphones` with automatic 3.5mm jack plug/unplug routing), ringer mode (`Ring+Vib` / `Vibrate` / `Silent` / `DND`), 3-level vibration intensity (`Light` / `Medium` / `Strong`), flashlight, sound and microphone mute, screen brightness, and keypad backlight; press **`*` and `#` together** from anywhere to capture a `240x320` PNG screenshot (`scrot` via `bananarchy-screenshot`) to `~/Pictures/screenshot-YYYYMMDD-HHMMSS.png`.
|
|
||||||
- **Phone dialer (`xdialer`), call log (`xcalllog`), and call screen (`xcallscreen`)**: press any digit on the home screen to start dialing with live T9 contact matching, run interactive carrier USSD codes (`*100#`, etc.), or type `*#06#` to inspect both IMEIs. When two SIM cards are active in Dual-SIM Dual Standby (DSDS), placing a call or running a USSD code prompts to choose between `SIM 1` and `SIM 2`. Emergency numbers (`112`/`911`) prioritize cellular CS/VoLTE before falling back to VoWiFi. Incoming and active calls on either SIM (including `[SIM n VoLTE]`/`[SIM n VoWiFi]` IMS calls as well as incoming/active VoIP calls from `xsip` and `xtox`) open a dedicated call screen with an active `[SIM 1]`/`[SIM 2]`/`[SIM 1 VoLTE]`/`[SIM 1 VoWiFi]`/`[SIP]`/`[TOX]` badge, earpiece/speaker switching, microphone mute, DTMF keypad, and one-key normalized WAV call recording (`~/Recordings/rec_HHMMSS_<caller>.wav`). The call log includes a 5-tab view (`All`, `Miss`, `In`, `Out`, `Spam`) with integrated anti-spam number blocking (`~/.config/sxmo/block.tsv`) that automatically hangs up blocked callers and logs them to the `Spam` tab without triggering missed-call notifications.
|
|
||||||
- **Contacts (`xcontacts`) and SMS manager (`xsms`)**: full phonebook editor with direct Qualcomm QMI SIM card contact import and export across SIM 1 and SIM 2, paired with a threaded SMS conversation view that renders and scrolls full-length concatenated/Unicode (`UCS-2`) messages line by line, a multi-tap message composer with an encoding-aware GSM-7/UCS-2 segment counter, outgoing `SIM 1` / `SIM 2` selection when two SIMs are active, optional IMS `SMS-over-IP` (`RP-DATA`) transport when VoWiFi or userspace VoLTE is active, and built-in anti-spam blocklist / spam folder (`~/.local/share/sxmo/block`) with one-key thread blocking and restoration.
|
|
||||||
- **Modem, Dual-SIM, Mobile Data (`wwan0`), and IMS / VoLTE / VoWiFi manager (`xmodem`, `bananarchy-imsd`, `bananarchy-vowifi`, `bananarchy-imsctl`)**: 5-tab cellular control center (`1:SIM`, `2:Rad`, `3:IMS`, `4:AT`, `5:Log`) supporting Dual-SIM Dual Standby (DSDS) with simultaneous network registration on both SIM slots, instant default SIM switching (`Set as Default SIM (Calls/SMS)`), full Primary/Secondary GW (`4G/Data`) slot swapping (`Make Primary GW (4G/Data Swap)`), event-driven `QMI_WDS` `PRIMARY` subscription binding (`libmm-wds-bind.so`), `Profile [1]`/`attach_pdn` APN synchronization, and automatic Dual-SIM `cs-only` pause/restore (`mobile-data-prep` / `restore-dsds`), SIM PIN unlock and PUK unblock wizards, 2G/3G/4G radio mode selection, Qualcomm MCFG `.mbn` IMS profile management (`install`, `select`, `remove`, MCC/MNC `auto-match`, `QMI_PDC`, and idle-isolated `QMI_IMSDCM`), VoLTE and VoWiFi (`SWu` IKEv2 + `EAP-AKA`/`EAP-AKA'` + UDP/4500 ESP + 3GPP SIP + `SMS-over-IP` with `AMR-WB`/`AMR-NB`), interactive USSD sessions, and a live AT command console. Both VoLTE and VoWiFi ship in `auto` mode (disabled at 0% idle CPU unless the active network is strictly **4G-only** or manually enabled).
|
|
||||||
- **Networks and Bluetooth manager (`xnetworks`) with OBEX file transfer (`bananarchy-bt-obex`)**: 3-tab connectivity manager for Wi-Fi networks, WPA2 password entry, Wi-Fi hotspot, USB tethering, 4G/LTE mobile data (`wwan0`) and APN editing, and Bluetooth pairing, with built-in Bluetooth OBEX Object Push reception (advertising Smartphone CoD `0x5a020c` without `a2dp_source` headset spoofing, supporting both L2CAP `SOCK_SEQPACKET` GOEP 2.0 and RFCOMM, presenting an incoming Accept/Reject and folder-selection modal in `xnetworks` alongside configurable persistent target folder in `~/.config/sxmo/bt_obex_dir`) and **Send via Bluetooth** in `xfiles`. Bluetooth discovery runs through `/usr/local/bin/bluetoothctl` and `bananarchy-bt-scan.sh`, which keeps one interactive `bluetoothctl` PTY client alive, sets auto transport and duplicate-data, queries `devices` during active discovery, and stops discovery cleanly so unpaired peripherals are not dropped when the scan command exits. A narrow `doas` helper runs `btmgmt -i hci0 le on` along with `bredr on`, `ssp on`, `linksec on`, `bondable on`, `advertising off`, and Smartphone controller class `2 3` so WCNSS pairs with Android phones and LE/Classic peripherals reliably (`PairableTimeout = 0`, while `DiscoverableTimeout = 60` stays off by default). BlueZ runs in `dual` controller mode because `bredr` mode rejects the LE-only HOGP profile, and `bananarchy-bt-obex` registers a persistent `KeyboardDisplay` `Agent1` that pops up interactive NeoUI pairing passkey confirmation, PIN/passkey keypad entry, and keyboard display codes inside `xnetworks` (while auto-confirming screenless Classic Audio headsets). Pair/connect actions run asynchronously (`--async-ui`), power the adapter on, enable LE/SSP, force the LE bearer for HID-over-GATT devices, prefer public BR/EDR bearers and A2DP/HFP `ConnectProfile` fallback for Classic Audio / dual-mode Bluetooth 5.x/6.x headsets, keep controller visibility hidden by default with a 60 s discoverable timeout to save standby battery, and pair unbonded peripherals before connecting. WirePlumber restricts headset roles to `a2dp_sink hsp_hs hfp_hf`, locks HFP to 8 kHz `cvsd` (disabling `msbc` and `lc3-a127`/`lc3` to match QDSP6 `INTERNAL_BT_SCO`), enables LDAC ABR (`quality = "auto"`) and `dummy-avrcp-player` for hardware volume, and forwards headset AVRCP media keys through `bananarchy-bt-obex` to `xmusic`.
|
|
||||||
- **File manager (`xfiles`) with microSD automount (`sxmo_sdcard.sh`), Bluetooth file sharing, `.mbn` IMS profile installation, music and tracker player (`xmusic`), and camera (`xcamera`)**: keypad directory browser with automatic microSD card (`/dev/mmcblk1`) detection and `/media/sdcard` mounting/unmounting, **Send via Bluetooth** OBEX file push to paired/discovered devices, Qualcomm MCFG `.mbn` metadata inspection and **Install IMS Profile** actions, built-in text viewer, integrated GUI multi-tap text editor (`Edit in Text Editor`, available as an action on any file), image viewer, and dedicated monophonic ringtone viewer (`RingtoneView` for Nokia RTTTL `.nrt`/`.rtttl`/`.rtx`, Ericsson eMelody `.emy`, and IrDA iMelody `.imy` with graphical piano-roll pitch contour, note sequence viewer, live audio preview, and one-key assignment as call ringtone or notification/SMS sound — plus one-click actions to launch `.jar`/`.jad` MIDlets in the **ReMEdy (`remedy`)** J2ME emulator, launch `.gb`/`.gbc` ROMs in the Game Boy emulator, run `.yab` scripts in Yabasic inside the terminal, play audio, preview images, set any image as wallpaper, or install any audio, tracker, or monophonic melody file as call ringtone or notification/SMS sound), a 3-tab music and chiptune tracker module player (`WAV`, `MP3`, `OGG`, `FLAC`, `Opus`, `MOD`, `XM`, `IT`, `S3M`, `NRT`, `RTTTL`, `RTX`, `EMY`, `IMY`, and more), and a live V4L2 camera viewfinder with digital zoom, flash/torch control, self-timer, and photo gallery.
|
|
||||||
- **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xquagr`, `xkopher`, `webarchy`)**:
|
|
||||||
- **SIP VoIP client (`xsip` / `sip.so`)**: RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History`) supporting both account-registered calling (with Digest MD5 authentication and standby `REGISTER` keepalive) and direct accountless P2P SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`), RFC 3263 DNS `SRV` (`_sip._udp.<domain>`) proxy discovery and dialog routing, RFC 6189 **ZRTP** media-path Diffie-Hellman (`DH3k`/`DH2k`) key agreement and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`) voice encryption with a 4-character `SAS` verification code, incoming `INVITE` ringing and call handling integrated with `xcallscreen` (`[SIP/<codec>]` / `[SIP/<codec>:<sas>]`), multi-codec wideband and narrowband RTP/SRTP audio (`Opus` 16 kHz / 48 kHz RTP clock with in-band FEC, `ITU-T G.722` 16 kHz wideband SB-ADPCM, `AMR-WB` 16 kHz, `AMR-NB` 8 kHz, `G.711 PCMU`/`PCMA` 8 kHz, `GSM 06.10` Full Rate 8 kHz, `ITU-T G.726-32` 8 kHz ADPCM, `IMA ADPCM DVI4` 8/16 kHz, and `L16` uncompressed 16-bit PCM 8/16 kHz) with per-account and direct-mode codec preference selection, and RFC 2833 / RFC 4733 DTMF.
|
|
||||||
- **Email client (`xemail` / `xmail` / `email.so`)**: multi-account `IMAP4rev1`, `POP3`, and `SMTP` client (`Inbox`, `Compose`, `Accounts`) supporting implicit TLS, `STARTTLS`, and plain TCP, SASL `PLAIN`/`LOGIN`, MIME RFC 2047/Base64/Quoted-Printable decoding, offline inbox cache, full-screen message reader, and composer.
|
|
||||||
- **IRCv3 client (`xirc` / `irc.so`)**: multi-server IRC client (`Buffers`, `Chat`, `Servers`) with OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), `SASL PLAIN` authentication, slash commands, and resident background mode with highlight vibration alerts; the default network is Abjects (`irc.abjects.net`, TLS port `6697`) auto-joining `#bananarchy`.
|
|
||||||
- **Tox / Trifa P2P messenger and audio call client (`xtox` / `tox.so`)**: encrypted P2P messenger (`Friends`, `Chat`, `My Tox ID`) built on `c-toxcore` (`libtoxcore.so.2`) with DHT + TCP relay bootstrap, friend requests, persistent message history, and `ToxAV` 48 kHz Opus voice calls integrated with `xcallscreen`.
|
|
||||||
- **Quagr encrypted pager (`xquagr` / `quagr` / `quagr.so`)**: 3-tab NeoUI encrypted `<= 30`-byte pager over `ntfy` HTTP/HTTPS relays (`Receive`, `Send`, `Config`), supporting independent Rx and Tx credentials (each configurable as a Passphrase `SHA256("QUAGR:" + passphrase)` or raw 64-character hexadecimal key), a strict opt-in background receiver daemon (autostarts **only** when enabled in `~/.config/sxmo/quagr.conf` and a valid Rx key/passphrase is set) writing standard Sxmo sound/desktop notifications (`$SXMO_NOTIFDIR`), and closed-flip 2720 Flip (`nokia-beatles`) external cover screen integration that wakes immediately to display the full wrapped page until dismissed with any side button.
|
|
||||||
- **Kopher SmallWeb browser (`xkopher` / `kopher` / `xsmallweb` / `smallweb.so`)**: multi-protocol SmallWeb client for **Gopher** (`gopher://`) with optional TLS (`gophers://`), **Gemini** (`gemini://`), **Spartan** (`spartan://`), and **Nex** (`nex://`), featuring WAP-style default keypad controls from [Kopher](https://code.luxferre.top/luxferre/kopher.git), user-adjustable keybindings (`~/.config/sxmo/smallweb_controls.tsv`), 10 bookmarks, custom homepage support, and link focus that always scrolls the viewport to the focused link in both wrapped and unwrapped modes.
|
|
||||||
- **Webarchy Web browser (`webarchy` / `xwebarchy` / `webarchy.so`)**: full-featured HTML5/CSS3/JS web browser built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`, WebGL, accelerated 2D canvas, and 512 MB RAM pressure tuning), default KaiOS 4.0 User-Agent (`Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0`) with preset and custom User-Agent override (`~/.config/sxmo/webarchy_ua.txt`), `UTF-8` default encoding fallback, `Noto Sans` / `Noto Serif` (`font-noto` + `font-noto-emoji`) as the default non-monospace browser fonts and `Fira Code` with OpenType ligatures as the monospace font, full GStreamer multimedia (`MediaSource` / MSE, WebAudio, inline HTML5 `<video>`/`<audio>` autoplay without user gesture requirements), unobtrusive bookmarking (`*HTTPS`/`*HTTP` header badge, `*`+`0-9` save / `#`+`0-9` load chords, and bookmark manager), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap form input by default, plus an optional `*#` accelerated mouse cursor emulation mode), and a device-aware renderer profile: the 2720 Flip uses the WebKit CPU renderer (with automatic software fallback after a WebProcess crash) while the 8110 4G keeps Adreno 304 acceleration; `~/.config/sxmo/webarchy_software_renderer` forces the CPU profile on any target. The image build also compiles the installed GSettings schema XML into `usr/share/glib-2.0/schemas/gschemas.compiled`; without that database WebKit's network process aborts with an internal error before any renderer policy can help.
|
|
||||||
- **GPS-only system time and live timezone sync**: **Config -> Time source** switches from NTP to GNSS only (stopping `chronyd` and disabling every network-up NTP burst) and **Config -> Sync GPS time** steps the clock from a ModemManager GPS UTC value or a valid RMC fix, writes the RTC and refreshes the status bar. All GPS queries now resolve the GNSS-capable modem through `bananarchy-gps-modem.sh` instead of the ambiguous `mmcli -m any`, which fixes empty GPS data on the dual-SIM 2720 Flip. Network-up `chronyd` bursts wait for sync completion (`bananarchy-time-sync.sh`) and live timezone changes (`setup-timezone` / `dmenu`) immediately refresh `099-time`, `bananarchy-run-aligned` (`SIGUSR1`), `locker.so` (`REFRESH_TIME`), and `bananarchy-cover-idle` (`ba_refresh_tz`) without rebooting. See `MANUAL.md` sections 5.6 and 5.8.
|
|
||||||
- **2720 Flip cover display behaviour**: the compiled `bananarchy-cover-idle` renderer keeps the external panel fully off while the flip is open, waits for a side-button `BUTTON`, `WAKE`, or incoming `CALL` event when closed, then shows the centered `240x240` clock, date, battery and compact network indicators until the same **Config -> Screen blank** timeout (`~/.config/sxmo/idle_blank_timeout` and `sxmo.noidle`, reloaded live) expires. During an incoming call while closed, the cover wakes automatically and stays lit past the blank timeout displaying the caller's number/contact and SIM tag; pressing outer **Volume Up/Down** mutes the ringer (`mute-ring`) and pressing the external **Power**/camera button hangs up without opening the flip (`hangup-call`), while opening the flip keeps the lock flag set and raises `callscreen` on top of the locked desktop without hanging up the call (`sxmo_hook_lock.sh` / `locker.so`). `bananarchy-volume-keys` turns the outer keys into trusted cover wake and call-control events; `bananarchy-lid` mirrors the hall sensor onto `SW_LID` so `dwm` tracks the closed state accurately and raises active/incoming `callscreen` windows on open; `bananarchy-cover-status.sh` publishes modem/Wi-Fi indicators; and the daemon blocks in `poll()` with no timer while off. The shipping single-panel DTB drives the cover through the **kernel** `panel-mipi-dbi-spi` driver (`backend = kernel`). The KaiOS 3.10 DTS and kernel driver show that both GC9305s share CS0, gpio110 D/C and one active-high PMIC MPP2 PWM backlight (`kernel_backlight_invert = 0`, `kernel_backlight_level = 14`), while gpio13 selects the panel (high = cover, low = internal), gpio23 is the external reset and gpio21 is TE. Because the internal `240x320` TN panel is normally-white while the external `240x240` panel is normally-black, waking the cover first paints Xorg's `override_redirect` cover window and `/dev/fb0` solid black while gpio13 is low and leaves the internal GC9305 scanning black GRAM (`kernel_internal_sleep = 0`) so it stays completely dark when the shared backlight turns on; the daemon then switches gpio13 high, pulses gpio23, replays the stock 240x240 init through `/sys/kernel/debug/dri/0/command`, and presents the centered `240x240` UI once per second. `/run/bananarchy/cover-backlight` contains `0` during dark GRAM preparation, `1` while the cover is lit, and is removed when blanked (`BLANK` or `SIGTERM`) so DPMS Off powers down the panel rails; `bananarchy-display-power-sync` keeps brightness, `bl_power` and DPMS synchronized while the keypad stays dark. Opening the flip sleeps the external panel, restores gpio13 low, brightness 14, `bl_power=0`, DPMS On and wakes to the passcode lockscreen (or `callscreen` over the lockscreen during an incoming/active call). `bananarchy-lid-gate.sh` blocks every main-panel wake while closed and forwards it as a cover `WAKE`. The legacy `spidev`, 8/9-bit, `PROBE` and `SET backend none` rollback paths remain, along with `SET kernel_backlight_invert 0|1` and `SET kernel_internal_sleep 0|1`. `bananarchy-cover-diagnose.sh` reports the debugfs hook, backlight marker, GPIO lines and daemon state; `scripts/test-cover-idle.py`, `scripts/test-cover-spidev.py`, `scripts/test-cover-kernel.py`, `scripts/test-cover-dt.py`, `scripts/test-lid-gate.py` and `scripts/test-time-timezone-sync.py` validate the renderer, both backends, DT layouts, lid gate and time/timezone sync on the host. The opt-in two-panel `spi-mux` DT remains experimental because its separate gpio21 D/C wiring contradicts the vendor DTS and a live test darkened the main panel.
|
|
||||||
|
|
||||||
- **GPS reception test utility (`bananarchy-gps`) and OpenStreetMap navigator (`xgps` / `xmaps` / `xnav` / `gps.so`)**: CLI GNSS/GPS diagnostic tool (`bananarchy-gps status|enable|disable|nmea|watch`) and 3-tab NeoUI GPS navigator (`1:GPS Status`, `2:OSM Map`, `3:Nav/Search`) with live NMEA/QMI PDS satellite and 3GPP cell telemetry, interactive `240x212` OpenStreetMap slippy-map tile viewer with offline PNG tile cache (`~/.cache/sxmo/osm_tiles/`), Nominatim place search, saved waypoints, and OSRM turn-by-turn route geometry and step navigation.
|
|
||||||
- **Themes (`xthemes`), wallpapers (`xwallpapers`), and ringtones (`xringtones`)**: installable `.Xresources` color and font themes (`~/.xthemes/*.xth`, 21 preinstalled schemes including `LynxLair.xth`) with live zero-restart reload across the entire UI, `dunst` notification popups (`bananarchy-sync-dunst-theme`), and terminal, alongside dedicated managers for desktop wallpapers and 3-tab call ringtones & notification/SMS alerts (`1:Ringtone`, `2:Notif/SMS`, `3:Settings`, supporting standard audio, tracker modules, and Nokia RTTTL `.nrt`/`.rtttl`/`.rtx`, Ericsson eMelody `.emy`, and IrDA iMelody `.imy` monophonic ringtones via `/usr/bin/bananarchy-melody`, wired into `sxmo_notifs.sh` and `sxmo_hook_notification.sh`) with 3-level vibration control.
|
|
||||||
|
|
||||||
### Input, terminal, and developer tools
|
|
||||||
- **6-mode `fcitx5-t9` keypad input**: press `#` to cycle between `abc`, `Abc`, `ABC`, `Sym` (all 32 ASCII punctuation symbols), `Ctl` (`Ctrl` sequences, arrows, `PageUp`/`PageDown`, `F1`–`F12`), and `123` numeric modes with a fixed bottom candidate bar.
|
|
||||||
- **First-class Linux terminal (`st`)**: patched with HarfBuzz OpenType ligatures (`Fira Code` as the default system and terminal font), XIM T9 input, and live theme reloading.
|
|
||||||
- **On-device scripting, tools, and gaming**: preinstalled `curl`, `git`, GNU `coreutils`, GNU `bc`/`dc`, `mandoc`, `nano`, `less`, `ed`, `rlwrap`, `yabasic` (with full `yabasic-doc` manual and HTML documentation plus the `neoui.yab` / `neonet.yab` FFI wrappers), `tcl` (runtime for `expect`), the [Bantam](https://bantam.luxferre.top/) coding agent, `frotz` (interactive fiction), OpenGL / OpenGL ES hardware diagnostics (`glxinfo`, `eglinfo`, `glxgears`), standalone X11 keypad games (`Snake`, `Tetris`, and `Scoundrel` roguelike solitaire), a full-featured Gambatte-based Game Boy / Game Boy Color emulator (`gambatte` / `gbemu`) with readjustable keypad controls (`B=8`, `Turbo B=5`, `A=9`, `Turbo A=6`, `D-pad`, `Start=2`, `Select=3`, `Palette=*`), 10 color palettes, save states, and file manager `.gb`/`.gbc` integration, and **ReMEdy (`remedy` / `j2me`)**, a native `240x320` J2ME (MIDP 2.0 / CLDC 1.1) emulator with Adreno 304 hardware-accelerated JSR-184 M3G 3D graphics, NeoUI-themed high-level LCDUI widgets, socket/HTTP networking (`Connector`), `RecordStore` (RMS) persistence, MMAPI audio, readjustable keypad controls, and `.jar`/`.jad` file manager integration. No on-device compiler, Janet, Perl, Lua, or `sqlite3` CLI is shipped: native code is cross-compiled with `scripts/build-*.sh`, while on-device programming uses the Yabasic FFI SDK. `curl`, `bc`, `ed`, `rlwrap`, `mandoc`, `nano`, `less`, and `frotz` remain as pinned core tools.
|
|
||||||
- **NeoUI `240x320` UI SDK (`libneoui.so` + `/usr/include/neoui.h` + `neoui.yab`) and NeoNet (`neonet.yab`)**: unified C-compatible FFI and C++20 UI SDK wrapping Xlib, Xft, Pango, `libjpeg`/`libpng`, `.Xresources` / `~/.xthemes/*.xth` live theme resolution, offscreen `Pixmap` double buffering, standardized OS shell widgets (headers, tabs, softkey bars, list/toggle/slider rows, input boxes, progress bars, scrollbars, modals, popup menus, and toasts), keypad/softkey chord handling, and multi-tap text entry—usable from C, C++, or Yabasic (`~/Projects/neoui.yab`, `~/Projects/neoui_demo.yab`, and `~/Projects/bulls_cows.yab`), paired with **NeoNet (`~/Projects/neonet.yab` and `~/Projects/neonet_demo.yab`)** for `libcurl`-based HTTP/HTTPS requests with custom headers and TCP/TLS/UDP socket exchange in Yabasic. See [SDK.md](./SDK.md) for full documentation.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Supported MSM8909 and MSM8905 devices
|
|
||||||
|
|
||||||
| Device | Codename | SoC | CPU / RAM | Display and panel firmware | Device tree (`.dtb`) | Release status |
|
| Device | Codename | SoC | CPU / RAM | Display and panel firmware | Device tree (`.dtb`) | Release status |
|
||||||
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
||||||
@@ -80,133 +29,48 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Repository structure
|
## Key features
|
||||||
|
|
||||||
```text
|
### System, kernel, and display stack
|
||||||
bananarchy/
|
|
||||||
├── README.md # Project overview, repository layout, and build workflow
|
|
||||||
├── CHANGELOG.md # Public release build history
|
|
||||||
├── MANIFESTO.md # The Bananarchy Manifesto
|
|
||||||
├── MANUAL.md # Complete flashing, keypad, plugin, T9, camera, and modem manual
|
|
||||||
├── SDK.md # NeoUI 240x320 UI SDK reference for C, C++, and Yabasic
|
|
||||||
├── flash-edl.sh # Automated USB EDL flasher wrapper (sudo + ModemManager handling)
|
|
||||||
├── flash-edl.py # Multi-device Qualcomm Sahara/Firehose EDL flasher
|
|
||||||
├── rebuild-image.sh # Builds boot.img and partitioned MBR .img
|
|
||||||
├── prepare-release.sh # Validates and packs per-device release .zip archives
|
|
||||||
├── chroot-shell.sh # Rootless Docker armv7 package and rootfs customization shell
|
|
||||||
├── artwork/ # Bananarchy master icon, generated icons, wallpapers, and splashes
|
|
||||||
├── bootloader/ # lk2nd secondary bootloader, source port patch/toolchain, and per-device Sahara/Firehose programmers
|
|
||||||
├── devices/ # Device definitions, DTBs, and MIPI-DBI panel init sequences
|
|
||||||
├── patches/ # Upstream kernel, EDL, Sxmo, Xlibre, and fcitx5-t9 patch sets
|
|
||||||
├── src/
|
|
||||||
│ ├── neoui/ # NeoUI 240x320 UI SDK (libneoui.so + /usr/include/neoui.h, C FFI & C++20)
|
|
||||||
│ ├── 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, quagr, 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
|
|
||||||
│ ├── xf86-input-libinput/ # Xlibre xf86-input-libinput DDX driver
|
|
||||||
│ ├── xf86-video-fbdev/ # Xlibre xf86-video-fbdev fallback DDX driver
|
|
||||||
│ ├── fcitx5-t9/ # 6-mode fcitx5-t9 keypad input method
|
|
||||||
│ ├── games/ # Standalone keypad X11 games, Gambatte GB/GBC, and ReMEdy J2ME (snake, tetris, scoundrel, gambatte, remedy)
|
|
||||||
│ ├── bananarchy-daemons/ # Compiled ARM ELF idle and autostart C daemons (`lid`, `cover-idle`, `volume-keys`, `dsds`, monitors, session)
|
|
||||||
│ ├── 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 (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/
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Adreno 304 (`FD304`) 3D GPU acceleration, full-bandwidth `48 kHz` QDSP6/WCD HiFi audio with lossless stereo-to-mono speaker downmixing and automatic 3.5mm headphone jack detection, Dual-SIM modem control, 2MP rear V4L2 camera (automatically upright per target), torch/flash LEDs, zero-latency `input_core` keypad chatter debouncing, calibrated `157 Hz` speaker-LRA haptics on Nokia 8000 4G (isolated during loudspeaker media playback), and event-driven standby power management (`< 95 MB` idle RAM on 512 MB devices; see [BATTERY-OPTIMIZATION-ANALYSIS.md](./BATTERY-OPTIMIZATION-ANALYSIS.md)).
|
||||||
|
- **Pure X11 desktop (`Xlibre` + `sxmo-de-dwm`)**: GPU-accelerated X11 via Glamor/DRI3/GLX over `panel-mipi-dbi`, custom `240x320` vertical layouts, native desktop clock and softkey bar without Conky overhead, compiled C idle/autostart daemons, `< 2 ms` key/slider wake latency, and zero Wayland overhead.
|
||||||
|
- **Nokia 2720 Flip external cover display**: kernel-driven `240x240` outer screen while the flip is closed (clock, date, battery/network indicators, caller ID with outer side-button mute/hangup, and Quagr pager alerts) alongside hall-sensor `SW_LID` handling and per-device lid profiles (`slider`, `flip`, `none`).
|
||||||
|
- **Stock radio firmware and time sync**: `msm-firmware-loader` mounts factory `modem` and `persist` partitions directly so Wi-Fi, Bluetooth, and LTE run with factory calibration and zero redistributed proprietary blobs. `chronyd` (plus an optional GPS-only clock mode) keeps system time and live timezone changes synchronized across the status bar, lock screen, and cover display.
|
||||||
|
|
||||||
## Build and customization workflow
|
### Native keypad applications
|
||||||
|
|
||||||
### 0. Rebuild from a clean clone (autonomous)
|
Instead of spawning slow shell scripts, Bananarchy runs 27 preloaded C/C++ DWM plugins that sleep at `0%` CPU and open in `< 2 ms`:
|
||||||
|
|
||||||
A fresh `git clone` contains everything required to produce a flashable image. Docker, Python 3, and network access are the only host requirements:
|
- **Menus and quick drawer (`dmenu`, `xdrawer`)**: instant T9-filtered vertical menus, keypad-cancellable timers, dual-softkey quick drawer (volume, output routing, ringer/vibration intensity, flashlight, mic/sound mute, screen and keypad brightness), and `*` + `#` PNG screenshots to `~/Pictures/`.
|
||||||
|
- **Passcode lock screen and Duress Mode (`xlocker`, `xpasscode`)**: fullscreen numeric PIN lock screen (default **`147147`**) verified against `/etc/shadow`, configurable idle blank/lock timeout, and optional plausible-deniability **Duress Mode** (blank RAM profile, unmounted microSD, hidden terminal and encrypted messaging apps, and a randomized Luhn-valid `*#06#` IMEI until reboot).
|
||||||
|
- **Telephony, Dual-SIM, LTE data, and VoLTE/VoWiFi (`xdialer`, `xcalllog`, `xcallscreen`, `xcontacts`, `xsms`, `xmodem`)**: T9 contact dialer, interactive USSD, Dual-SIM Dual Standby (DSDS) with Primary/Secondary 4G slot swapping, one-key WAV call recording, 5-tab call log and threaded Unicode/concatenated SMS with shared anti-spam blocklist, QMI SIM phonebook import/export, and Qualcomm MCFG `.mbn` IMS profile management with `auto`-mode 4G-only **VoLTE** and **`SWu` VoWiFi** (`112`/`911` cellular-first emergency routing).
|
||||||
|
- **Wi-Fi, cellular APN, and Bluetooth (`xnetworks`, `bananarchy-bt-obex`)**: Wi-Fi client and hotspot, USB tethering, 4G/LTE mobile data (`wwan0`) and APN editor, Bluetooth 5.x/6.x `A2DP`/`HSP`/`HFP` headset audio with AVRCP controls, BLE/Classic HID keyboards, mice, and gamepads, and Android SSP pairing with bidirectional OBEX file transfer.
|
||||||
|
- **Files, media, camera, and theming (`xfiles`, `xmusic`, `xcamera`, `xthemes`, `xwallpapers`, `xringtones`)**: file manager with microSD automount (`/media/sdcard`), GUI multi-tap text editor, image viewer, `.mbn`/`.jar`/`.gb`/`.yab` launchers, `mpv` + `libopenmpt` audio and chiptune tracker player, monophonic RTTTL/eMelody/iMelody ringtone synth and previewer, V4L2 camera app, and **21 live-reloadable `.Xresources` themes**.
|
||||||
|
- **Communication, web, privacy, and navigation suite**:
|
||||||
|
- **SIP VoIP (`xsip`)**: RFC 3261 account-registered and direct P2P URI softphone with **ZRTP/SRTP** voice encryption and wideband/narrowband codecs (`Opus`, `G.722`, `AMR-WB`/`NB`, `G.711`, `GSM`, `G.726`, `DVI4`, `L16`).
|
||||||
|
- **Email (`xemail`)**: multi-account `IMAP4rev1` / `POP3` / `SMTP` client with TLS/`STARTTLS` and offline inbox cache.
|
||||||
|
- **IRC (`xirc`)**: multi-server TLS IRCv3 client with `SASL PLAIN` and background highlight alerts, preconfigured for **Abjects** (`irc.abjects.net:6697`, `#bananarchy`).
|
||||||
|
- **Tox (`xtox`)**: encrypted P2P messenger and `ToxAV` 48 kHz Opus voice calls.
|
||||||
|
- **Quagr (`xquagr`)**: opt-in `<= 30`-byte encrypted `ntfy` pager with 2720 Flip cover alerts.
|
||||||
|
- **Webarchy (`webarchy`) and Kopher (`xkopher`)**: WebKitGTK HTML5/CSS3/JS browser (keypad link-stepping and `*#` cursor modes) alongside a Gopher, Gemini, Spartan, and Nex SmallWeb client.
|
||||||
|
- **Privacy Center (`xprivacy`) and zero-log defaults**: 5-tab tunneling control (**Tor**, **GS-Warp**, **OpenVPN**, **GSocket**, **WireGuard**) for on-device and hotspot/USB-tethered traffic; system and X11 logging are **OFF** by default with optional RAM-only Extended Logging (`Config -> Extended Logging`).
|
||||||
|
- **GPS and Maps (`xgps`, `bananarchy-gps`)**: live GNSS/cell status, offline-cached OpenStreetMap viewer, Nominatim search, and OSRM turn-by-turn routing.
|
||||||
|
|
||||||
```bash
|
### Input, terminal, gaming, and developer SDK
|
||||||
./scripts/check-rebuild.sh [target] # optional offline preflight (all targets by default)
|
|
||||||
./rebuild-image.sh nokia-argon # bootstraps rootfs/, then builds images/
|
|
||||||
```
|
|
||||||
|
|
||||||
`rebuild-image.sh` performs the whole pipeline without manual preparation:
|
- **6-mode `fcitx5-t9` keypad input**: press `#` to cycle `abc`, `Abc`, `ABC`, `Sym`, `Ctl`, and `123` modes (plus automatic direct QWERTY `[KBD]` pass-through when a USB or Bluetooth keyboard is connected).
|
||||||
|
- **First-class Linux terminal (`st`)**: patched with HarfBuzz `Fira Code` OpenType ligatures, XIM T9 input, and live theme reload.
|
||||||
1. Runs `scripts/check-rebuild.sh <target>` to validate shell and Python syntax, the package list, plugin artifacts, overlay sync, the ignored local agent config, and checks scoped to the requested device (passing no argument validates all targets).
|
- **Games and emulators**: standalone `Snake`, `Tetris`, and `Scoundrel`, **Gambatte (`gbemu`)** Game Boy / Color emulator, and **ReMEdy (`remedy`)** native `240x320` J2ME (MIDP 2.0 + Adreno 304 JSR-184 M3G 3D) emulator.
|
||||||
2. Mirrors `prebuilt/` into `overlay/rootfs/` with `scripts/sync-prebuilt-overlay.sh` so the tracked overlay snapshot never drifts.
|
- **CLI utilities and NeoUI/NeoNet SDK**: preinstalled `curl`, `git`, GNU `coreutils`, `bc`/`dc`, `mandoc`, `nano`, `less`, `ed`, `rlwrap`, `tcl`/`expect`, `frotz`, the [Bantam](https://bantam.luxferre.top/) coding agent, and **Yabasic** paired with `libneoui.so` (`neoui.h` / `neoui.yab`) and `neonet.yab` (see [SDK.md](./SDK.md)).
|
||||||
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
|
|
||||||
Whenever `artwork/icon-large.png` is updated, regenerate all icons, `240x320` wallpapers, and animated boot splashes:
|
|
||||||
```bash
|
|
||||||
./scripts/generate-artwork.py
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2. Recompile core components (optional — prebuilts included)
|
|
||||||
All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be rebuilt from source at any time using rootless Docker (`alpine:3.24`):
|
|
||||||
```bash
|
|
||||||
# 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 26 DWM plugins
|
|
||||||
./scripts/build-sxmo-x11.sh
|
|
||||||
|
|
||||||
# Rebuild standalone X11 games and emulators (snake, tetris, scoundrel, gambatte, remedy)
|
|
||||||
./scripts/build-games.sh
|
|
||||||
|
|
||||||
# Rebuild multi-mode fcitx5-t9 input engine
|
|
||||||
./scripts/build-fcitx5-t9.sh
|
|
||||||
|
|
||||||
# Fetch latest master from https://code.luxferre.top/luxferre/bantam-cpp and cross-compile Bantam AI agent
|
|
||||||
./scripts/build-bantam.sh
|
|
||||||
|
|
||||||
# Rebuild Linux 6.12.1-msm8916 Adreno 304 DRM/MSM GPU module, QDSP6/Q6Voice audio modules, torch LED module, camera module, and DTBs
|
|
||||||
./scripts/build-kernel-audio.sh
|
|
||||||
|
|
||||||
# Rebuild compiled C idle/autostart daemons (`bananarchy-*`) and display lk2nd
|
|
||||||
./scripts/build-bananarchy-daemons.sh
|
|
||||||
./scripts/build-lk2nd-beatles.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3. Customize rootfs packages or configs
|
|
||||||
```bash
|
|
||||||
./chroot-shell.sh
|
|
||||||
# Inside the container shell:
|
|
||||||
# pkg-add <pkg>
|
|
||||||
# pkg-del <pkg>
|
|
||||||
# pkg-search <pattern>
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4. Build flashable device images
|
|
||||||
```bash
|
|
||||||
# Build for Nokia 8110 4G (default)
|
|
||||||
./rebuild-image.sh nokia-argon
|
|
||||||
|
|
||||||
# Or build for Nokia 2720 Flip, Nokia 800 Tough, or Nokia 8000 4G:
|
|
||||||
./rebuild-image.sh nokia-beatles --mkinitfs
|
|
||||||
./rebuild-image.sh nokia-coconut --mkinitfs
|
|
||||||
./rebuild-image.sh nokia-sparkler --mkinitfs
|
|
||||||
```
|
|
||||||
Output images are written to `images/`:
|
|
||||||
- `images/bananarchy-<device>.img`: partitioned MBR image with `pmOS_boot` + `pmOS_root` for EDL `userdata`, `fastboot flash userdata`, or a microSD card.
|
|
||||||
- `images/boot-bananarchy-<device>.img`: standalone Android `boot.img` with the appended device DTB. On `nokia-beatles`, `nokia-coconut`, and `nokia-sparkler`, the default `--method lk2nd` boots the **source-built** `images/boot-lk2nd-nokia-<device>-display.img` first (`nokia-coconut.patch` layers on top of `nokia-beatles.patch`, and `nokia-sparkler.patch` layers on top of both for MSM8909 MTP with GC9307 + ST7789VX2 SPI panel streams; see `bootloader/lk2nd/README.md`), then lk2nd loads this kernel/DTB from `userdata` via `extlinux.conf`. The default writes lk2nd to `boot` (and refreshes `lk2nd` when present) and this standalone `boot.img` to `recovery`; `--method both` is the fallback that flashes it into both slots. Hold Volume Up (`nokia-beatles`) if the KaiOS splash persists. Stock 2720, 800 Tough, and 8000 4G aboot images are locked, so the flasher sets `devinfo.is_unlocked=1` by default (see `scripts/make-unlocked-devinfo.py`); pass `--no-unlock-bootloader` only if you know the device is already unlocked. On `nokia-beatles`, eMMC `devinfo` unlock is effective (`VB_L` path, no `keymaster`), so EDL alone is sufficient; stock fastboot / `oem unlock-go` is not required. `--only-unlock` is optional. Before flashing an unverified `nokia-coconut` or `nokia-sparkler` unit, back up stock partitions first with `sudo ./flash-edl.sh <device> --only-backup --dump-diagnostics` and inspect them offline with `scripts/inspect-stock-msm8905-dump.py`. After changing a device DTB, run `scripts/repack-beatles-bootimg.py` / `scripts/sync-beatles-bootfs.py --device <device> --debug-cmdline`; rebuild lk2nd with `scripts/build-lk2nd-beatles.sh`, `scripts/build-lk2nd-coconut.sh`, or `scripts/build-lk2nd-sparkler.sh`; validate with `scripts/check-beatles-bootimg.py --device <device>`, `scripts/check-lk2nd-beatles.py` / `scripts/check-lk2nd-coconut.py` / `scripts/check-lk2nd-sparkler.py`, `scripts/test-lk2nd-beatles-port.py` / `scripts/test-lk2nd-coconut-port.py` / `scripts/test-lk2nd-sparkler-port.py` / `scripts/test-sparkler-port.py`, and `scripts/sync-beatles-bootfs.py --device <device> --check`. If a 2720/800 Tough/8000 4G only shows the KaiOS logo and then goes dark, check `lsusb`: `05c6:900e` means aboot crashed into EDL. The confirmed cause on `nokia-beatles` was `ASSERT FAILED at (platform/msm_shared/partial_goods.c:80): 0` because lk2nd's QCDT DTBs lacked `/cpus`; all three ports now add it. Flash `images/boot-lk2nd-nokia-<device>-diagnostic.img` with `--lk2nd-image --verify --dump-diagnostics` (forced fastboot + runtime `oem display-init` probe, QCDT panel fallback for chain-loading, final post-update `oem scan-dtb`, and bounded pstore console staging); see `bootloader/lk2nd/README.md`.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Flashing via USB EDL (`05c6:9008`)
|
## Flashing via USB EDL (`05c6:9008`)
|
||||||
|
|
||||||
|
1. Download your target archive (`bananarchy-<device>-a1125-ampere.zip`) from the [shared download folder](https://drive.google.com/drive/folders/1jS68CQbKJPrNM7MZgV64qi6penY5g1nM?usp=sharing) and extract its `.img` files into `images/` (for `nokia-argon`, `bootloader/lk2nd-msm8909.img` is already tracked in the repo).
|
||||||
|
2. Boot the phone into Qualcomm EDL mode and run the automated flasher (uses the vendored `vendor/edl/` client and automatically backs up EFS/IMEI/modem partitions before writing):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo ./flash-edl.sh nokia-argon # Nokia 8110 4G
|
sudo ./flash-edl.sh nokia-argon # Nokia 8110 4G
|
||||||
sudo ./flash-edl.sh nokia-beatles # Nokia 2720 Flip
|
sudo ./flash-edl.sh nokia-beatles # Nokia 2720 Flip
|
||||||
@@ -214,21 +78,61 @@ sudo ./flash-edl.sh nokia-coconut # Nokia 800 Tough
|
|||||||
sudo ./flash-edl.sh nokia-sparkler # Nokia 8000 4G
|
sudo ./flash-edl.sh nokia-sparkler # Nokia 8000 4G
|
||||||
```
|
```
|
||||||
|
|
||||||
If flashing from a downloaded `bananarchy-<device>-a1125-ampere.zip` archive rather than a local build, extract its `.img` files into `images/` first (for `nokia-argon`, `lk2nd-msm8909.img` is already tracked in `bootloader/lk2nd-msm8909.img`).
|
3. On first boot, unlock the screen with the default passcode **`147147`**, connect over USB RNDIS SSH with `ssh user@172.16.42.1` (password `147147`; fallback listener on port `2222`), and use **Menu -> Power -> Reboot to loader** to reach the `lk2nd` Fastboot / EDL menu.
|
||||||
|
|
||||||
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 manual `bkerler/edl`, Fastboot, and microSD installation methods, device button combinations, and complete keypad controls, and [bootloader/lk2nd/README.md](./bootloader/lk2nd/README.md) for source `lk2nd` details.
|
||||||
|
|
||||||
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, a later close locks the desktop and opening shows the passcode lockscreen, and the external `240x240` cover panel is driven while the flip is closed by the compiled kernel-owned backend (`gpio13` high = cover, low = internal, with active-black internal panel isolation and shared **Config -> Screen blank** timeout); the two-panel `spi-mux` DT stays opt-in and the shipping DTS keeps the verified single-panel layout. On the 8110 4G (`nokia-argon`), `/usr/share/bananarchy/lid-profile` is `slider` and all flip-specific daemons, udev rules, and mux modules stay disabled. 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.
|
## Building and customizing from source
|
||||||
|
|
||||||
|
A clean clone builds a complete flashable image autonomously inside rootless Docker:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/check-rebuild.sh [target] # offline preflight checks (all targets by default)
|
||||||
|
./rebuild-image.sh nokia-argon # bootstraps rootfs/ and writes images/bananarchy-<target>.img
|
||||||
|
./rebuild-image.sh nokia-beatles --mkinitfs
|
||||||
|
./rebuild-image.sh nokia-coconut --mkinitfs
|
||||||
|
./rebuild-image.sh nokia-sparkler --mkinitfs
|
||||||
|
./prepare-release.sh <target> # validates and packages release .zip archives
|
||||||
|
```
|
||||||
|
|
||||||
|
All cross-compiled outputs live under `prebuilt/` (synced automatically into `overlay/rootfs/` via `scripts/sync-prebuilt-overlay.sh`), and `scripts/rootfs-packages.txt` defines the `armv7` package set. Optional helper scripts let you rebuild individual layers or customize `rootfs/`:
|
||||||
|
|
||||||
|
- **Artwork, X11, plugins, and input**: `./scripts/generate-artwork.py`, `./scripts/build-xlibre.sh`, `./scripts/build-sxmo-x11.sh`, `./scripts/build-dwm-plugins.sh`, `./scripts/build-dmenu.sh`, `./scripts/build-games.sh`, `./scripts/build-fcitx5-t9.sh`, `./scripts/build-bantam.sh`
|
||||||
|
- **Kernel, modules, daemons, and lk2nd**: `./scripts/build-kernel-audio.sh`, `./scripts/build-bananarchy-daemons.sh`, `./scripts/build-lk2nd-beatles.sh`, `./scripts/build-lk2nd-coconut.sh`, `./scripts/build-lk2nd-sparkler.sh`
|
||||||
|
- **Interactive rootfs container shell**: `./chroot-shell.sh` (`pkg-add`, `pkg-del`, `pkg-search`)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Repository structure
|
||||||
|
|
||||||
|
```text
|
||||||
|
bananarchy/
|
||||||
|
├── README.md # Project overview, supported devices, and build workflow
|
||||||
|
├── CHANGELOG.md # Public release history and verified archive SHA-256 checksums
|
||||||
|
├── MANIFESTO.md # The Bananarchy Manifesto
|
||||||
|
├── MANUAL.md # Flashing, keypad, plugin, T9, camera, and modem manual
|
||||||
|
├── SDK.md # NeoUI and NeoNet SDK reference for C, C++, and Yabasic
|
||||||
|
├── flash-edl.sh / .py # Automated Qualcomm Sahara/Firehose USB EDL flasher
|
||||||
|
├── rebuild-image.sh # Builds boot.img and partitioned MBR system images
|
||||||
|
├── prepare-release.sh # Validates and packs per-device release .zip archives
|
||||||
|
├── chroot-shell.sh # Rootless Docker armv7 rootfs customization shell
|
||||||
|
├── artwork/ # Master emblem, icons, wallpapers, and boot splashes
|
||||||
|
├── bootloader/ # lk2nd secondary bootloader, source port patches, and Firehose loaders
|
||||||
|
├── devices/ # Device definitions, DTBs, and MIPI-DBI panel init sequences
|
||||||
|
├── patches/ # Kernel, EDL, Sxmo, Xlibre, and fcitx5-t9 patch sets
|
||||||
|
├── src/ # NeoUI SDK, patched dwm/dmenu/st, 27 DWM plugins, daemons, games, and kernel drivers
|
||||||
|
├── overlay/rootfs/ # System overlay applied over the target rootfs
|
||||||
|
├── prebuilt/ # Pre-compiled armv7 binaries and kernel modules (single source of truth)
|
||||||
|
├── vendor/edl/ # Vendored EDL client library (MIT)
|
||||||
|
└── scripts/ # Cross-compilation, bootstrap, verification, version, and overlay scripts
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
All Bananarchy-specific components were initially created by Luxferre and released into the public domain with no warranties.
|
All Bananarchy-specific components were initially created by Luxferre and released into the public domain with no warranties.
|
||||||
|
|
||||||
Alpine Linux, postmarketOS/Nura, and other third-party components are guided by their respective licensing terms.
|
Alpine Linux, postmarketOS/Nura, and other third-party components are guided by their respective licensing terms.
|
||||||
|
|
||||||
## Verified release images
|
|
||||||
|
|
||||||
The `a1125` / `ampere` release ships hardware-verified archives for all four targets: **Nokia 8110 4G (`nokia-argon`)** (`bananarchy-nokia-argon.img` + `lk2nd-msm8909.img`), **Nokia 2720 Flip (`nokia-beatles`)** (`bananarchy-nokia-beatles.img` + `boot-lk2nd-nokia-beatles-display.img` + `boot-bananarchy-nokia-beatles.img`), **Nokia 800 Tough (`nokia-coconut`)** (`bananarchy-nokia-coconut.img` + `boot-lk2nd-nokia-coconut-display.img` + `boot-bananarchy-nokia-coconut.img`), and **Nokia 8000 4G (`nokia-sparkler`)** (`bananarchy-nokia-sparkler.img` + `boot-lk2nd-nokia-sparkler-display.img` + `boot-bananarchy-nokia-sparkler.img`). These image files are local build outputs, not tracked in git; `scripts/check-rebuild.sh` pins their hashes when present, and `./prepare-release.sh <target>` validates and packages each archive (rebuilding any missing artifacts from source). The default hostname is the target codename, `/usr/share/bananarchy/lid-profile` isolates `slider` (`nokia-argon`), `flip` (`nokia-beatles`), and `none` (`nokia-coconut` / `nokia-sparkler`), 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 when unlocked, and `BA_REBUILD=1` forces an explicit rebuild.
|
|
||||||
Reference in new issue
Block a user