uzbek-plus/b10/b10b3/cache/emu/run-emu-b10b3.sh
q 58dcb3d121 B10: battery charging — PM8916 LBC supervisor v4 (CHARGE/HOLD, FAULT safe clamp to 4.00 V) and persistent B10B-5 cache
- LBC supervisor v1..v4 (linux/patches/b10b3-lbc-supervisor-v3.patch + b10/b10b3/lbc-v3-to-v4-fault-clamp.diff):
  CHARGING 4.20 V/450 mA -> HOLD 4.05 V after 60 min CV -> battery -> new cycle on USB insert; FAULT = VDD_MAX 4.00 V clamp
- RAM tests C/B/D/D2/D3/D4 (safety timer only ends fast charge), B10B-4 actuator audit (VDD_MAX works, USB_SUSP does not),
  B10B-5 FAULT clamp regression, production run, warm reboot via PON reboot reason
- cache = B10B-5 c3732515 (HW EDL write, readback + full partition verify), class-A persistent validation
- test-only hooks/images are not part of the production kernel; images with the AP PSK are not published
2026-10-04 19:00:27 +03:00

13 lines
1.4 KiB
Bash

#!/bin/bash
# lk2nd-23.1 extlinux emulator (b5b/emu) on: S8 (B9C cache = current flash, regression vs b9/b9c/cache/emu S7), S9 B10B-3 candidate, fault variants. Offline, 480s.
cd ~/doc/modem/jz08-aurora/b10/b10b3/cache/emu; E=../../../../b5b/emu; GPT=../../../../logs/b5a/A3/gpt-primary-34.bin; C=/home/q/doc/modem/jz08-aurora/b10/b10b3/cache/cache-extlinux-b10b3.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 S8-b9c-regression /home/q/doc/modem/jz08-aurora/b9/b9c/cache/cache-extlinux-b9c.img 24686600
cmp <(grep HARNESS S8-b9c-regression.out) <(grep HARNESS ../../../../b9/b9c/cache/emu/S7-b9c-candidate.out) && echo " S8 HARNESS lines == b9/b9c/cache/emu/S7-b9c-candidate.out"
run S9-b10b3-candidate $C 24754184; # kernel_len = b10b3 Image (5afd371e, 24754184 B)
grep HARNESS S9-b10b3-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-b9c.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