uzbek-plus/b9/b9c/out/init.diff
q 4a7224c41f B9: built-in display (ST7735S SPI) in Linux and persistent B9C cache
- B9A: read-only audit of stock LK/DT: the panel is an ST7735S 128x128 on SPI (BLSP1 QUP4,
  16 MHz, mode 3, D/C GPIO116, RESET GPIO118), backlight = PM8916 MPP4 current sink 40 mA.
- B9B: upstream panel-mipi-dbi with the stock init sequence as firmware; MPP4 sink via pinctrl
  + gpio-backlight; first light with correct colours/orientation/offsets.
- B9C: fbcon (6x8, 21x16) on tty1 + getty, UART console kept, aurora-display service;
  cache B9C b9ce13c9 written and verified, cold boots with LTE + Wi-Fi + display.
- B9L (RAM only): lk2nd second stage with an msm8916 SPI panel port shows a picture before Linux.
- Sanitizer: whitelist for b8/ and b9/.
2026-10-03 01:45:02 +03:00

28 lines
1.7 KiB
Diff

--- ../../b8/b8f/rootfs/init 2026-10-03 01:03:40.225791442 +0600
+++ rootfs/init 2026-10-03 03:07:15.657377190 +0600
@@ -1,6 +1,7 @@
#!/bin/busybox sh
# Aurora RAM boot MM1 — QMI1 + ModemManager (qcom-soc) + D-Bus + polkit + eudev.
# R2/T4: B6P init + telnetd on NCM. B8F: + Wi-Fi service autostart (aurora-wifi).
+# B9C: + hostname aurora, display service (fbcon/backlight on the ST7735S) and a getty on tty1.
# B6P: after eMMC RO + /firmware RO + USB NCM, autostarts /etc/init.d/aurora-modem (B6N-proven lifecycle).
# NEVER mounts, fsck's, formats, trims or writes any mmcblk* device.
# No block devices, no firmware, no radios. Never exits (failures leave the UART shell).
@@ -10,6 +11,7 @@
mount -t sysfs sysfs /sys
mount -t devtmpfs devtmpfs /dev 2>/dev/null
mount -t configfs configfs /sys/kernel/config
+hostname aurora # B9C: getty prompt 'aurora login:'
log() { echo "[init] $*"; echo "[init] $*" > /dev/kmsg 2>/dev/null; }
echo
echo "=== AURORA RAM BOOT MM1 + B6P modem service ==="
@@ -124,6 +126,9 @@
if telnetd -l /bin/sh -b 172.16.42.1 -p 23; then log "T4: telnetd started on 172.16.42.1:23"; else log "T4: telnetd start FAILED"; fi
else log "T4: no 172.16.42.1 - telnetd NOT started"; fi
+# B9C: display (no disk/radio access): fbcon on tty1 + backlight, and a display-only getty on tty1 (UART shell below unchanged).
+/etc/init.d/aurora-display start
+( while true; do getty 0 tty1 linux; sleep 2; done ) > /dev/null 2>&1 < /dev/null &
if [ "$EMMC_RO_OK" = 1 ]; then emmc_report; else log "EMMC: RO not confirmed or device missing - NO further disk access"; fi
echo "B1_OK=${B1_OK:-0}"
# B6P: modem autostart only when every eMMC device is RO and the modem FAT is mounted RO (the controller re-checks both).