760 Commits
Author SHA1 Message Date
Abdurrahman Kaan Dikeç 0605d0d5bb Merge remote-tracking branch 'origin/main' into retire-kernel-7.2 2026-11-02 07:42:51 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 0aa83038ce Retire kernel 7.2: releases ship 5.4, 6.18 and 7.3; devices on 7.2 move to 7.3
kernel.org ended the 7.2 series with 7.2.15. Releases no longer build or carry
mu300-kernel-7.2.tar.gz or the -k7.2 Magisk zips (release and mainline
workflows, make-release, make-magisk-zips), patches/7.2 is gone (7.3 has its
own 0028) and parity/mainline.list drops the 7.2 series.

Migration: mu300-update takes a 7.2 choice for 7.3 (never the 5.4 an unknown
choice means), says so in apply/boot/check/kernel, installs 7.3 through the
usual boot update (image before kept for rollback-boot, one-boot fallback
unchanged) and writes 7.3 down once an image of 7.3 is in place.
"mu300-update kernel 7.2" refuses and names 7.3. rollback-boot to a 7.2 image
still works and says the next update brings 7.3. Zips and directories of older
releases with 7.2 are still read. install.sh, install.ps1, the GUI, the web
installer and the Ubuntu panel take an answer or a choice of 7.2 as 7.3 with
a note; the kernel menu is 1) 5.4, 2) 6.18, 3) 7.3, and 4 still means 7.3.
mu300-api and the LuCI adapter no longer accept 7.2. Docs, wiki and site
(en/tr/zh) list three kernels and describe the retirement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-11-02 02:25:17 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 0608d94660 USB network "multi" (NCM + RNDIS in one configuration) and net-name eth
multi: RNDIS first (interface 0, MS OS compatible ID RNDIS), NCM next, then the
ACM console and adb, all in the single configuration Windows needs for its
composite parent. bcdDevice 0x0305 (0x0306 with adb). init names the netdevs
rndis0 and usb0, serves its early lease on a bridge of the two that goes before
switch_root; both are br-lan ports on Ubuntu and OpenWrt. usb-net-applied says
multi only when both functions were made; a kernel without f_rndis makes NCM.

net-name eth: every function's host_addr in the vendor block of LK's
androidboot.wifimac (globally administered, as stock Android's Wi-Fi address
is), so a Linux computer names the link eth0 instead of usb0; dev_addr stays.

Selectable everywhere the modes are: mu300-usb net multi / net-name, mu300-api
usb.net (mode multi, name), the Cockpit page, LuCI's Device page (device-usb,
mu300dash net_name), with translations. FINDINGS 242.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-11-01 23:41:52 +03:00
Abdurrahman Kaan Dikeç 8a618dc666 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/FINDINGS.md
2026-11-01 18:19:27 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 c3519e829e Online shrink with #473: adb alone again after the restart; a resumed run takes the transaction's region only
- A terminal keep run restarts Android and goes on: the new boot has the user's USB functions (MTP) again, so
  install.sh calls usb_adb_only once more after online_reboot_wait, and the restore at the end of the run is for
  the new boot. install.ps1 never goes on after that restart (the next run starts with UsbAdbOnly), so nothing there.
  tests/fakeadb.py: reboot_boots (adb reboot gives a new boot_id and the stock functions back) and the boot_id read;
  tests/test_resume.py OnlineShrink checks both switches and the restore's boot.
