11 lines
1.2 KiB
Bash
11 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# lk2nd-23.1 extlinux emulator (b5b/emu): S18 current flash (B18 ac82811a) regression + S23 B23 candidate + fault variants. Offline, 480s.
|
|
cd ~/doc/modem/jz08-aurora/b23/cache/emu; E=../../../b5b/emu; GPT=../../../logs/b5a/A3/gpt-primary-34.bin; C=/home/q/doc/modem/jz08-aurora/b23/cache/cache-extlinux-b23.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 S18-b18-current /home/q/doc/modem/jz08-aurora/b18/cache/cache-extlinux-b18.img 26032136
|
|
cmp <(grep HARNESS S18-b18-current.out) <(grep HARNESS ../../../b18/cache/emu/S18-b18-candidate.out) && echo " S18 HARNESS lines == b18 emu S18"
|
|
run S23-b23-candidate $C 26032136; grep HARNESS S23-b23-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
|