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

10 lines
857 B
Bash

#!/bin/sh
# B10A read-only: USB gadget power descriptor, cpuidle/cpufreq/suspend state.
for f in /sys/kernel/config/usb_gadget/*/configs/*/MaxPower /sys/kernel/config/usb_gadget/*/configs/*/bmAttributes; do echo "$f $(cat $f)"; done
echo "cpuidle driver: $(cat /sys/devices/system/cpu/cpuidle/current_driver 2>&1) gov: $(cat /sys/devices/system/cpu/cpuidle/current_governor 2>&1)"
for s in /sys/devices/system/cpu/cpu0/cpuidle/state*; do echo "$s $(cat $s/name) usage=$(cat $s/usage) time=$(cat $s/time)"; done
ls /sys/devices/system/cpu/cpu0/cpufreq 2>&1 | head -3
echo "online: $(cat /sys/devices/system/cpu/online) power/state: $(cat /sys/power/state) mem_sleep: $(cat /sys/power/mem_sleep 2>&1)"
cat /proc/loadavg
grep -i -E "cpuidle|psci|cpufreq|suspend" /proc/config.gz 2>/dev/null | head -1
dmesg | grep -i -E "psci|cpuidle|cpufreq|idle" | head -10