uzbek-plus/b9/b9c/rootfs/etc/init.d/aurora-display
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

13 lines
649 B
Bash
Executable file

#!/bin/sh
# Aurora display service (B9C). Started once by /init; no OpenRC.
# /etc/init.d/aurora-display start | status — kernel cmdline 'aurora.display=off' disables autostart.
C=/usr/sbin/aurora-display; D=/run/aurora-display; L=$D/service.log
mkdir -p $D
case "$1" in
start)
grep -qw aurora.display=off /proc/cmdline && { echo "aurora-display: disabled by cmdline"; exit 0; }
( $C start >> $L 2>&1; echo "=== service start rc=$? $(cut -d' ' -f1 /proc/uptime)" >> $L ) &
echo "aurora-display: starting (pid $!, log $D/display.log)";;
status) $C status; tail -3 $D/display.log 2>/dev/null;;
*) echo "usage: $0 start|status"; exit 2;;
esac