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

4 lines
602 B
Bash
Executable file

#!/bin/sh
# local helper: show last N board monitor samples (t from probe at uptime T0), compact. usage: view-mon.sh N [T0]
N=${1:-4}; T0=${2:-0.92}
ssh q@192.168.10.104 "cd ~/doc/modem/jz08-aurora; sh b10/b10b3/b10b3-cmd.sh 3 'tail -$N /tmp/b10b3-mon.log; dmesg | grep -E \"supervisor|pm8916-lbc\" | tail -2'" | grep -E "^M |supervisor|MON-END" | awk -v t0=$T0 '/^M /{o=""; for(i=1;i<=NF;i++){split($i,a,"="); k=a[1]; if(k=="up")o=o" t="sprintf("%.0f",a[2]-t0); else if(k~/^(state|vbat6|usbin|chgst|crt|usbp|ctrl|vdd|failed|pmt)$/)o=o" "k"="a[2]; else if($i~/^ALERT/)o=o" "$i} print o; next} {print}'