FINDINGS: main's 34 (LEDs, the second F50) before this branch's 35, under its own heading. The F50 lamp states that
K68/K38 point to are on main now. Host 650 OK, busybox OK, check-i18n and luci-i18n clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Found on a second F50 with the Wi-Fi client as its only uplink:
* D2: USB clients had no internet: only mobile-data turned on forwarding and NAT. wifi-client now does it for
wlan0 (table ip mu300_wifi_nat: masquerade, only answers forwarded in, removed on disconnect); on OpenWrt wlan0
joins fw4's wan zone. The VPN's kill switch covers wlan0 as it does sipa_eth* (DHCP renewals excepted), and
wifi-client puts it up (mu300-vpn guard) before joining, so the tunnel is never bypassed.
* D3: SAE-only networks were labelled WPA2 and failed after 25 s with a generic error. The scan says WPA3 /
WPA2/3; connect asks the supplicant for SAE (get_capability key_mgmt) and uses it when the driver has it,
otherwise refuses a WPA3-only network as soon as the scan shows it.
* D4: "sudo wifi-client connect NAME PASS" put the password in the journal. connect now asks for it with no
echo, or takes it on stdin ("-") or from --password-file; the argument form still works and warns. The
passphrase goes to wpa_passphrase on stdin, and its plain "#psk=" comment no longer lands in /run.
* D5: disconnect left ENABLE=1, so the next boot was a client again with no hotspot. It now clears it
(--keep keeps it); "reconnect" turns it back on (mu300-toolkit uses it), OpenWrt's service stop keeps it.
* D6: UTF-8 names showed as \xNN, and a neighbour report's "BSSID: 00:00:00:00:00:00" was taken for a name
(the SSID match was not anchored). Names are decoded (control characters stay escaped), hidden ones dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
The gates asked for 10 cold boots per device; the evidence is soft reboots (F50 #1: 9 good and one hard hang counted
apart as the known 6.18 hang; U30 Air: 11), because F50 #1 cannot be power-cycled remotely and the U30 Air has a
battery. K12's macOS run was 9 boots, not 10. K67 says --fast-run and --ready stay for manual use with no boot-time
caller. The I3 bullet names what the device check covered and that 90-mu300 is now split like 91-mu300-luci.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
K23 and K57 passed (20 soft reboots: SMMSWAP answered, one SFUN=4, registered at 30.1-31.4 s, no modem alive
timeout); K4 and K12 not taken; K6 and K58 not measurable here (no Windows host; both lines without credit) and kept;
relay IPv6 without NDP relay carried a client's DNS over IPv6 with no /128 route; AT+CMGL marks SIM messages read
(README says so now); the update keeps the user's settings; the panel in four browser languages on both devices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
K12 (kanoqwq cd4fb28) asked for macOS, Windows 11 and Linux hosts, 5 boots each. Measured on F50 #1 with
openwrt-luci: macOS 9/9 boots got the early lease (lease_time 3600, the preinit server) and answered ping 24-27 s
after the reboot command, with usb-ready and --if-no-lease both running; the Windows host (192.168.2.20) was not
reachable and no Linux USB host was attached, so the gate cannot pass. Per the plan's failure branch: the usb-ready
instance goes, --if-no-lease and 10-mu300-usb's re-enumeration stay (K10 stays rejected), and the role check and
configfs mount of K67 stay in mu300-usb-reset. This also removes the triple bounce of final Minor 8.
Spec: K12 -> c; K4 -> c (busybox dd seeks: 0.01-0.08 s); K38, K39, K68 -> x (the F50 lamp states are measured and
implemented on f50-leds-fixes; the chase, switches and LED page follow it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Conflicts kept both sides: boot/init's region marker before the usb-net and pick-root blocks; android-vendor-start
links the partitions of the eMMC found by type, through the fork-free link_partitions; the OpenWrt build links the
shared path-commands list and keeps the panel's own services and mu300-sms; no VPN engine in either image (the vpn
extra) while the panel's docker mounts stay positional; assemble.sh enables mu300-atd2 next to the update notice;
android-install keeps openwrt-luci and the extras on a legacy wipe; make-release audits both the panel asset and the
vpn extra.
The third system in main's new places: mu300-extra counts a disk with only openwrt-luci as mounted, the Magisk
installer sees an installed openwrt-luci (space, plan, MU300_BOOT_OS) and names the installed systems in its last
hint (the fixed "ubuntu|openwrt" text became the {1} form install.sh already uses). Tests that read what git tracks
skip where there is no checkout (a container with only the worktree mounted).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Conflicts: mu300-update keeps main's comment ("its boot image") and this
branch's clean_broken before the download; FINDINGS takes main's 31l
(the card slot took mmc0) before this branch's 31m (hard hangs), and 31m's
table now points at 31l instead of the mmc-order-fix branch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
A card can carry an eMMC-style GPT (a raw clone of a device backup) with partitions named misc, boot_a and boot_b,
and the Linux-side lookups by name took any mmc disk's: init's misc and boot_<slot> (the BCB write, the persistent
log, /run/mu300/misc-dev for mu300-next-boot), early-recorder's 8 MiB log window and mu300-update's kernel partition.
All of them, and android-vendor-start's by-name links, now take the eMMC only: the disk of type MMC, else the first
mmcblk disk that is not SD - never a card on mmcblk0, as the old fallback could. ueventd-perms.sh drops Android's
mmcblk1p* rule (the card by number, root:system - gid 1000 is the first user on Linux; no vendor daemon here opens
the card) and takes the RPMB partition under any number. The kernel port says what its wait costs: no eMMC host,
no card. FINDINGS 31l: the verification tally.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
31k's "Pending: card-pull fallback" is replaced by the measurement, simulated by relabelling the card away from
mu300sd (foreign label and none): 8.85 and 8.86 s of waiting, then the internal system; mu300sd again and the card
boots. 31j: five unbind/bind cycles of the SD host, SDR104 every time, no loop, no kernel change. 31e: the IPA
threads before and after. 34: LEDs, mu300-update's .broken, the early kernel messages, the 5.4 Wi-Fi MAC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
The script runs again on the first boot after every update (a fresh rootfs, the kept /etc/config). The NDP relay
deletes still run every time; everything else runs once, behind the marker luci.mu300.defaults written last in the
kept configuration. "Only when unset" could not tell a choice from a default: mediaurlbase and lang are always set
before it runs, and an unset wan.ipv6 is OpenWrt's own 'extend' (final review I3, ruling R42's premise).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
mu300-update keeps both: notice and the extras in its help and usage, the slot-aware boot next to the extras'
install and adopt. make-release.sh audits the vpn extra and the sdcard and linux-slot features of every kernel
bundle. The Magisk installer's report says that the VPN engines are the vpn extra and how to add them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
The panel's rndis became the function list "rndis" alone, so a kernel without f_rndis bound a gadget with no
network function, boot after boot. It is now "rndis ncm ecm": RNDIS still wins and is still the one network function
with the console when it can be made (K6), and the applied marker names the function that was made (final review I2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
- mu300-vpn ensure_engines: with KILL_SWITCH=1 only the forward part of the kill switch is up during adopt/install
(clients blocked, the device may download); a failure leaves the full kill switch up. Before, run exited before
the kill switch and forwarded traffic went out unprotected, and a kill switch left from an earlier run blocked
the download for good. An adopt that leaves no usable engine now falls through to install.
- mu300-extra remove vpn refuses while ENABLE=1 unless --force.
- extra_put recovers a swap cut off between its two renames; android-install's keep step clears a leftover
extra/vpn before the rename; extra_desc says about 40 MB like the installers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Task 34 review I1, I2 and R38 (K30, K37).
- 91-mu300-luci no longer sets dhcp.lan.ndp/dhcp.wan.ndp to relay and deletes any earlier ndp or ndproxy_routing:
odhcpd's NDP relay pinned every br-lan neighbour entry, which a LAN host can spoof for any address, even
off-prefix, as a /128 to br-lan. NAT66 sends every client out under the router's own address, so the carrier
never needs NDP for a client. RA and DHCPv6 relay stay.
- ndp-learn routes the bearer's /64 to br-lan at metric 128, below the carrier RA's metric-256 route on sipa_eth0,
so NAT66 replies reach the clients; a metric-1024 route from an earlier ndp-learn is removed.
- The fork's fixed ULA fd66:1126:7956::/48 is gone: OpenWrt keeps its own random RFC 4193 prefix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
README and docs/BUILD.md describe openwrt-luci (the panel, MU300_SYSTEM, MU300_LUCI_THEME_APK, po2lmo, luci-i18n),
credit kanoqwq and eamonxg; BUILD.md's RNDIS line, upstream/README.md's mobile-data line and the app README's
stale TF sentences are corrected; the SMS pool's sync behaviour is documented; tests/README.md gets the
test_early_dhcp row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Security review of the K37 port (kanoqwq/clean-tf-7.2 cd4fb28, 89b376d): the fork pinned a /128 to br-lan for
every global address in br-lan's neighbour table. Any LAN client can put any address there with a spoofed
neighbour advertisement, so it could pin another client's address, the router's own or an internet host's (a
DNS server) to br-lan: a route hijack. The pins were "a small latency optimisation" beside the /64 route, which
does the work, so they are left out (spec K37 says so) rather than given MAC binding, ageing and a cap.
What remains takes no LAN input: the /64 comes from the kernel's own global unicast address on sipa_eth0
(2000::/3 only), and the stray host routes removed from sipa_eth0 must be plain IPv6 addresses (hex and colons:
nothing ip reads as an option) inside the /64, never the subnet-router anycast. ndp-learn --once runs one round
for the tests: hostile neighbour entries (off-prefix, the router's own, anycast, link-local, multicast,
malformed) give no route and no proxy entry; hostile route lines never reach ip's arguments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
install.sh and install.ps1 ask whether to install the vpn extra (default no: a system without VPN does not carry
120 MB of engines). It comes from the same release download and SHA256SUMS, or tools/make-extra.sh in --build
mode, and android-install.sh unpacks every pushed mu300-extra-<name>.tar.gz into extra/<name> - offline. An update
of a system whose vpn.conf says ENABLE=1 and whose image carries the engines keeps them as the vpn extra. Turkish
and Chinese texts; README, BUILD.md and tests/README.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
* init: the eMMC serial only from androidboot.emmcid. The /sys CID fallback ran before the modules that find the
eMMC, so it would have come and gone between boots; without the argument the identity is the serial number alone.
An emmcid without a serial number no longer gives "MU300LINUX--<emmc>".
* mu300-update: fetch_stdout retries only a failed connection (curl 6 7 35 52 56, GNU wget 4). A timeout (28) had
been retried by curl already; four more rounds held "check" for half an hour. A 404 through wget is not retried.
* mu300-at: a test of the loop itself (a writable directory, a dead owner's lock that cannot be removed: "busy").
* build-wlan.sh: a Wi-Fi patch either applies or is applied already, as in upstream/build.sh (it was `|| true`).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
A device restored from another's backup has its androidboot.serialno, and with it the same USB serial number and
host MAC: macOS gave the one interface to whichever came last (an F50 and its clone on one Mac). The identity is now
serial number + eMMC serial (androidboot.emmcid, or the product serial in the eMMC's CID). For every device: each
host sees a new adapter once after the update (macOS sets it up by itself; Windows may ask the network type again),
written in FINDINGS 33i. Measured: U30 Air (7.2.9) MU300LINUX-323960377386-203edc81, host 02:50:bb:7e:78:02, the Mac
had an address 45 s after the reboot; F50 #1 (6.18, from its card) MU300LINUX-324950664950-2128e853,
02:50:d0:ca:77:02, 48 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn