- 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
17 lines
770 B
Bash
17 lines
770 B
Bash
#!/bin/sh
|
|
# Test B board-side CPU load with guard: N x `yes`, stop on PMIC > 52 C, VADC VBAT < 3.95 V, or after MAX s. Writes /tmp only.
|
|
N=${1:-2}; MAX=${2:-300}; L=/tmp/b10b3b-load.log; D=/sys/bus/iio/devices/iio:device0
|
|
trap '' HUP
|
|
t0=$(cut -d. -f1 /proc/uptime); P=""
|
|
for i in $(seq 1 $N); do yes > /dev/null & P="$P $!"; done
|
|
echo "LOAD-START up=$t0 n=$N pids=$P" >> $L
|
|
why=timeout
|
|
while :; do
|
|
t=$(cut -d. -f1 /proc/uptime); vb=$(cat $D/in_voltage6_input); pt=$(cat $D/in_temp8_input)
|
|
echo "L up=$t vbat6=$vb pmt=$pt" >> $L
|
|
[ "$pt" -gt 52000 ] && { why=pmic-52C; break; }
|
|
[ "$vb" -lt 3950000 ] && { why=vbat-below-3.95V; break; }
|
|
[ $((t - t0)) -ge $MAX ] && break
|
|
sleep 5
|
|
done
|
|
kill $P; echo "LOAD-STOP up=$(cut -d' ' -f1 /proc/uptime) reason=$why" >> $L
|