uzbek-plus/b10/b10b3/b10b3b-mon-start.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

14 lines
1.4 KiB
Bash
Executable file

#!/bin/sh
# 480s side, Test B: wait for the NEW boot's NCM, then at once push b10b3-mon.sh to the board and start it (10 s, EVDD=02/00, VMAX 4.15 V),
# then start the 30-s pull into logs/b10/b10b3/<K>-mon.txt. Board side reads only (writes /tmp only). usage: b10b3b-mon-start.sh K
K=$1; [ -n "$K" ] || { echo "usage: $0 K"; exit 2; }
cd ~/doc/modem/jz08-aurora; A=logs/b10/b10b3/$K-actions.txt; act() { echo "$(date -u +%H:%M:%S.%3N) $*" | tee -a $A; }
rm -f logs/b10/b10b3/pull.stop
act "mon-start $K: waiting for the board to go away (warm reboot)"; until ! ping -c1 -W1 172.16.42.1 >/dev/null 2>&1; do sleep 0.5; done; act "board gone"
until ping -c1 -W1 172.16.42.1 >/dev/null 2>&1; do sleep 0.5; done; act "NCM up"
i=0; until { sleep 1; printf 'nc -l -p 9933 > /tmp/b10b3-mon.sh &\r\n'; sleep 1; } | ncat -w 4 172.16.42.1 23 >/dev/null 2>&1; do i=$((i+1)); [ $i -ge 60 ] && { act "ABORT: no telnet"; exit 1; }; sleep 1; done
sleep 1; ncat --send-only 172.16.42.1 9933 < b10/b10b3/b10b3-mon.sh; sleep 1
sh b10/b10b3/b10b3-cmd.sh 3 'md5sum /tmp/b10b3-mon.sh; rm -f /tmp/b10b3-mon.stop; VMAX=4150000 EVDD=02 EVDD2=00 setsid sh /tmp/b10b3-mon.sh 10 > /dev/null 2>&1 < /dev/null & sleep 1; dmesg | grep -E "safety timer|supervisor"; cut -d" " -f1 /proc/uptime' | tee -a $A
act "local md5 $(md5sum < b10/b10b3/b10b3-mon.sh)"
setsid nohup sh b10/b10b3/b10b3-pull.sh $K > /dev/null 2>&1 < /dev/null &
act "monitor started (10 s), pull started -> logs/b10/b10b3/$K-mon.txt"