uzbek-plus/b8/b8f/cache/emu/run-emu-b8f.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

13 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
# lk2nd-23.1 extlinux emulator (b5b/emu) on: S5 (B7C cache = current flash, regression vs b7/b7c/cache/emu), S6 B8F candidate, fault variants. Offline, 480s.
cd ~/doc/modem/jz08-aurora/b8/b8f/cache/emu; E=../../../../b5b/emu; GPT=../../../../logs/b5a/A3/gpt-primary-34.bin; C=/home/q/doc/modem/jz08-aurora/b8/b8f/cache/cache-extlinux-b8f.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 S5-b7c-regression /home/q/doc/modem/jz08-aurora/b7/b7c/cache/cache-extlinux-b7c.img
cmp <(grep HARNESS S5-b7c-regression.out) <(grep HARNESS ../../../../b7/b7c/cache/emu/S5-b7c-candidate.out) && echo " S5 HARNESS lines == b7/b7c/cache/emu/S5-b7c-candidate.out"
run S6-b8f-candidate $C 23955464; # kernel_len = B8D Image (be30b1fa); harness default is the golden 23015432
grep HARNESS S6-b8f-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-b8f.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