11 lines
1.2 KiB
Bash
11 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# lk2nd-23.1 extlinux emulator (b5b/emu): S15 current flash (B15 212e0ca9) regression + S18 B18 candidate + fault variants. Offline, 480s.
|
|
cd ~/doc/modem/jz08-aurora/b18/cache/emu; E=../../../b5b/emu; GPT=../../../logs/b5a/A3/gpt-primary-34.bin; C=/home/q/doc/modem/jz08-aurora/b18/cache/cache-extlinux-b18.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 S15-b15-current /home/q/doc/modem/jz08-aurora/b15/cache/cache-extlinux-b15.img 25290760
|
|
cmp <(grep HARNESS S15-b15-current.out) <(grep HARNESS ../../../b15/cache/emu/S15-b15-candidate.out) && echo " S15 HARNESS lines == b15 emu S15"
|
|
run S18-b18-candidate $C 26032136; grep HARNESS S18-b18-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-b12q.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
|
|
for f in $D/F*.img; do run $(basename $f .img) $f; done; rm -rf $D
|