uzbek-plus/b10/b10a/b10a-load.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

12 lines
865 B
Bash

#!/bin/sh
# B10A load probe: idle 20 s, 4x `yes` for 60 s, idle 30 s; sample BMS FIFO + CHGR/USB RT every 5 s. Reads only.
grep -q " /sys/kernel/debug " /proc/mounts || mount -t debugfs debugfs /sys/kernel/debug
R=/sys/kernel/debug/regmap/0-00/registers
rd() { dd if=$R bs=9 skip=$(($1)) count=$2 2>/dev/null | cut -d' ' -f2 | tr '\n' ' '; }
s() { echo "$1 $(date +%T) up=$(cut -d' ' -f1 /proc/uptime) fifo=$(rd 0x40c0 10) chgrt=$(rd 0x1010 1) usbrt=$(rd 0x1310 1) t=$(cat /sys/class/thermal/thermal_zone4/temp) f=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)"; }
for i in 1 2 3 4; do s IDLE0; sleep 5; done
echo "LOAD-ON $(date +%T)"; for c in 1 2 3 4; do yes > /dev/null & done
for i in 1 2 3 4 5 6 7 8 9 10 11 12; do s LOAD; sleep 5; done
killall yes; echo "LOAD-OFF $(date +%T)"
for i in 1 2 3 4 5 6; do s IDLE1; sleep 5; done
echo B10A-LOAD-END