- region_find_existing (tools/storage.sh, and install.ps1's loop): while a transaction is resumed, only its region
  counts. An old mu300root superblock at the fixed offset 27762098176 inside the region made was taken for an
  installation (F50-B device test of #468). Tested with such a superblock in the fake eMMC.
- FINDINGS 239 says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-11-01 15:25:16 +03:00
Abdurrahman Kaan Dikeç 0835446502 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/FINDINGS.md
#	i18n/tr.tsv
#	i18n/zh.tsv
2026-11-01 15:12:45 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 38f532ad6d FINDINGS 239: the online shrink on an F50-B, two runs, data checked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-11-01 14:46:24 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 3c2235983f Installers: Android's USB set to adb alone for the run (MTP off)
On an F50 the stock firmware's MTP function hangs, and Windows then resets the
USB device about every ten seconds, which cuts the adb session the installer
uses each time. Reported by kanoqwq, who suggested turning MTP off from the
installer.

Early in every run (right after root is confirmed) install.sh, install.ps1,
uninstall.sh, uninstall.ps1 and the web installer push tools/android-usb.sh
and switch sys.usb.config to "adb" when it holds mtp or ptp: "none" first,
until sys.usb.state says none, then "adb" - what Android's UsbDeviceManager
does (UsbHandlerLegacy: no USB gadget HAL on these units). The F50's stock
vendor rc (init.ums9620_2h10_ufi.usb.rc, B09) builds "adb" as ffs.adb alone
(19d2:1352) for every persist.vendor.sys.modem.diag value, and AOSP's
init.usb.configfs.rc has it on every configfs Android, so the U30 Air and the
V50 get it too. Never persist.sys.usb.config: the next start of Android has
the user's functions again. The switch runs detached (adb drops with its
first step); the host then waits for adb with sys.usb.state "adb", bounded by
MU300_USB_WAIT (60 s), and stops with what to do when the device does not come
back. Android that sets its functions again is gone on with. MTP already off:
nothing happens. MU300_USB_ADB_ONLY=0 leaves the USB alone.

Where a run ends with the device still in that boot of Android (uninstall,
--check, a backup, a failure) the functions of before are set back; never
after a reboot (sys.powerctl set, or another boot_id). The web installer
switches after staging and tells the user to choose the device again (it
comes back as another USB product). Our Linux gadget (ncm/ecm/rndis + acm +
ffs.adb) has no MTP or PTP function; a test says so.

Not run on a board: it needs the owner's test in Android.

Reported-by: kanoqwq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-11-01 14:29:24 +03:00
Abdurrahman Kaan Dikeç 4632934728 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/FINDINGS.md
2026-10-31 03:31:59 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 e6e45afb02 Renumber the delegate and dashboard FINDINGS entry to 241
238 to 240 are taken by other open PRs. From kanoqwq 0043a5d8, c84da8ba, fe52afe3, b9f71e72.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:54:51 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 11a26a759c FINDINGS 238: checked on a U30 Air (6.18.59)
From kanoqwq 0043a5d8 (the delegate readiness), c84da8ba, fe52afe3, b9f71e72: the device results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:54:36 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 b3e3dde535 FINDINGS 238: the delegate's readiness, "No SIM card" and roaming on the dashboard
From kanoqwq 0043a5d8, c84da8ba, fe52afe3 and b9f71e72: what was taken, how, and what was left out and why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:54:36 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 47161257b3 FINDINGS: the kanoqwq power and services entry is 240 (238 and 239 are claimed by other PRs)
From kanoqwq cc0ecce7, f0b5ad43 and fb0b28e7, as ported in this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:54:20 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 6710d5e808 Online shrink on the internal disk of #466 and the 4096-byte tables of #467; FINDINGS 239
The worker is given the backup table's place by the disk's own count (33 sectors, 40 on 4096-byte blocks), the device
script takes userdata's disk from sysfs (mmcblk0, sda), the computer reads and writes the table and the token on
IDISK with --sector-size ILBS. A keep run on the fake 1 TB UFS (tests/test_resume.py). The entry is 239 (238: #463).
(Method: dikeckaan; implementation: kanoqwq.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:52:59 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 33c86dd942 FINDINGS 238: count the device test's cycles as they ran
From kanoqwq b4748534 (ported earlier in this branch).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:48:04 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 72192d5d89 FINDINGS 238: the U30 Air device test of the BC1.2 change
From kanoqwq b4748534 (ported in the commit before): three boots and 15 VBUS cycles on the U30 Air, 6.18.59.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:48:04 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 1303d91a91 U30 Air: the USB PHY runs the charger detection (BC1.2), the charger takes its result
From kanoqwq b4748534 ("fix u30air stock charging detection"): his PHY driver
and ums9620-bc12.h, and his patch 0026 rewritten for our bq256xx chain as
0032. The PHY now hands D+/D- to the PMIC's detector on each VBUS event and
gives them to USB only for a USB port (SDP, CDP), as ZTE's 5.4 PHY and dwc3
do. The charger reads that result instead of the PMIC's on its own, and no
longer starts the chip's IINDET detection, which drove D+/D- under a live
USB link. U30 Air only (charger_policy_service); F50 and V50 unchanged.

Unlike his version, a failed detector setup or a missing VBUS extcon does
not fail the PHY probe: D+/D- go to USB without detection, so the board keeps
its USB link. The role change always takes the D+/D- lock.

His PD-receive part was taken in #402; his TCPM current-limit change is
already how our ump9620-tcpc works (no input current without a contract).

FINDINGS 238. FINDINGS 224 gets his charge-voltage audit (fe52afe3): the
stock SQC config stops at 4300 mV; the 4.4 V on the battery label is not
the charge target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:48:04 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 73112be0a9 Make room while Android keeps its data: userdata's F2FS shrunk online (method: dikeckaan; implementation: kanoqwq)
The installers' make-room path (FINDINGS 112) could only reset Android. Where /data is an F2FS on all of userdata
(directly or through one device-mapper mapping, as metadata encryption has it), they now also offer "keep": Android's
own kernel shrinks the mounted F2FS (F2FS_IOC_RESIZE_FS), then the smaller table is written and Android restarts
once with everything kept. EXPERIMENTAL; FINDINGS 238.

The method is dikeckaan's; kanoqwq implemented it (kanoqwq/mu300-linux fe52afe3, c69be3a3, dad8224b): his
f2fs-online.c helper is tools/f2fs-online/mu300-f2fs-online (static arm64, reproducible build, CI rebuilds and
compares), his eligibility checks are tools/android-online-shrink.sh, and his rules - section-aligned target with
2 GiB to spare, a same-size probe first, a detached worker that checks both GPT copies and commits the table only
after the shrink, an interrupted run continued only from a known state - are in tools/resume.sh, tools/resume.py and
install.ps1. The graphical installer offers keep or reset.

Tests: tests/online-shrink-e2e.sh runs the real helper and script on a real F2FS in a loop disk (dm and direct);
tests/test_online_shrink.py; tests/test_resume.py OnlineShrink with tests/fakeonline.py; ps1 answers-mode checks.
UFS (fe52afe3's other half) is left to the UFS work. Not taken: his uninstall growth through a temporary Android boot
image (474e8018).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:45:01 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 bc2ebf5449 FINDINGS 238: the U30 Air results
The SMS receiver, the data watchdog and mu300-hw on the U30 Air (OpenWrt,
VPN up), from kanoqwq f0b5ad43 and cc0ecce7 as ported here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:25:34 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 f2a45a8eed FINDINGS 238: the watchdog's stop, and the F50-B results
From kanoqwq f0b5ad43 and cc0ecce7, as ported in this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 02:08:21 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 f2fc820711 FINDINGS 238: kanoqwq's power and services work of October 23-25, what is taken and how
From kanoqwq cc0ecce7, f0b5ad43 and fb0b28e7: what this branch ports, what
was already here, and what is left out (everything on his modem and system
daemons). FINDINGS 133 points to keep-good.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 01:33:24 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 4bd6c11347 USB network at boot: one gadget rebind (the LAN hook waits for adbd's), and the lease check asks for the USB host's
On the U30 Air under OpenWrt the LAN hook's re-enumeration and mu300-adbd's rebind (adding adb) fell within the
same 200 ms of every boot: four enumerations in about 1.2 s, and on 2 boots in 13 the Mac's NCM link came out of
it with a dead OUT path (169.254, no DHCP, rx frozen; adb fine) until a replug. The hook now waits for adbd's
rebind when adb is about to join, both hold /run/mu300-usb-rebind.lock while the gadget is unbound, and
mu300-usb-reset --if-no-lease looks for a lease of the gadget's host MAC rather than any lease (a phone on the
hotspot kept the stalled Mac without its rescue). FINDINGS 237: U30 Air 22/22 clean boots after, F50-B 10/10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 11:02:44 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 d1ea048dca Merge origin/main into kernel-step-crash-safe (FINDINGS 235 taken: this is 236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 03:17:04 +03:00
KAAN DIKEC def53d535d Merge pull request #440 from dikeckaan/u30-coldboot-default
U30 Air: load the modem after a charger boot by default (fixes #253)
2026-10-29 03:16:04 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 b49bc86448 U30 Air: the CP after a charger boot is loaded by default (#253)
mu300-modem-coldboot was opt-in until a U30 Air had run it. Run now on the test U30 Air (v2026.10.28.1,
6.18.59): a poweroff on USB power gives LK's charger boot; without the copy /dev/stty_nr1 stays ENODEV
and the WAN down even after the Wi-Fi key (issue #253 exactly); with it the CP runs at 5 s, and after
the key the SIM is READY, the WAN, the VPN and its kill switch come up. A normal boot is untouched.
On by default; /etc/mu300/no-modem-coldboot turns it off.

Fixes #253

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 03:01:41 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 556623a3dc Merge origin/main into cpu-load-part-a: mu300-traffic's counted device (#428) with the builtin clock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 02:53:19 +03:00
9c3237e04d Idle CPU: the shell daemons start no process for a look that finds nothing new (part A of #372, FINDINGS 235)
liuwang97's measurements and rewrites from #372, the part that keeps the behaviour:
mu300-power, mu300-buttons/mu300-led (the tick's hint), thermal-guard (still every
5 s), mu300-adbd, ndp-learn (ip monitor, a 300 s safety round), mu300-traffic and
early-recorder read with the shell's own read and wait on a fifo instead of sleep.
mu300-cpu services little|all is there, default all (the VPN engines are procd
services). Not taken: mu300-power's longer waits, thermal-guard's longer intervals,
the panel in rpcd, mu300-modemd, mu300-sysd and the kernel config.

Under bash 3 the fifo wait is not used: bash 3 runs a trap that comes during a read
inside the read, and the trap's $( ) hangs there.

On the U30 Air (6.18.59, idle, on the charger) the whole system went from about 408
ticks a minute to about 218; these seven daemons from about 180 to about 32.

Co-authored-by: liuwang97 <17954538+liuwang97@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 02:36:40 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 769164b9ba Kernel step: a restart in its middle no longer leaves modules the kernel does not match
A restart while the kernel step of v2026.10.27.2 ran (#422) left 307 of 3056 modules as empty files in
every system, and the systems with the new 7.3 build's set while the slot still held the image before.
The two builds disagree on struct task_struct, so the Wi-Fi driver's probe read the wrong offset: an
Oops 25 s into the boot, and the fallback went to Android. Both halves looked complete afterwards.

* The unpacked set is checked (every module the bundle lists, none empty) and synced before any system
  gets it as second names: what was written in the last seconds was not on the disk yet.
* From the moment the systems' set changes until the image is written (and in the "already up to date"
  path), boot/modules.pending holds the release and banner of the new kernel. The ramdisk's init settles
  it before the system starts (the running kernel's uname -r and -v against the banner), and so does the
  next mu300-update (the banner of the image in the slot): the new kernel gets the unpacked set again,
  any other the set kept with the image before.
* The Update page shows "Restart needed" only once no update runs: the system is switched before the
  kernel step, and that card invited the restart.

FINDINGS 235.

Fixes #422

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 02:30:25 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 e731ec61ad Wi-Fi: a channel list off the radio's band no longer keeps the access point down (#424)
The 5 GHz channels list openwrt-wifi-config writes for auto stayed when LuCI switched the band to 2.4 GHz;
with channel auto hostapd got chanlist=36 40 44 48 and hw_mode=g, found no channel and never started the AP.
The no-DFS wifi-scripts patch now drops chanlist entries that are not on the radio's band (whole list when
none is left, so ACS uses the band), with one log line.

Reproduced and verified on a U30 Air (OpenWrt v2026.10.28.1, 6.18.59): 2.4 GHz auto with the stale list
was AP-DISABLED; with the patch ACS picks channel 1 (HT20 and HT40), and 5 GHz auto keeps its list (36).
tests/test_wifi_channels.py's OpenWrt-image test gains three 2.4 GHz cases (fails on the old patch).

Fixes #424

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 02:26:01 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 070a643257 Parity with 5.4: nothing the vendor kernel has may go missing on mainline unsaid
upstream/parity-5.4.txt maps every module, built-in object and run-time item of the
5.4 kernel that mainline does not have under the same name: ok (the module or
config symbol that stands for it, and where it binds on 7.3), missing (porting
group and boards) or na (the reason). upstream/check-parity.py enforces it:
build-modules.sh and make-bundle.sh fail when a named equivalent or a same-named
5.4 module is not in the mainline build; kernel/build-all.sh records the 5.4
build (parity/5.4-build.list, with a hash of its inputs) and fails on an item the
file does not cover; tests/test_parity.py (Tests workflow) checks the file against
those records, parity/mainline.list and the boards' inventories
(parity-inventory.sh on F50-B under 5.4 and 7.3, the U30 Air under 6.18).

Config-only gaps taken: GENERIC_ADC_THERMAL (board-, chg-, nr- and pa-thmzone, no
trips in the vendor tree), CPU_FREQ_GOV_CONSERVATIVE, USB_CONFIGFS_SERIAL,
USB_CONFIGFS_ECM_SUBSET, USB_CONFIGFS_F_HID. Built for 6.18.59, 7.2.13 and 7.3;
7.3 booted on F50-B: the four zones bound (35-38 C), gser/hid/geth functions
created, the conservative governor selectable. FINDINGS 234.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-29 00:33:52 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 0a4d779d6d Merge main (FINDINGS 230-232) into kano-lock-jobs; 233 after them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 18:39:31 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 6dad37d1d4 Merge main (FINDINGS 230, 231) into kano-battery-board-isolation; 232 after them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 18:20:07 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 96fedd1e4a Merge main (FINDINGS 230) into kano-apn-iccid; 231 after it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 17:43:41 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 a275444ce4 Panel locks: each change is a job the page follows to its end (FINDINGS 233)
Ported from kanoqwq/mu300-linux lock-jobs.sh (db4e5d2a, reworked up to b8d4f222), the async
lock job queue: lock start KIND VALUE makes a job and answers at once with its id, lock status ID
reads how it ended (no AT), rpcd lock_set starts jobs and the new lock_job (read ACL) is polled by
the locks page before its read-back, so a refused write is said instead of "Status confirmed".
Bounded as his: 4 open jobs, 64 in all, ended ones removed after ten minutes, 420 s limit, dead
workers reported. The mode, EN-DC and cell writes are checked like the band writes since #356 (his
write_setting): an explicit ERROR ends the apply, nothing saved, no restart. Seven new messages,
in all 31 catalogs.

F50-B (5.4, helper by hand): mode change done (restart 7 s), an unsupported band queued behind it
and ended in error with the reason, an LTE lock and its removal done, data back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 17:29:14 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 1814857b1b Mainline: the UMP9620 fuel gauge and ZTE's charger node only on a board with a battery (FINDINGS 232)
Ported from kanoqwq/mu300-linux f59a2968 (his patch 0019, "isolate UMP9620 battery drivers
before register access"), as upstream/patches/0030. On the F50 and V50, which have no battery,
both probes end with -ENODEV before any register access unless the device tree has the U30 Air's
/charger_policy_service (the test of 0016, 0023 and mu300-device; kano's version also asked
of_device_is_available). The made-up "Battery" sc27xx-fgu every reader had to ignore by board is
gone from those boards; the U30 Air is unchanged.

F50-B, 7.3: power_supply empty, mu300-power status, mu300-api power.get, services and thermal
zones identical to v2026.10.27.1's 7.3 on the same board.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 17:28:36 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 38b39059c6 FINDINGS 230: two power cuts on F50-B during the test, not reproduced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 17:23:27 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 adc1ca9cda APN settings for one SIM card only: the ICCID binding of kanoqwq's profiles (FINDINGS 231)
Ported from kanoqwq/mu300-linux 3826be8b and 18d3725a (APN profiles bound to a card by
its ICCID), in the form FINDINGS 65 left room for: no second profile store, one opt-in
setting beside the APN (Ubuntu MU300_APN_ICCID, OpenWrt wan option iccid / "Only for the
SIM card"). Set, mobile-data asks the card for its ICCID (AT+CCID) before the context is
defined: the same card dials with the APN, PDP type and credentials; another card dials
with its own context and gets back nothing given to the modem earlier; a card that does
not say its ICCID gets no dial. ICCIDs are never printed. Empty (the default): as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 17:13:50 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 80e1ff05f4 5.4: the Wi-Fi TX and SDHCI fixes mainline has (FINDINGS 230)
Ported from kanoqwq/mu300-linux 149c9d2a, 3cbf37fc and 0438ab01: his 5.4 versions of the fixes
we made for mainline only (FINDINGS 92, 93, 103). Seven patches to the vendor trees:
wlan_combo-tx-retry, sprdwcn-tx-pending-backpressure, wlan_combo-skb-headroom,
wlan_combo-special-data-prefix, wlan_combo-ipv6-multicast-data, wlan_combo-stale-tx-ratelimit,
sdhci-sprd-dma-ordering. All apply with --fuzz=0 after ours.

His backpressure patch was written on top of his diagnostics patch (not taken); rebased onto the
pristine tree, with the #339 changes mainline's wcn_bsp has since: the full ring logged once a
minute, a failed direct push no longer leaves the channel refusing, and -EAGAIN is not logged as
"push link fail".

F50-B, 5 boots on 5.4.254: the 204+203 "push link fail"/"tx return err" lines one traffic test
produced are gone, Wi-Fi up every boot, client traffic both ways, IPv6 multicast/RA, SD read and
eMMC write/read-back equal, no mmc errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 16:11:13 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 1870a1b7bf FINDINGS 225-229 in number order (no text changed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 15:20:23 +03:00
KAAN DIKEC 96496c3884 Merge pull request #406 from dikeckaan/kano-port-leds
LED settings from kanoqwq in mu300-led: lamp switches, brightness, boot indicator, heat alarm light; System > LEDs page
2026-10-27 15:09:07 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 d19f4c920e FINDINGS 225: 7.x link wait, utilisation clamps
Ported from kanoqwq/mu300-linux f0b5ad43

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 14:40:42 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 b365ecfab7 LED settings from kanoqwq in mu300-led: lamp switches, brightness, boot indicator, heat alarm light; LED pages
kanoqwq's LED status system (led-status, u30air-led-status, v50-led-status, his LuCI LED page) as settings of our
one controller, mu300-led, in /etc/mu300/led.conf. Nothing changes by default: every lamp on at its usual level, no
boot indicator, the siren.

- LED_NETWORK / LED_WIFI / LED_BATTERY=0|1: a lamp switched off stays dark (the U30 Air's low-battery red too); the
  heat alarm still shows on its LED and `test` lights everything.
- LED_*_BRIGHTNESS=1..100: % of the lamp's usual level where the lamp dims (F50 network + Wi-Fi, U30 Air battery,
  V50 lamps); ZTE's battery levels and the breathing curve are scaled, not replaced. FINDINGS 227.
- LED_BOOT=1: the boot indicator, the siren's LED cycling its colours (kano's tempo) from OpenWrt's preinit
  (04_mu300_early_leds, before the recorder and USB) or Ubuntu's mu300-fixups until mu300-post / mu300-boot-ok; it
  ends by itself after 3 minutes, a switched-off lamp stays dark, the heat alarm takes over.
- LED_THERMAL=siren|blink|off: the heat alarm's light as today's siren, kano's red blink (the kernel's timer, no
  process) or nothing. thermal-guard is unchanged; mu300-led only reads its /run/mu300/thermal-alarm on refresh.
- mu300-led settings (JSON) / set KEY VALUE / refresh; nap falls back to the bundled busybox's usleep.
- The LED page as System > LEDs of luci-app-mu300 (unisoc-modem/led adapter, mu300dash led_get/led_set, ACL, menu),
  not an override of LuCI's own LED page; translations in every catalog (kano's zh where he had them).
- mu300-api led.get/led.set and the Cockpit LEDs card carry the same settings.

Ported from kanoqwq/mu300-linux f6b0668d, 2af101f8, ac21653d, dbd6bf1e, ee10835c, c1293746

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 14:12:47 +03:00
KAAN DIKEC e3881098a4 Merge branch 'main' into kano-port-panel-tcp-boot-hotspot-usb 2026-10-27 13:51:54 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 1fc4a601dd mu300-power: U30 Air charging controls (resume level, pause by hand, full once)
kanoqwq's web charging controls, as keys of mu300-power's one charge guard rather than
his second service (both would write the bq256xx charge_type):

- RESUME_AT 0..99: charging starts again under it instead of 5 points under CHARGE_TO
  (ignored when not under the limit); with CHARGE_TO=100 a full battery waits until it
  drops under it.
- CHARGE_PAUSE 0|1 (mu300-power charge pause|resume): a pause by hand, kept across boots.
- FULL_ONCE 0|1 (mu300-power charge full): the limit is set aside until the battery says
  Full at 100 %, then the daemon clears the key. A pause and a full charge exclude each
  other.

The temperature pause keeps the last word (a resume or a full charge never switches
charging on out of range); the pause and the limit give way under 5 %. Defaults 0:
behaviour unchanged. Refused where there is no battery (F50, V50). On the LuCI Power page
(unisoc-modem/power, mu300dash) and Cockpit (mu300-api power.get/power.set), U30 Air only,
with catalogs. FINDINGS 226: what charge_type N/A and Fast do on the U30 Air (kanoqwq's
device reading).

Ported from kanoqwq/mu300-linux 61bb5a30, 85d72fa9

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 13:23:39 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 4ef6260f11 Panel: TCP congestion control, boot state, hotspot per access point, USB checks (kanoqwq)
- mu300-tcp (Ubuntu and OpenWrt): the device's own TCP congestion control,
  system default / CUBIC / BBR (BBR also sets net.core.default_qdisc=fq).
  Only what tcp_available_congestion_control lists is offered (5.4 has no
  BBR). The kernel's own pair is read once per boot (boot_id) so "default"
  puts it back; a refused write puts the old pair back; saved in
  /etc/mu300/tcp.conf, replayed by mu300-toolkit apply. Nothing saved:
  nothing touched. No firewall, interface or VPN change.
  Device page card (mu300dash tcp_get/tcp_set, adapter unisoc-modem/tcp),
  mu300-api tcp.get/tcp.set and a Cockpit card.
- Boot state under the dashboard's boot buttons (mu300dash boot_get,
  read only): default boot, one-time boot, whether boot control can be
  written - from mu300-next-boot status, which now says the last.
- Hotspot on/off per access point (/opt/mu300/lib/hotspot-ap.sh), shared
  by the panel's Wi-Fi button and the Wi-Fi key (FINDINGS 222): the AP's
  wifi-iface, the radio only when it was off and nothing else would come
  up, refused while uci or a LuCI session has unsaved wireless changes or
  the Wi-Fi client has the radio, flock, "pending" after netifd's reload,
  never the key.
- device-usb: the gadget function bound now (configfs) beside the saved
  mode; host-side NICs must be Ethernet and not wireless, and one that
  another network has (another bridge, a network section, netifd's
  interface dump) is not brought up or added; unsaved network changes
  refused. role_command keeps safe_program.

Ported from kanoqwq/mu300-linux b9f71e72, f6b0668d, db4e5d2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 13:23:14 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 a1152cae1f mu300-nfc drives the V50's tag on the reset line its device tree names (189 only)
The V50 has the U30 Air's FM11NT08 at I2C2 0x57 on reset line 189. mu300-nfc reads the line from ZTE's
ntag_fm11_gpio node and drives the tag only when it is 189, the line kano tested; no node or another pin
leaves the tag alone. "mu300-nfc supported" tells the callers (hotspot-start, mu300-hw) instead of their
u30air checks; OpenWrt syncs the tag when the wireless settings are committed (procd config trigger in
mu300-post). A gpioset that cannot hold the line is now an error, and busybox awk no longer reads
"ssid (...)" as a call. FINDINGS 229.

Ported from kanoqwq/mu300-linux f6b0668d

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 12:43:37 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 9317b8c44d Kernel and driver fixes from kanoqwq: U30 Air CV 4.304 V (REG04 0x70), PD receive wait, small robustness fixes
Ported from kanoqwq/mu300-linux, adapted to this tree:

- Patch 0029 (his 0027, b4748534): the U30 Air's battery CV in the stock
  driver's encoding, floor((mV - 3856) / 32) + 1: 4.3 V is code 14, REG04
  0x70, 4.304 V (0024 rounded down to 0x68). Code 0xf read and chosen as the
  chip's special 4.352 V. Vendor node with battery info only.
- Patch 0020 (b4748534): the PD receive path waits for the RX FIFO (50 us
  polls, 2 ms at most) before it reads the header, and logs a
  Source_Capabilities whose first PDO is not fixed 5 V.
- FINDINGS 207 corrected (0x68 was what 0024 wrote); FINDINGS 224.
- sprd_wlan_combo watchdog (23361cea): a new probe starts clean, a
  stopping flag keeps a tick from requeueing during stop. Unlike his, the
  one WCN reset per boot stays used across a re-probe.
- sipc (f59a2968): a failed platform_driver_register unregisters the panic
  notifier and the wakeup source.
- ums9620_lpintc (f0b5ad43): an enabled block that cannot be mapped fails
  the load instead of being left unsynchronised.
- ump9620-pmic-wdt (ab26e79e): suspend fails on a failed register read
  instead of taking the watchdog as stopped.

Not taken: his recovery_reboot default off, and the 0026 PHY-owned BC1.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 12:15:22 +03:00
Minikano 6fd813bb4e Remove remaining call-audio research notes and references (#397) 2026-10-26 19:11:43 +08:00
Minikano 238a4157e9 Remove call-audio integration from MU300 releases (#395)
* Remove call-audio integration and DSP-only kernel reservations

Remove the official audio extra from installation, update and kernel-switch paths. Drop call-only DSP memory reservations, patches and virtual sound-card configuration, and update current user documentation.

Retire previously installed audio extras through their uninstall hook before changing systems or kernels. Keep generic USB audio, Bluetooth, AT ownership, SMS and mobile data support.

* Update panel integration test after removing the audio extra
2026-10-26 14:16:48 +08:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 bc63e8287f LTE band locks: each board's own LTE table (U30 Air: B2/B4/B7/B12/B17/B20/B28/B42/B43/B66); automatic reads as nothing locked
The lock helper had the F50's LTE table (1,3,5,8,34,38,39,40,41) on every board, so the U30 Air could not lock
most of its bands, and get listed all 19 bands of an automatic U30 Air modem as locked. The table is now picked
per board through mu300-device (the cleared read-backs measured: F50 0,482,0,149,0, U30 Air W25.30.2
0,2018,2057,2271,2) and is the panel's LTE candidates, the apply and replay filter, and the reset/replay test for
automatic. get shows the modem's read-back as it is; only one holding the whole table is nothing locked.

Fixed, not learned from a read-back (#387): a lock in the modem's NV would become the table and then read as
automatic; nothing is written to flash on a read. FINDINGS 223.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-26 05:08:21 +03:00