Port Nokia 800 Tough (nokia-coconut), fix microSD detection, and stage upcoming a1120 (cocojamboo) build

- Migrate nokia-tough to canonical nokia-coconut while keeping CLI aliases, add layered bootloader/lk2nd/nokia-coconut.patch, bootfs/bootimg validators, and offline scripts/inspect-stock-msm8905-dump.py

- Complete nokia-coconut Stage 2 hardware bring-up: wire 6-column 22-key keypad (gpio0, gpio3, gpio7, gpio99, gpio6, gpio1), gpio98 KEY_POWER, and pon@800:resin KEY_DOWN (0x6c); split leds-msm8905-torch into GPIO_13 white:torch (dedicated top-edge flashlight) and GPIO_32 camera:flash (rear camera flash for camera.so and bananarchy-photo)

- Restore sdhci@7864000 non-removable across all six DTS/DTB targets, remove unwired gpio38 cd-gpios/sdc2-cd-* states, and harden sxmo_sdcard.sh under flock

- Register upcoming build a1120 (cocojamboo) in scripts/version.sh, scripts/check-rebuild.sh, CHANGELOG.md, AGENTS.md, README.md, and MANUAL.md with verified hashes across nokia-argon, nokia-beatles, and nokia-coconut
This commit is contained in:
Luxferre committed 2026-11-15 18:00:10 +02:00
1 parent fc5c4282f5
commit ab53423e33
60 files changed
+2669 -453

No files matched your search

