uzbek-plus/b8/b8f/cache/B8F-rollback.sh
q dddc11e57b B8: Wi-Fi (WCNSS/Pronto + wcn36xx + hostapd test AP) and persistent B8F cache
B8A audit, B8B Pronto remoteproc (fixed wcnss_mem 0x8b600000), B8C stock NV
(fixes Pronto startup watchdog), B8D cfg80211/mac80211/wcn36xx -> phy0/wlan0,
B8E wlan0 up + WPA2/CCMP test AP, B8F eMMC cache 857c9c30 with aurora-wifi
autostart: 3/3 class-A cold boots, AP up 76-94 s after power-on, LTE unaffected.
PSK, NV and PSK-bearing images are not published.
2026-10-02 22:55:20 +03:00

12 lines
900 B
Bash
Executable file

#!/bin/bash
# B8F rollback — restore the B7C cache (14fe453a, operational since 2026-10-02: T4 + time bootstrap). Needs 9008 via HW EDL (D+->GND). boot/aboot untouched.
# Deeper rollback: b7/b7c/cache/B7C-rollback.sh (T4 9d3bc890), r2/t4/T4-rollback.sh (B6P 9fea693a).
cd ~/doc/modem/jz08-aurora || exit 1
L=firehose/007050e100000000_394a2e47cf830150_fhprg_peek.bin ; O=logs/b8/b8f/rollback ; mkdir -p $O
B=b7/b7c/cache/cache-extlinux-b7c.img
[ "$(sha256sum $B | cut -d' ' -f1)" = 14fe453af6e94d414044c1c6da9eebe5c325fad842ddc5e17d09ba6b421a74cb ] || { 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_B7C
sha256sum $B $O/cache-rb.bin