Bring up nokia-sparkler SMP/cpufreq/lk2nd/cam/haptics, fix timer and EDL USB timeout

- Add 0013 early-SCM 4-core SMP + cpufreq kernel patch and clock-frequency DT nodes
- Complete nokia-sparkler lk2nd port, boot/X11 session startup, 180-deg cached camera, and 157 Hz haptic audio
- Replace root-only timer backend with permissionless sxmo_timer.sh and keypad/hook cancellation
- Fix EDL Firehose rawmode ACK, USB active-config preservation, *+# hint, and 30 s default USB timeout
- Sync a1120 (cocojamboo) prebuilts, docs, tests, and verified checksums in check-rebuild.sh
This commit is contained in:
Luxferre committed 2026-11-16 11:45:38 +02:00
1 parent ab53423e33
commit d7992904bf
56 files changed
+31850 -28281

No files matched your search

+13 -11
View File
@@ -6,7 +6,8 @@ This manual covers flashing, operating, and customizing **Bananarchy Linux** (`2
- **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-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`
- **Nokia 8000 4G (`nokia-sparkler`)** — hardware-verified for upcoming build `a1120` (`cocojamboo`); source build via `./rebuild-image.sh nokia-sparkler --mkinitfs`
- **Nokia 6300 4G (`nokia-leo`)** — sibling source build via `./rebuild-image.sh nokia-leo`
---
@@ -14,11 +15,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`). Equivalent `nokia-coconut` builds are written to `images/boot-lk2nd-nokia-coconut-display.img` and `images/boot-bananarchy-nokia-coconut.img`.
- `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 builds for `nokia-coconut` and `nokia-sparkler` are written to `images/boot-lk2nd-nokia-<device>-display.img` and `images/boot-bananarchy-nokia-<device>.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` and `images/boot-lk2nd-nokia-coconut-display.img` are the source-built 2720 Flip and 800 Tough ports (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`, `images/boot-lk2nd-nokia-coconut-display.img`, and `images/boot-lk2nd-nokia-sparkler-display.img` are the source-built 2720 Flip, 800 Tough, and 8000 4G 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
@@ -48,7 +49,7 @@ Run the automated EDL flasher from the repository root on your host machine:
sudo ./flash-edl.sh nokia-argon # Nokia 8110 4G
sudo ./flash-edl.sh nokia-beatles # Nokia 2720 Flip
```
*(To flash another target device image, pass its codename, e.g. `sudo ./flash-edl.sh nokia-sparkler`.)* The programmer is selected automatically: `8110.mbn` (8110 4G), `2720.mbn` (2720 Flip), `800t.mbn` (800 Tough), and `8k.mbn` for **both** 8000 4G and 6300 4G. The 2720 Flip US variant (`Nokia_bts_us`) uses `2720v.mbn`: pass `--variant us` (or `--loader ./bootloader/loaders/2720v.mbn`). Verify with `./flash-edl.sh --list-loaders`.
*(To flash another target device image, pass its codename, e.g. `sudo ./flash-edl.sh nokia-sparkler`. Pass `--usb-timeout SECS` to adjust per-transfer USB bulk timeout from the 30 s default if needed.)* The programmer is selected automatically: `8110.mbn` (8110 4G), `2720.mbn` (2720 Flip), `800t.mbn` (800 Tough), and `8k.mbn` for **both** 8000 4G and 6300 4G. The 2720 Flip US variant (`Nokia_bts_us`) uses `2720v.mbn`: pass `--variant us` (or `--loader ./bootloader/loaders/2720v.mbn`). Verify with `./flash-edl.sh --list-loaders`.
The script performs the following steps automatically:
1. Temporarily pauses host `ModemManager` so it does not interfere with `05c6:9008`.
@@ -56,7 +57,7 @@ The script performs the following steps automatically:
`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 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.
- **Button combo**: power off the phone, hold **D-Pad up + D-Pad down** (or **`*` + `#`** on `nokia-sparkler` and `nokia-leo`), 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.
- If the phone is stuck in Sahara with no fresh HELLO packet (e.g. a host
@@ -71,7 +72,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 loader** 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** (or **`#`** on `nokia-sparkler` and `nokia-leo`) while powering on the phone.
2. Flash the system image for your device (`nokia-argon` or `nokia-beatles`) to `userdata`:
```bash
fastboot flash userdata ./images/bananarchy-<device>.img
@@ -542,7 +543,7 @@ Both the rear loudspeaker (`Speaker`, with boosted `RX3 Digital Volume` for loud
### 5.3 Flashlight (`white:torch`), camera flash (`camera:flash`), keypad backlight (`white:kbd_backlight`), and vibration (`sxmo_vibrate`)
- **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):
- **Turn flashlight on or off** (`nokia-argon`/`nokia-beatles` rear flash LED; dedicated top-edge `GPIO_13` LED on `nokia-coconut` while `camera:flash` drives its rear `GPIO_32` camera flash LED; digital `GPIO_32` `flash-en` + `GPIO_31` `flash-now` BC847BS `white:torch` on `nokia-sparkler`):
```bash
brightnessctl -d white:torch set 1
brightnessctl -d white:torch set 0
@@ -551,12 +552,13 @@ Both the rear loudspeaker (`Speaker`, with boosted `RX3 Digital Volume` for loud
```bash
brightnessctl -d white:kbd_backlight set 255
```
- **Trigger PM8909 vibration motor (`duration_ms [strength_1_to_3]`)**:
- **Trigger vibration (`duration_ms [strength_1_to_3]`)**: `sxmo_vibrate` drives the PM8909 haptic ERM actuator on `nokia-argon`, `nokia-beatles`, and `nokia-coconut`, and drives the 157 Hz multifunction speaker LRA via PipeWire/ALSA (`vibrate_haptic_audio`) on `nokia-sparkler` and `nokia-leo`:
```bash
sxmo_vibrate 350 1 # light (1600 mV, 38% duty cycle)
sxmo_vibrate 350 2 # medium (2100 mV, 67% duty cycle)
sxmo_vibrate 350 3 # strong (3100 mV, 100% continuous)
sxmo_vibrate 350 1 # light
sxmo_vibrate 350 2 # medium
sxmo_vibrate 350 3 # strong
```
- **Timer countdown and keypad cancellation (`sxmo_timer.sh`)**: open **Applications -> Timer** to start a timer or stopwatch (`Stopwatch`, `1h`, `30m`..`30s`). While counting down inside the terminal, press **Center `OK` (`Enter`)**, **`0`**, **`q`**, or **`BackSpace`** to cancel cleanly; once the timer expires (bounded 30 s alert with sound, vibration, and notification), press any keypad key inside the terminal or open **System menu -> Stop Timer** (or **Applications -> Timer -> Stop Timer**) to silence and close it immediately without rebooting.
### 5.4 Cellular modem, Dual-SIM, and QMI UIM helper