- HotspotVerify.test_a_refused_start_goes_to_2g failed on every Linux runner: hotspot-verify keeps only the dmesg lines
from its own start (since = /proc/uptime), and the test's line said 27.5 s, before the start on any host up longer
than that. On macOS there is no /proc/uptime, so every line was kept and it passed. Not dash: dash simply ran first.
The line is now dated after the host's uptime, and a new test checks that a refusal from before the start is ignored.
- VpnUplink.test_a_vpn_started_before_the_bearer_is_restarted expected "(2 s)" from a time taken once before the loop
over the shells: the second shell (or a slow first one) ran in a later second and the script said 3 s. The expected
seconds are now counted from the script's own reading (state/uplink-up).
- each_shell yielded inside a subTest: the loop body's failure never passed through it, and the generator closed later
made the subTest record the GeneratorExit ("generator ignored GeneratorExit", "'NoneType' object has no attribute
'success'"): two spurious errors on every failure. Assertion messages now name the shell instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
TF-A sets the always-on LP_AP_INTC's IRQ_EN once from its own table (INTC0, INTC1, INTC7 bit 6), without the
USB controller (SPI 142), the IPA or the Wi-Fi's PCIe MSI. While CPU0's cluster sat in cluster-pd their
interrupts waited for something else to wake it: USB pings up to ~120 ms, and the workaround was CPU0 without
cluster-pd.
upstream/modules/ums9620_lpintc adds every SPI enabled in GICD_ISENABLER1..8 to IRQ_EN, at load and every 5 s
from deferrable work; it only adds, takes its bits out again before system suspend (mem wakes on exactly what
TF-A chose) and at unload, and puts them back on resume. Built by build-modules.sh, loaded by extra-modules
after mu300_thermal.
U30 Air, 6.18.57, CPU0's cluster-pd allowed, 100 USB pings: 9.5 ms average / 42 ms max with it, 15.7 / 69
without; CPU0 without cluster-pd 10 / 70; WFI only on every CPU 7.1 / 40. Not yet built for 7.2/7.3, the
suspend path not yet run on a device.
Shared installation fixes from kanoqwq's b8d4f222, ported into this tree:
- openwrt/overlay/usr/libexec/mu300-sysupgrade: his backup_operation
parser; -r/--restore-backup now passes (LuCI's backup upload ran it and
was refused), firmware images and mixed requests still refused.
- mu300-next-boot: without /run/mu300/linux-slot the published Linux block
names the slot; a pair of blocks that names the wrong slots is never
written (misc unchanged). His boot/init gate on an unknown slot is not
taken (ours falls back to the image's slot; no boot gates).
- boot/build-boot-image.py: cpio_archive() adds every parent directory.
Not taken: the OTA diff tools, disable-stock-upgrade (rewrites LuCI's
minified flash.js at build time), the E5-family switch plugin.
Co-authored-by: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
From kanoqwq's b8d4f222 and edcdeb27:
- mu300-sim-state: +ECIND: 3,0,0,1 (a card coming up, after 3,100) is a
SIM event; numbers after the cause pass when every field is a 32-bit
decimal number. The stock RIL ignores them too.
- mu300-led: breathe() writes brightness 0 before it hands a steady channel
to the pattern trigger. The SC27xx's pattern_set leaves the steady TYPE
bit set (kanoqwq read 0x300 on a U30 Air, 0x100 with this).
Not taken (FINDINGS 209 says why): his SMS pool resolver, the dashboard's
battery current, the VoLTE/VoNR receipt fix, the V50 dual-stack radio
resume, the sim-reset data-priority call.
Co-authored-by: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
The watchdog's round on LTE asks nothing more than before (the data-roaming
test keeps that). Cockpit's tr/zh_CN catalogs get the new strings, and the web
installer's list of mu300-api methods the two new CPU ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
kanoqwq (cf4dcd61, tested on his V50) found the vendor RIL switches a card's
radio with SFUN=5/4 and reads CFUN 0 and 2 as off. mobile-data's rf_off now
sends AT+SFUN=5 and accepts 0 or 2; back on from 0/2 is the ordinary bring-up's
AT+SFUN=4, from an earlier release's flight mode (4) AT+CFUN=1 as before. The
U30 Air's live switch accepts a card in use that is off by its setting at 0, 2
or 4. His SIM2-off default and dual-stack cold-boot init are not taken: only
the card in use has a stack here.
Co-authored-by: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
kanoqwq read ZTE's V50 firmware (setNetLight, c1293746): logical slot 0 lights
NET2, slot 1 NET1. mu300-led lit NET1 on every V50; now the lamp follows this
boot's slot, colours as before, the other lamp dark, the siren on the same lamp.
led_up told 5G only from CEREG's AcT; a 5G SA registration is in the NR domain
alone, so F50/V50 showed 4G. When CEREG names no NR AcT, AT+C5GREG? decides
(kanoqwq's network-led.sh, f0ed60ff). The U30 Air's light shows the SIM in use
(FINDINGS 154) and is unchanged.
Co-authored-by: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
From kanoqwq's 85d72fa9 and 99e1316a, adapted to our charging boot and mu300-power:
- After LK's charger boot (modem=shutdown, the PM running) the stock modem_control loads nothing, so the CP never
came up until a reboot: issue #253. mu300-modem-coldboot makes a checked copy in RAM of the device's own
modem_control (sha256 before and after) that loads the CP and CH images alone; only on a U30 Air, in a charger boot
with modem=shutdown and the CP down. Anything else, or any failure: the stock loader, as before.
- POWER_ON_CHARGER=1 (mu300-power, LuCI, Cockpit, mu300-api): a charger boot is a normal boot; init makes no
charging-boot marker then. Default 0.
- The charging boot powers off when the charger is gone (two loops), and a held power key starts it, as the stock
charger mode does.
- Low battery: every state, unplugged, the U30 Air only: the stock charger manager's undervoltage rule (5 samples at
or under cm-shutdown-voltage + 120 mV, then <= 1 % or <= the shutdown voltage) and Android's (Critical or 0 %, three
loops), a clean poweroff.
Co-authored-by: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Led.test_v50 failed now and then on ubuntu shard 0: after "alarm on" / "alarm off" on a V50 without lamps, a PMIC
LED read 255. "alarm on" starts the siren in the background, a new mu300-led that asks mu300-device for the device.
The test's next call ("alarm off") rewrote run/mu300/device with write_text, which truncates first; a siren that
read it in that moment found no device file and no device tree, took the board for an F50 and flashed the PMIC's
RGB LED. "alarm off" (a V50) then killed it and darkened the V50's lamps, leaving the PMIC channel lit.
Made certain by widening that window to 50 ms: 5 of 5 runs fail with the same 255 and GeneratorExit; with the file
replaced (os.replace) 0 of 10. On a device /run/mu300/device is written once at boot: mu300-led is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
mobile-data voice volte|vonr on|off [--slot 0|1] keeps the choice in /etc/mu300/sim-voice; every bring-up sends
it where AT+CAVIMS=1 was (VoLTE on by default, VoNR only when set), read back with AT+CAVIMS? and
AT+SP5GCMDS="get nr synch_param",42. A change the modem does not read back is undone and not saved.
LuCI Cellular > SIM settings, mu300dash simcard_get/simcard_set, mu300-api voice.get/voice.set.
After kanoqwq's per-SIM voice switches (kanoqwq/mu300-linux 5f4732e, 53ef7b1), rewritten for this tree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Mainline's soc-thmzone did not hold a full CPU load: under the toolkit's stress the
SoC went from 38 to 98 C in three minutes with the cpufreq cooling states at 0-3
of 9. step_wise steps down on every 'dropping' reading, and the core's trend is
reading against reading 100 ms apart, which follows the noise of the hottest of
eleven sensors. mu300_thermal now gives the zone a get_trend (mu300_trend.h,
compiled on the host by tests/test_mu300_thermal.py): the slope between averaged
half seconds a second apart with a dead band, up fast above trip+3 C, back at most
a step a second, held from 80 to 84 C. F50-C, 6.18.56, 10 minutes: 80-84 C,
mean 82.3 C, peak 91.2 C.
thermal-guard caps on top of a bound kernel zone that lets the SoC reach 92 C
(the A76 clusters; all from 95 C), lifted a step a round at 85 C. The toolkit's
stress test stops itself at 95 C with a message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
White for slot 0 (the nano-SIM, VDDCAMA0), blue for slot 1 (the eSIM, net_blue),
red without service, whatever 4G or 5G; the slot is this boot's pin
(/run/mu300/sim-slot, slot 1 only on OpenWrt). A live SIM switch blinks the
target card's colour until the dial on it (mu300-sim-u30 calls
`mu300-led data switching <slot>`). The F50 and the V50 keep 4G/5G.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Read from the stock firmware (ZteBatteryService and the lights HAL) and ZTE's
guide: white from 60 %, blue from 10 %, red below; steady on the battery,
breathing on the PMIC's own curve (800/1200 ms -> 320/480/480/720) while it
charges, steady white when full on the charger; no LED times out on outside
power, nor the low-battery red; an unplug starts the timeout again. The heat
alarm's siren goes over it. Read at every mu300-buttons tick (mu300-led tick);
CONFIG_LEDS_TRIGGER_PATTERN for the breathing. Compared with kano's fork
(kanoqwq/mu300-linux 2af101f8), whose thresholds and colours were his own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
kano's UMP9620 port controller and charger role patch (kanoqwq/mu300-linux 2af101f8),
reviewed and rewritten as upstream/patches 0019 (bq256xx: the boost as the otg-vbus
regulator, refused against an outside supply, a stale boost off at probe, a PD
contract's input current) and 0020 (drivers/usb/typec/tcpm/ump9620-tcpc.c). A module on
both kernels that probes only with enable=1 and only on the U30 Air's device tree;
`mu300-usb pd on|off|status` switches it, host/device then ask TCPM for a data role
swap. The device default at every boot stays. Unit tests for the script and the
driver's callbacks; README, wiki, site (en/tr/zh).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
mu300-led had the two elements of the Wi-Fi light the wrong way round. ZTE's own
firmware (services.jar NotificationManagerService.updateLightsLocked() and the
vendor lights HAL, read from a U30 Air backup offline) lights VDDCAMA1 (white)
for a 5 GHz hotspot and VDDCAMA2 (blue) for 2.4 GHz, and ZTE's guide for the
U30 Air says the same. kano's fork (kanoqwq/mu300-linux 2af101f8) had it right.
README, wiki and the website (en/tr/zh) follow; FINDINGS 33f gets a pointer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
5.4 was exempt by its release: the guard ran the LED alarm only, trusting
sprd_cpu_cooling to bind soc-thmzone. Issue #229 shows a 5.4 unit whose
cooling driver found no zone, that went past 80 C under load and reset.
The release decides nothing now: the bound-zone check mainline already had
(5.4's thermal-cpufreq-N names included) runs on every kernel, so a 5.4
without a bound zone is capped at 85 C and powered off at 105 C, and one
whose zone is bound is only watched, as before. FINDINGS 139.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
The nodes exist before the modem has started its channels, and an open gives
ENODEV until then. open_tty's `exec 3<>"$DEV" || return 1` never reached its
return: a failed redirection on exec ends dash and busybox ash, so the daemon
was gone after one "can't create /dev/stty_nrN: No such device" line. The open
goes through `command exec` now, and the first one is retried every 2 s for up
to MU300_AT_OPEN_WAIT (240 s) with one line at the start and one at the end,
the command fifo held meanwhile; a failed reopen in the loop still ends the
daemon for a fresh start. FINDINGS 138.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
- json.awk: replacements are literal (rep), never gsub with a backslash: busybox 1.37's awk (OpenWrt 25.12)
left quotes unescaped and dropped backslashes (a U30 Air: wifi.get broke on an SSID with a quote, a
hotspot password lost its backslash in uci)
- wifi.set on OpenWrt: a channel given with a band is set after mu300-wifi-band (2.4 GHz ch 11 came up on 6)
- wifi.get/overview on Ubuntu: the hotspot is on while systemd says activating (about 20 s after each change)
- lan-start: the old LAN address leaves the bridge when the address changes (it stayed until the next boot)
- a tool's refusal is its whole last message with its indented lines (wifi-client scan in AP mode)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Measured on the U30 Air (openwrt-luci v2026.10.27, 6.18.56): a silent nr2 for up to 200 s left the bearer alone, 290 s escalated to the radio check and no redial; a dropped context reconnected in 58 s. procd kept none of the watchdog's stderr, so on OpenWrt nothing it said reached logread: cellwatch now sets stderr 1. The escalation takes about 4.5 min when the daemon hangs (an unanswered command waits 35 s): comment and FINDINGS 90 say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Mobile data dialled whatever network the SIM registered on, so data roaming was
always on and nothing could turn it off. Now "allow data roaming", as Android
has it, allowed by default (what every release did, so nobody loses data on
update).
- mobile-data: the card's registration (<stat> of AT+CEREG?, AT+C5GREG? for SA;
5/10 roaming, 1/9 home) on its own AT channel; with data roaming off and the
card roaming the dial activates no context, writes /run/mu300/data-roaming-held,
says so once, and exits 4 under netifd (mu300cell: DATA_ROAMING, retried every
60 s, which brings data back at home) or 0 on Ubuntu (the watchdog brings it
back). The watchdog takes a live connection down once when the card goes
roaming, never redials while held, and ends the hold when somebody takes the
connection down. `mobile-data roaming [--json] | on|off [--slot N]` reads and
writes the setting: network.wan.roaming / roaming_internal (per card) on
OpenWrt, MU300_DATA_ROAMING in mobile-data.conf on Ubuntu. A root-owned
/run/mu300/roaming-test ("home-as-roaming") forces the branch for device tests.
- No modem-side switch is known (none in anything this project has, none found);
IMS, SMS, USSD and emergency are untouched.
- Front ends: the panel's dashboard (row + Quick controls button, act roaming
on|off), LuCI's wan page (a flag per card next to its APN), Cockpit's MU300
page, mu300-toolkit, the mobile-data usage text, the wiki and README. All 31
panel catalogs and Cockpit's two.
- mu300-sim2-warmup gives no "no data" verdict while data is held for roaming.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
The default boot (/etc/mu300/default-boot, which the initramfs reads) is
written only after misc was written and read back, whole and never through
a symlink. Every command but status holds flock on
/run/mu300/next-boot.lock, so mu300-boot-ok's --rearm can no longer
overwrite a switch to Android made between its read and its write.
From kanoqwq's clean-tf-7.2 1f8f03fb (the switch changes misc only);
FINDINGS 100.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
kano (kanoqwq) ported this project to the ZTE V50 in his line (clean-tf-7.2: f6b0668d, 0438ab01). Brought over
as an experimental third device; nobody in this project has a V50, nothing of it is measured here.
- How it is told apart: mu300-device and boot/init (one rule, the same code): its device tree has an AW9523B at
0x5b on I2C3, which no F50's or U30 Air's has (both read). An F50 label on such a tree (an older installer's
"continue anyway") is a v50; a v50 label without the node is what the tree says. F50 and U30 Air unchanged.
- Installers (install.sh, install.ps1, the Magisk zip, the web installer, the boot chain scripts): exactly
V50 / MU3351 on ums9620, with one line saying it is experimental; any other V50 refused, never offered as an
F50; mainline kernel only.
- Kernel: kano's leds-aw9523b (binds only ZTE's binding), patch 0017 keeps the V50's eMMC host awake (his
measured fix); a mainline bundle names v50 only with the driver, the 5.4 bundle never.
- mu300-led (NET1 network lamp, Wi-Fi lamp by band, never the PMIC's LEDs), no battery, the F50's USB role
switch, USB network 192.168.79.1; SIM2, NFC and SIM selection stay off (mu300-nfc says so).
- README, wiki Hardware-Notes, FINDINGS 95 (kano's findings apart from what was checked here), ADB-INTERFACE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE