uzbek-plus/b9/b9c/cache/B9C-rollback.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

12 lines
903 B
Bash
Executable file

#!/bin/bash
# B9C rollback — restore the B8F cache (857c9c30, operational since 2026-10-03: B7C + Wi-Fi AP). Needs 9008 via HW EDL (D+->GND). boot/aboot untouched.
# Deeper rollback: b8/b8f/cache/B8F-rollback.sh (B7C 14fe453a), b7/b7c/cache/B7C-rollback.sh (T4 9d3bc890).
cd ~/doc/modem/jz08-aurora || exit 1
L=firehose/007050e100000000_394a2e47cf830150_fhprg_peek.bin ; O=logs/b9/b9c/rollback ; mkdir -p $O
B=b8/b8f/cache/cache-extlinux-b8f.img
[ "$(sha256sum $B | cut -d' ' -f1)" = 857c9c300055804cab673027bc8cddc010ad04bfec5d75276d8229b84846c4b2 ] || { echo "STOP: rollback image hash"; exit 1; }
lsusb | grep -q 05c6:9008 || { echo "STOP: no 9008"; exit 1; }
edl --loader=$L printgpt > $O/00-printgpt.log 2>&1
edl --loader=$L w cache $B > $O/cache-w.log 2>&1
edl --loader=$L r cache $O/cache-rb.bin > /dev/null 2>&1 ; cmp $B $O/cache-rb.bin && echo CACHE_RESTORED_B8F
sha256sum $B $O/cache-rb.bin