+10 -9
View File
@@ -5,7 +5,7 @@
This manual covers flashing, operating, and customizing **Bananarchy Linux** (`240x320` native edition) on **Qualcomm MSM8905 and MSM8909** Nokia feature phones. Current release: `a1114` (codename `carbonara`); see the [changelog](./CHANGELOG.md) for release notes.
- **Nokia 8110 4G (`nokia-argon`)** — verified public release: https://bananarchy.top/builds/bananarchy-nokia-argon-a1114-carbonara.zip
- **Nokia 2720 Flip (`nokia-beatles`)** — verified public release: https://bananarchy.top/builds/bananarchy-nokia-beatles-a1114-carbonara.zip
- **Nokia 800 Tough (`nokia-tough` / `nokia-coconut`)** — source build via `./rebuild-image.sh nokia-tough --mkinitfs`
- **Nokia 800 Tough (`nokia-coconut`)** — hardware-verified for upcoming build `a1120` (`cocojamboo`); source build via `./rebuild-image.sh nokia-coconut --mkinitfs`
- **Nokia 8000 4G (`nokia-sparkler`)** and **Nokia 6300 4G (`nokia-leo`)** — source build via `./rebuild-image.sh nokia-sparkler --mkinitfs` / `nokia-leo`
---
@@ -14,11 +14,11 @@ This manual covers flashing, operating, and customizing **Bananarchy Linux** (`2
### 1.1 System images (`images/`)
- `images/bananarchy-nokia-argon.img` and `images/bananarchy-nokia-beatles.img`: partitioned MBR images (`256 MiB` `ext2` `pmOS_boot` + `ext4` `pmOS_root`) ready for EDL flashing to `userdata`, `fastboot flash userdata`, or raw `dd` to a microSD card.
- `images/boot-lk2nd-nokia-beatles-display.img` and `images/boot-bananarchy-nokia-beatles.img`: the 2720 Flip display-enabled `lk2nd` secondary bootloader (`boot`) and standalone mainline Android `boot.img` (`recovery`).
- If you downloaded a public release `.zip` archive (`bananarchy-nokia-argon-a1114-carbonara.zip` or `bananarchy-nokia-beatles-a1114-carbonara.zip`), extract its `.img` files into `images/` before running `./flash-edl.sh <device>`. Additional device images (`bananarchy-nokia-tough.img`, `bananarchy-nokia-sparkler.img`, `bananarchy-nokia-leo.img`) can be built from source at any time via `./rebuild-image.sh <device> --mkinitfs`.
- `images/boot-lk2nd-nokia-beatles-display.img` and `images/boot-bananarchy-nokia-beatles.img`: the 2720 Flip display-enabled `lk2nd` secondary bootloader (`boot`) and standalone mainline Android `boot.img` (`recovery`). Equivalent `nokia-coconut` builds are written to `images/boot-lk2nd-nokia-coconut-display.img` and `images/boot-bananarchy-nokia-coconut.img`.
- If you downloaded a public release `.zip` archive (`bananarchy-nokia-argon-a1114-carbonara.zip` or `bananarchy-nokia-beatles-a1114-carbonara.zip`), extract its `.img` files into `images/` before running `./flash-edl.sh <device>`. Additional device images (`bananarchy-nokia-coconut.img`, `bananarchy-nokia-sparkler.img`, `bananarchy-nokia-leo.img`) can be built from source at any time via `./rebuild-image.sh <device> --mkinitfs`.
### 1.2 Bootloader and EDL programmer (`bootloader/`)
- `bootloader/lk2nd-msm8909.img`: secondary bootloader (`lk2nd`) providing Fastboot and `extlinux` boot discovery for MSM8905 and MSM8909 devices. `images/boot-lk2nd-nokia-beatles-display.img` is the source-built 2720 Flip port (see `bootloader/lk2nd/README.md`).
- `bootloader/lk2nd-msm8909.img`: secondary bootloader (`lk2nd`) providing Fastboot and `extlinux` boot discovery for MSM8905 and MSM8909 devices. `images/boot-lk2nd-nokia-beatles-display.img` and `images/boot-lk2nd-nokia-coconut-display.img` are the source-built 2720 Flip and 800 Tough ports (see `bootloader/lk2nd/README.md`).
- `bootloader/loaders/`: signed Qualcomm Sahara/Firehose programmers (`05c6:9008`), one per target. The flasher picks the right one from `--device` / the positional target; run `./flash-edl.sh --list-loaders` to see each file's embedded attestation identity and mapping. Pass `--variant us` for a 2720 Flip US variant or `--loader PATH` to override the programmer entirely.
### 1.3 Core architecture highlights
@@ -194,7 +194,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
- **Game Boy / Game Boy Color ROM launching**: pressing `Return` on any `.gb` or `.gbc` file (or selecting **Play in Game Boy Emulator** from the **Left softkey (`Actions`)** menu) opens it directly in the **Gambatte (`gambatte`)** emulator.
- **Image preview and wallpaper installation**: pressing `Return` on any image file (`.jpg`, `.png`, `.bmp`, `.gif`, `.webp`, `.ppm`, `.tif`, `.ico`, `.svg`) opens the built-in image viewer (`*` toggles full-screen preview; **Left softkey (`Set Wall`)** installs the image into `~/Pictures/Wallpapers/`, applies it via `feh`, and refreshes the desktop overlay). You can also select **Preview Image** or **Set as Wallpaper** directly from the **Left softkey (`Actions`)** menu.
- **Monophonic ringtone viewer (`.nrt`, `.rtttl`, `.rtx`, `.emy`, `.imy`), audio playback, and ringtone/notification installation**: pressing `Return` on any Nokia RTTTL (`.nrt`, `.rtttl`, `.rtx`), Ericsson eMelody (`.emy`), or IrDA iMelody (`.imy`) file opens the built-in **Ringtone Viewer** (`RingtoneView`), displaying the melody title, format tag, BPM, note count, duration, graphical piano-roll pitch contour, and scrollable note sequence (`Up`/`Down`), with instant playback preview (`*` or `Center OK`), `Left`/`Right` to step through ringtones in the current folder, **Left softkey (`Set Ring`)** to set as the active call ringtone, **`#`** to set as the active notification/SMS sound, and `1` to edit the melody text. Pressing `Return` on standard audio or tracker module files opens **Music (`xmusic`)**. From the **Left softkey (`Actions`)** menu on any monophonic melody, audio, or tracker file, select **Preview Ringtone**, **Set as Ringtone**, **Set as Notif / SMS Sound**, **Open in Ringtones App**, or **Play in Music Player**.
- **MicroSD card (`/media/sdcard`) integration**: when a microSD card (`/dev/mmcblk1`) is inserted, `udev` and `/usr/bin/sxmo_sdcard.sh` automatically mount it at `/media/sdcard` (keeping `7864900.sdhci` in `runtime_status = suspended` when idle and unbinding only during `--force-unmount` duress mode). From the **Left softkey (`Actions`)** menu inside `xfiles` (or **System menu -> SD Card**), select **Open SD Card (/media/sdcard)** to jump straight to the card (mounting it on demand if needed) or **Mount / Unmount SD Card** to safely flush and unmount the card before removal.
- **MicroSD card (`/media/sdcard`) integration**: the external microSD slot (`sdhci@7864000`) uses `non-removable` boot-time detection with zero card-detect polling (when empty or idle, `7864900.sdhci` enters `runtime_status = suspended` and drops `l11`/`l12` to `0 mA`). If a microSD card (`/dev/mmcblk1`) is present at boot, `udev` and `/usr/bin/sxmo_sdcard.sh` automatically mount it at `/media/sdcard`; if a card is inserted or swapped while powered on (such as on side-tray phones), run `sxmo_sdcard.sh rescan` or pick **Rescan SD Card Slot** from **System menu -> SD Card**. From the **Left softkey (`Actions`)** menu inside `xfiles` (or **System menu -> SD Card**), select **Open SD Card (/media/sdcard)** to jump straight to the card (mounting it on demand if needed) or **Mount / Unmount SD Card** (`sxmo_sdcard.sh unmount`) to safely flush buffers and unbind `7864900.sdhci` before card removal.
- **Bluetooth file transfer (`Send via Bluetooth`)**: select **Send via Bluetooth** from the **Left softkey (`Actions`)** menu on any file to choose a paired or nearby Bluetooth device (`*` rescans) and transmit the file over Bluetooth OBEX Object Push (`/usr/bin/bananarchy-bt-obex`).
- **File management actions**: the **Left softkey (`Actions`)** menu also provides **Edit in Text Editor**, **View Text**, **Edit in nano**, **New Folder**, **New File**, **Rename**, **Copy**, **Cut / Move**, **Paste Here**, **Properties**, **Open Terminal Here**, and **Delete**.
@@ -540,9 +540,9 @@ Both the rear loudspeaker (`Speaker`, with boosted `RX3 Digital Volume` for loud
pw-record --rate=48000 --channels=1 --format=s16 ~/recording.wav
```
### 5.3 Flashlight (`white:torch`), keypad backlight (`white:kbd_backlight`), and vibration (`sxmo_vibrate`)
### 5.3 Flashlight (`white:torch`), camera flash (`camera:flash`), keypad backlight (`white:kbd_backlight`), and vibration (`sxmo_vibrate`)
- **Turn rear flashlight on or off**:
- **Turn flashlight on or off** (`nokia-argon`/`nokia-beatles` rear flash LED; dedicated top-edge LED on `nokia-coconut` while `camera:flash` drives its rear camera flash LED):
```bash
brightnessctl -d white:torch set 1
brightnessctl -d white:torch set 0
@@ -603,11 +603,12 @@ The **Xlibre** display server (`modesetting_drv.so`) uses **Glamor + DRI3 + GLX
### 5.6 MicroSD card management (`sxmo_sdcard.sh`) and GNSS / GPS CLI (`bananarchy-gps`)
- **Check microSD card (`/dev/mmcblk1`) status, mount, or unmount from the CLI**:
- **Check microSD card (`/dev/mmcblk1`) status, mount, unmount, or rescan from the CLI**:
```bash
sxmo_sdcard.sh status
sxmo_sdcard.sh mount # mounts at /media/sdcard
sxmo_sdcard.sh unmount # flushes buffers and unmounts /media/sdcard
sxmo_sdcard.sh unmount # flushes buffers, unmounts /media/sdcard, and unbinds 7864900.sdhci
sxmo_sdcard.sh rescan # forces a one-shot 7864900.sdhci re-probe and mounts /media/sdcard
```
- **Test GNSS / GPS reception and inspect NMEA / 3GPP location from the CLI (`bananarchy-gps`)**:
```bash