uzbek-plus/b9/b9c/cache/emu/run-emu-b9c.sh
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
1.3 KiB
Bash
Executable file

#!/bin/bash
# lk2nd-23.1 extlinux emulator (b5b/emu) on: S6 (B8F cache = current flash, regression vs b8/b8f/cache/emu), S7 B9C candidate, fault variants. Offline, 480s.
cd ~/doc/modem/jz08-aurora/b9/b9c/cache/emu; E=../../../../b5b/emu; GPT=../../../../logs/b5a/A3/gpt-primary-34.bin; C=/home/q/doc/modem/jz08-aurora/b9/b9c/cache/cache-extlinux-b9c.img
run() { python3 $E/mkmap.py $2 > map-$1.txt; $E/lk2nd-scan-emu map-$1.txt $GPT $3 > $1.out 2>&1; echo "== $1 rc=$? :: $(grep -E "Trying to boot|Reverting|boot_linux reached|ramdisk sha256|Could not" $1.out | tr '\n' ' ' | cut -c1-260)"; }
run S6-b8f-regression /home/q/doc/modem/jz08-aurora/b8/b8f/cache/cache-extlinux-b8f.img 23955464
cmp <(grep HARNESS S6-b8f-regression.out) <(grep HARNESS ../../../../b8/b8f/cache/emu/S6-b8f-candidate.out) && echo " S6 HARNESS lines == b8/b8f/cache/emu/S6-b8f-candidate.out"
run S7-b9c-candidate $C 24686600; # kernel_len = B9C Image (3afc6c77, 24686600 B)
grep HARNESS S7-b9c-candidate.out
D=$(mktemp -d); v(){ cp $C $D/$1.img; chmod u+w $D/$1.img; }
v F3-no-initrd; /sbin/debugfs -w -R "rm /initramfs-b9c.cpio.gz" $D/F3-no-initrd.img >/dev/null 2>&1
v F1-no-conf; /sbin/debugfs -w -R "rm /extlinux/extlinux.conf" $D/F1-no-conf.img >/dev/null 2>&1
head -c 134217728 /dev/zero > $D/F10-zeroed-cache.img
for f in $D/F*.img; do run $(basename $f .img) $f; done; rm -rf $D