Commit Graph
319 Commits
Author SHA1 Message Date
Abdurrahman Kaan DikeçandClaude Opus 5.5 d45cd211f7 U30 SAE offload: a hotspot that cannot start goes back to WPA2, and what the offload really is
A BSS with u30_sae_offload=1 that could not start stayed down at every boot: after
mu300-update (it keeps /etc/config and replaces the packages, and the stock wpad refuses
a configuration with a key it does not know), when the firmware refuses the vendor
command, or in a mode the patch rejects. On a device reached only over its hotspot that
left USB as the only way in.

openwrt-wifi-sae-guard does nothing unless a wifi-iface carries the option. Before the
first wifi up (mu300-hw) it looks whether the installed hostapd has the option; about two
minutes after boot (mu300-post, after its retry) whether the access point is ENABLED. If
not, the BSS becomes psk2 with the same passphrase, the file as it was is kept in
/etc/mu300/wireless.sae-offload, and mu300-wifi logs one error line. A hotspot that is
off on purpose (disabled, Wi-Fi client, scan mode, the Wi-Fi key) is left alone.

Review, in docs/U30AIR-SAE.md and FINDINGS 80: the driver sends the firmware the
passphrase only (the group is parsed and never counted, an ACT of 0xffffffff is its
"not set"), the gate is the option plus the firmware's soft-AP WPA3 capability and not
the device, which kernels have run it (7.2.9), where the passphrase and the PMK travel,
what hostapd no longer does. A probe for the open PMK-provenance finding in the handoff.
The wiki says the hotspot is WPA2.

Tests: the guard under dash, bash and busybox ash with stub uci/ubus; with
MU300_WRT_IMAGE the hostapd configuration wifi-scripts write for the opt-in and for the
fallback (the fallback is the stock WPA2 configuration).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 09:57:35 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 3ec2539226 Merge origin/main into pr74-rebased (FINDINGS: the SAE section becomes 80)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 09:25:52 +03:00
KAAN DIKEC 998d54d658 Merge pull request #203 from dikeckaan/issue-102-sgm41513
mainline: the U30 Air's charger may be an SGM41513 at 0x1a (issue #102)
2026-10-13 09:17:51 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 26656a51f9 Merge origin/main into sms-forward-answer-rule (FINDINGS: this section becomes 58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 08:56:12 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 70f9673405 SMS webhook answer check: show less of an answer, a narrower rule, a gate on the panel's test
Whoever may set the webhook's address can point it at something only the device reaches; with the answer check a
test then said something about that reply. Held to what a status check needs:

- the log shows the value found only when it is a whole number (16 digits at most) or a bare true, false, null;
  anything else is "the service answered another KEY", without the value
- the rule: KEY a name (letters, digits, _), VALUE a whole number or 1 to 16 lowercase letters; only a top-level
  scalar is compared, an object or a list under the key is no value
- one message, "no KEY in the answer", for a missing key, an empty answer, no JSON object and a key beyond the
  first 4096 bytes
- the panel's "Send test" is refused when another was started under 5 s ago (mu300-sms-forward test-gate)

FINDINGS 58 says what remains. Tests for each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 08:38:18 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 51111af71a Merge origin/main into audio-from-e5
FINDINGS: main's 57 before this branch's 60, in the contents and in the text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 08:25:48 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 949d821129 run-dir: nothing deleted recursively and nothing decided by what was seen; the URC log root's alone; FINDINGS 60
The helper removed a foreign /run entry with rm -rf: whoever squatted the name can still write /run and
swap the entry between the look and the removal, and busybox's recursive remove walks by path. Now a
non-directory goes with rm -f --, an empty directory with rmdir, a directory with contents is moved whole
into a directory made for it on the spot (mkdir: ours and 0700, or nothing moves), and the check runs
again at the end. A caller who is not the owner never creates the directory. Tests: the entry swapped for
a symlink after the look, for each kind seen first; a foreign directory kept whole.
mu300-atd: /run/mu300-at/urc 0700 - with caller id on, every ring writes the caller's number there.
mu300-voice: on a kernel without the audio drivers it says so instead of "run mu300-audio-dsp load".
FINDINGS 60 (the /run exposure, still open in boot/init) and what 24c measured on 2026-10-13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 08:20:52 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 d524aa38aa Merge main: FINDINGS 57 (install.ps1) before 58
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 08:18:14 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 9bf4e7b5d0 SMS forwarding: a check of the webhook's answer, and a button that clears the delivery log (#171)
A chat service answers HTTP 200 and puts its refusal in the body (errcode, code, ok), and the webhook called that
"Delivered". "The answer must contain" takes KEY=VALUE: with it, a 2xx is a delivery only when the answer is a JSON
object whose top-level KEY has that value. Empty: any 2xx, as before, and the helper is not asked for the answer.

The helper still passes on the status alone unless the caller asks in its environment; then the first 4096 bytes of
a 2xx reply go down the pipe into one awk, which prints a verdict and at most a 24-byte token of the one value.
Nothing else of an answer reaches a file, a variable or a log. Another value is retried like a 5xx; a missing key,
an empty answer or no JSON fails without a retry, since the message may have arrived. "Send test" shows the same.

forward_log_clear empties the delivery log by unlinking it, so a link at its name is never followed.

FINDINGS 58, wiki/SMS.md, README. Five messages in the 31 catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 08:17:07 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 cc9fb119c4 install.ps1: make room by shrinking userdata, as install.sh does (#32)
A 64 GB unit whose partition table a vendor firmware flash replaced by one in
which userdata fills the disk had nothing to install into, and the Windows
installer only said "a different layout". install.sh has offer_repartition
for that (the 32 GB variant); install.ps1 now has OfferRepartition, the same
steps, questions and commands: the two pieces of the GPT are copied to
work\gpt first, tools/resize-last-partition.py checks and edits them (only
the last sector of userdata, and only when userdata is the last partition),
ERASE has to be typed, the backup GPT is written before the primary, the
table is read back, and the start of userdata is cleared.

Two checks install.sh does not have: the pushed table files are compared by
SHA-256 on the device before dd writes them, and table files of an earlier
run are deleted before the table is read.

A refusal says its figures: eMMC size and sectors, where the partitions end,
what is free, what is needed and what is missing, and the tool's own reason.

The "-4 MiB" of the issue is the region arithmetic on a table that ends at
the end of the eMMC (start = the end of the disk, end = 4 MiB before it); it
has been an empty region since the fix for #65. It is a function now
(FreeRegion), tested with that layout.

Tests: tests/fakegpt.py builds the table from FINDINGS #9's figures with
userdata extended to the last usable LBA (the issue has no sectors);
test_resize_last_partition.py covers the tool, installer.Tests.ps1 runs the
whole path against a stubbed device. FINDINGS #57.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 07:51:49 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 1947354c45 mainline: the U30 Air's charger may be an SGM41513 at 0x1a (issue #102)
On the ABSSV U30 Air nothing acknowledges 0x6b under mainline, while Android and 5.4 charge it and i2cget at 0x6b
fails there on every kernel. ZTE's charger driver (sqc_bq2560x.c, the one the U30 Air's 5.4 kernel builds) reads
REG0B at the node's address and, when that fails, goes on at 0x1a, an SGM41513, keeping the client's name: all
three observations follow from a chip at 0x1a. Whether that unit has one is not measured yet.

Patch 0015 does the same for the "ti,bq2560x_chg" node: a second read at 0x1a through a client of its own, and,
when it answers, that chip's fast charge and termination current steps as ZTE's driver codes them; the precharge
current stays as the chip has it. A charger that answers at 0x6b (our SSV unit) takes none of it; the F50, with
the node and no chip, fails after two reads instead of one. A failure names both reads.

Compiled only (bq256xx_charger.o with W=1 on 6.18.56 and 7.2.10, the other patches applied); not booted.

FINDINGS 33m: the reporter's pad result, the reasoning, and what else was compared (the 1 MHz camera bus behind
"22240000.i2c ... -22", the forced command line, ZTE's 400 kHz timing, the I2C_CTL bits).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 07:41:27 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 5ebef17d9c Merge origin/main into audio-from-e5
mu300-voice: main's SIM slot (the URC log of the active SIM's channel) kept beside this branch's
root-only run directory. FINDINGS 24c keeps its place in the audio chapter: no section of main has
that number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-13 07:39:45 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 0644ee09c6 VPN page: a refused config shows its reason, and the check calls a command every module has
Found while the non-default VPN engines were run end to end on the U30 Air (the engines' own defects are in the
VPN module, mu300-linux-vpn FINDINGS 26i-26m; this is what was the page's).

* mu300-vpn ends a refused import, edit or switch with a line that says only that nothing was done ("profile not
  added", "profile ID not changed", "profile ID does not check: ..."), after the line that says why. The backend
  took the last line as the message, so every refused config read "The profile could not be added - profile not
  added". cli_message takes the line before such a closing line (never one of the CLI's notes).
* profile_check called "mu300-vpn profile check ID", which module v2.0.0 answers with its usage text: the page's
  check never worked. It calls "check ID", which every module version has.

Measured on the device with the backend in place (FINDINGS 56).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 19:14:18 +03:00
KAAN DIKEC de1b5e7fc5 Merge pull request #199 from dikeckaan/f50-modem-mainline-170
Imported Android files unreadable by the vendor daemons: the CP was never loaded (#127, #170)
2026-10-12 18:45:50 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 2fc0471655 FINDINGS 55: imported Android files nobody but root could read (#127, #135, #170)
Where 0700 came from (install.sh from a FAT/exFAT folder on macOS, measured), what each state looks like in dmesg
and in the vendor log on the F50-B (7.2.10 and 5.4.254), what the v2026.10.22 Magisk zip installs (0777
directories, files owned by uid 1000), the fix and its measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 18:15:40 +03:00
KAAN DIKEC c2774f14f9 Merge branch 'main' into sim-ui-unsupported-slot 2026-10-12 18:10:33 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 9359c1aebc Merge origin/main into sms-forward-body (FINDINGS: this section becomes 54)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 17:59:49 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 7709693484 LuCI: do not offer the internal SIM where mu300-sim does not support it (#194)
On a U30 Air the WAN page offered "Internal SIM (slot 1)". mu300-sim
supports slot 1 on the F50 only: it ignored the saved value for the
boot and every reader stayed on the external card, with no hint on any
page (the dashboard showed the other card's operator).

- dashboard-info: "sim": {slot, wanted, slot1_supported} from
  mu300-sim status --json (null without the selector). Local only, no
  AT command; it is what mu300dash sysinfo and status return.
- protocol/mu300cell.js: reads it (mu300dash sysinfo). Without slot 1
  the internal SIM is not offered; a slot 1 already saved stays listed
  as "not supported on this device" so the page shows what is saved.
  Nothing known (no panel, the call fails): both, as before.
- home.js: a "SIM source" row only when the card asked for is not the
  one in use: not supported on this device, or (F50) in use after a
  reboot. Three messages in all 31 catalogs.
- docs/SIM-SELECTION.md: devices without slot 1.

mu300-sim itself is unchanged; the U30 Air's second SIM is PR #166.

Tests: tests/test_sim_selection.py - dashboard-info with the real
mu300-sim on a fake root (U30 Air, F50, no selector, a hostile status),
mu300cell.js and home.js's paintSim under Node with LuCI faked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 17:57:07 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 8b0264b872 panel: a webhook body of the user's own for SMS forwarding (#171)
The webhook sent one of two fixed bodies (JSON or a form with sender,
time, text, device, message), which Lark/Feishu, DingTalk, WeCom, Slack,
Discord, Bark or ntfy do not accept.

- webhook_body: a template with {sender} {time} {text} {device}
  {message}. The type (json, form, and now text) is the Content-Type and
  decides how each value is written: the inside of a JSON string,
  percent-encoded, or as it is. An empty body is the standard one,
  unchanged; for text that is the message alone.
- mu300-sms-forward: one awk function (fill) for the message template
  and the body. Template and values reach awk in its environment and
  are only copied: no shell, no eval, no awk -v, one pass. A filled-in
  body over 64 KiB is refused and not retried.
- unisoc-modem/forward: 2000 bytes, no control character but newline and
  tab. The body comes back to the page (a template, not a secret); the
  address and the headers still never do.
- esc_tpl: backslashes doubled by hand. With busybox awk the gsub
  replacement wrote one backslash, so a template's \n or \" was stored
  bare and read back as an escape (also true of the message template
  before this).
- forward.js: the "Plain text" type and the "Custom body" field; four
  messages in all 31 catalogs.

Tests: tests/test_sms_forward.py (hostile sender and text through each
type, the standard body unchanged, Send test, the size limit, the
adapter round trip through the forwarder, refusals), also run under
busybox ash with busybox as awk. FINDINGS 54, README, wiki/SMS.md.

Not in this change: reading a service's own error out of an HTTP 200
answer, and a button to clear the delivery log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 17:48:37 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 eda6f421f1 panel: decode a carrier name the modem gives as UCS2 hex under another character set (#174)
A user's panel showed "Carrier: 4E2D56FD8054901A" with PLMN 46001: the
long name in UCS2, as hex, from a modem whose AT+CSCS? says "HEX". The
collector decoded such a name only when the character set was UCS2.

cops_fragment now also decodes under any other character set (or none
read) when the text cannot reasonably be a name: two code units or
more, not all decimal digits, valid UTF-16, no control, private-use or
non-character code point. Anything else stays the text the modem gave;
with the character set UCS2 nothing changes. No carrier or PLMN is
hard-coded. The per-PLMN runtime cache keeps the modem's line, not the
decoded name, so there is nothing to clear.

Tests: OperatorNameHex in tests/test_dashboard_info.py (the reported
case, each character set, names that must stay as they are).
FINDINGS 53.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 17:29:46 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 81e838ec38 Merge origin/main into lock-reset-verified (FINDINGS: this section becomes 52)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 16:22:05 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 de62518ab8 FINDINGS: contents rows 45-51 once each, in order
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 16:10:45 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 fa7a6ef5b2 Merge origin/main into sms-direct-cmt (FINDINGS: this section becomes 51)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 16:10:21 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 e4a7587a36 FINDINGS: contents rows 45-50 in order
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 15:59:28 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 2f2c8e3bc3 Merge origin/main into installer-io-guards (FINDINGS: this section becomes 50)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 15:55:02 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 798c7532f4 Merge origin/main into panel-own-number (FINDINGS: the own-number section becomes 49)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 15:44:32 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 376451c5ee SMS direct delivery: no header or text in the log, no links followed; FINDINGS 48
mu300-atd logs one fixed word per +CMT frame ("+CMT (PDU spooled)" /
"+CMT (not spooled)"), never the header (the sender, in text mode) nor
the second line, which the spooler takes only as hexadecimal; a text-mode
frame reaches nothing. import-pdu, the spooler and the daemon's spool loop
refuse symbolic links and directories that are not ours (own_dir/own_file,
the lock rule of mu300-update), make the directories mode 700 and write
through mktemp and rename only. The periodic CNMI check looks at mt alone
(the U30 Air answers 3,2,1,0,1 for 3,2,2,0,1), each acknowledged message
is logged. Tests for the links and the text-mode frame; FINDINGS 48 with
the device run (direct and forced fallback) and why Ubuntu keeps polling.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 15:34:11 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 5a5686c211 thermal: F50-B device test in FINDINGS 48; thermal-guard skips the cdevK_* files
On the board the glob cdevK* also met cdev0_trip_point and cdev0_weight (regular files): skipped now, only the
links are compared. The device test: soc-thmzone registered with its trips and the three cpufreq cooling devices,
the kernel throttled at 85.3 C under yes on 8 cores (states 1/1/1, scaling_max_freq reading the QoS cap) while
thermal-guard only watched; rmmod, the extra-modules load path, the guard capping alone and the release userspace
restored.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 15:27:45 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 dbd231b3e4 docs: FINDINGS 48, the verified lock reset; one log line less
The cleared-settings log line is for an interrupted reset's cleanup
only, not for the commit of a reset that went through.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 15:18:23 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 1e129cd9f9 installers: boot image read back from the medium, bounded SD-card stages, no re-run in the same boot (FINDINGS 48)
Three guards taken from kanoqwq's TF installer, in our shape (one android-install.sh,
no slot layout):

1. Every install reads the written boot image back from the partition with the page
   cache dropped - exactly its length in whole 4096-byte blocks, one dd into a file
   whose status counts - and compares the sha256; a difference never arms Linux. The
   Magisk installer's boot_readback (after write_boot's own check, the AVB footer
   too) says which step failed; install.sh/install.ps1 keep their message.
2. In SD mode android-install.sh runs the format, each unpack, the removal of the old
   system and a final flush through stage_run: the command in a session of its own
   (setsid), polled, never waited for; ended at its limit or after 120 s without
   movement of the card's completion counters (/sys/class/block/DISK/stat). On a
   timeout the group gets TERM/KILL, nothing more is written (no sync, no unmount),
   the user is told to reboot Android, and the OK line never comes.
3. The timeout leaves mu300-install.stalled (boot_id, stage, reason) in the lock dir
   (/data/local/tmp; /data/adb for the zip). Both the device script and the Magisk
   installer refuse a run in the same Android boot, remove a stale lock, and a clean
   run leaves none. The zip keeps the device log in /data/adb on failure;
   install.ps1 now writes work/device-install.log like install.sh.

Tests: test_android_install.Stages, test_magisk_installer.Install (a dd stub whose
read-back differs or fails; the lock; the lock dir; the kept log); fakedevice gets a
boot id. tr/zh lines for the three new messages. FINDINGS 48 with the device checks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 14:46:32 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 53234365c6 thermal: a handoff that does not fail open, a read-only Thermal card, FINDINGS 48
Review of the first commit: one flaky sensor made the whole virtual zone unreadable while its cooling maps stayed
bound, and thermal-guard trusted the bindings alone - nothing would have throttled. mu300_thermal now reports the
hottest of the zones that read and fails only when none does (the core then skips the update and the sysfs temp
read fails). thermal-guard hands over only when the bound zone also has a passive trip at or below HOT and reads a
number within 15 C of the hottest reading of the round; a missing, non-numeric or stale reading, or trips above
HOT, keep it capping. Tests for each, for mainline without the zone, and for the 105 C power-off under native
cooling.

System > CPU gets a read-only Thermal card from standard thermal sysfs (mu300-cpu status --json: "thermal", every
zone's type, temperature, trips and bound cooling devices with their states), in the 31 catalogs. FINDINGS 48 has
the device tree facts, the module-or-DT decision and its evidence, how the kernel's QoS cap and the profile ceiling
compose, and the handoff rules; the upstream README, the panel wiki page and tests/README follow.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 14:45:50 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 7ff2e79565 panel: show the SIM's own number (CNUM, else the IMS identity) on full rounds only
The home page's SIM block gains an "Own number" row under ICCID, hidden
unless there is one and masked like the IMSI until "Show SIM identifiers".
The collector asks AT+CNUM on full rounds only and, when the SIM carries no
number, the IMS public identity (AT+SPPAURI?: a tel: URI, else a sip: user
part that is an international number; a bare numeric user part is the IMSI
and is not taken). An empty answer is asked again next full round (IMS
registers after the SIM is read at boot), a number found is kept in RAM
(/var/run/unisoc-modem/own-number, root only) for the boot. Never in the
fast tier, never in the 6 h sim.json on flash, never in a log; the field
rides the read-only status method. Ported from kanoqwq@0d93695 as decided
in docs/superpowers/reviews/2026-10-11-kano-clean-tf-7.2.md.

"Own number" in all 31 catalogs (tools/luci-i18n.py update). Tests in
tests/test_dashboard_info.py (collector under every shell, home.js's
paintIdent under Node). FINDINGS 48. Device test on the U30 Air pending.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 14:26:24 +03:00
KAAN DIKEC d9ec3c93d7 Merge pull request #184 from dikeckaan/mmc1-spurious-cmd-irq-181
mainline: no spurious command interrupt from the F50's empty SD slot (#181)
2026-10-12 12:15:22 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 1840127415 mainline: no spurious command interrupt from the F50's empty SD slot (#181)
The slot's card detect is line 35 of the EIC sync controller, which has six banks in the vendor DTB; mainline's
gpio-eic-sprd maps three (SPRD_EIC_MAX_BANK 3), so the lookup deferred for ever and the port fell back to polling
the slot. With SDHCI_QUIRK_BROKEN_CARD_DETECTION every poll initialised a card that was not there, and the host's
late command interrupts came as "Got command interrupt 0x00000001 even though no command operation was in
progress" with a register dump each. Patch 0014 maps eight banks (Unisoc's limit); the card detect is found at
the first parse and the core takes its interrupt instead of polling. Same file in 6.18.56 and 7.2.10.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 11:55:25 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 f9c03901af sms (Ubuntu): one AT transaction and the SMSC refresh, as on OpenWrt (#176); zip log line true when the images' password is applied
The Ubuntu-side `sms send` had its own send path and none of what #177 gave mu300-sms. Now a send holds mu300-at's
client lock across the whole conversation (the same at_lock/at_unlock as mu300-sms, MU300_AT_LOCK_HELD for the calls
under it; taken only when the daemon's fifo is there, since without it mu300-at opens the tty itself and takes no
lock either) and writes the modem's own SMSC back unchanged first (the same smsc_refresh: AT+CSCA? parsed strictly,
AT+CSCA="<same>",<type>, CSCS untouched; a failed query or a refused write is logged and the send goes on). The
submission is the one request AT+CMGS=N<CR>PDU<Ctrl-Z> that mu300-at admits for exactly this: as two requests, the
"> " prompt has no line ending, so the daemon never saw an answer to AT+CMGS=N (its whole 10 s), counted a silent
command and drained up to 25 s before the PDU, and another client could get in between.

tools/android-install.sh: with the accounts carried over and PW_SET=1 (or a hash) the system's own account gets the
images' password again below, so "kept the accounts and passwords of the previous <os>" was untrue; the line now
says the other accounts were kept and what <user>'s password is (the images' own again: none, until one is set; or
the one the installer chose).

Tests: test_sms_pool.Send (the four commands in order under one lock holder, released on success and refusal; the
SMSC left alone when not given or refused; a live holder is busy with nothing sent, a dead one taken over; no fifo,
no lock), test_android_install (the log line per case, and an update with PW_SET=1 and a hash keeping a local
account). docs/FINDINGS.md 46: the Ubuntu side.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 11:50:36 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 43a09bb9e2 magisk installer: fixed default passwords - ubuntu/ubuntu, OpenWrt root without one (#167)
A system the Magisk zip installed next to one already on the disk got a random
12-character password (build_password, KEEP_PW=0 without MU300_PASSWORD) that was
written only to /data/adb/mu300-linux-password.txt, root-only and replaced by every
later zip, so the user never saw it and the device offered a system nobody could log
in to (F50-B: Ubuntu first, openwrt-luci and openwrt added later). The one-boot
image's root::: was never the cause: the installer always replaced it.

Decision: a system the zip installs gets the images' well-known password - Ubuntu's
user ubuntu has the password ubuntu, OpenWrt's root has none (the empty field stock
OpenWrt ships with; dropbear and LuCI let root in until one is set with passwd or in
LuCI). No random password any more, for a first install or an added system. A trusted
MU300_PASSWORD still wins, hashed as before and never shown or written down. An update
of a system with accounts of its own keeps carrying them over (KEEP_PW).

- mu300-install.sh: build_password hashes "ubuntu" for Ubuntu (fresh salt), leaves the
  hash empty for OpenWrt, and writes PW_SET=1 into mu300-install.env; the plan, the
  closing message and the note in the password file say which account and password
  work, in en/tr/zh; the file holds no secret any more
- android-install.sh: PW_SET=1 puts PWHASH in even when empty; the refusal of an
  "empty or default" password is gone (those are the intended accounts now) and the
  accounts-from-image mark is removed on every path
- tests: the images' password for a first install, a wipe and a system added beside
  another (Ubuntu and OpenWrt); MU300_PASSWORD used, hashed and not shown; an update
  kept; the device-side paths with and without PW_SET
- docs: FINDINGS 47, README, wiki/Installation.md, the site's install page (en/tr/zh)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 11:22:32 +03:00
KAAN DIKEC c0024a1872 Merge pull request #164 from dikeckaan/i2c6-pinctrl-102
mainline: the UMS9620 pin controller, and the U30 Air's i2c6 pads (issue #102)
2026-10-12 10:54:47 +03:00
KAAN DIKEC 40d0e7e12f Merge pull request #173 from Sheldontao/trial-arming-warns
mu300-update: no promise of a reboot that starts Android
2026-10-12 10:53:27 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 18384ca88d Merge origin/main into i2c6-pinctrl-102 (FINDINGS: both sides kept)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 10:45:00 +03:00
Snrat 66d0670206 Record USB-captured r9 live-add rejection and recovery 2026-10-12 15:03:45 +08:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 ff4fb50689 sms: one AT transaction per send, same-value SMSC refresh, panel result survives rpcd's timeout (#176)
On China Broadnet every send from the panel failed with the modem's IMS stack saying
"SMS FAILED: CODE:600 REASON:Busy Everywhere", and the operations log only had "sms_send - killed".
The reporter's one-shot test through the same daemon succeeded with two changes made together:
the modem's own SMSC queried and written back unchanged (AT+CSCA? -> AT+CSCA="<same>",<type>, in
the active CSCS representation), and the whole send under one acquisition of mu300-at's client
mutex. Both are now in mu300-sms's send (docs/FINDINGS.md 46).

- mu300-sms: at_lock/at_unlock take /run/mu300-at/lock once for the SMSC refresh, AT+CMGF=0 and
  AT+CMGS (dead holders taken over, MU300_AT_LOCK_WAIT seconds of the clock, "mu300-at: busy" when
  giving up); smsc_refresh parses "[+0-9A-Fa-f]+",type strictly, writes the same value back, never
  another SMSC, never touches CSCS; a failed/malformed query or a refused write is logged and the
  send goes on. The lock is released before the pool lock, as the sync/send ordering rule needs.
- mu300-at: MU300_AT_LOCK_HELD=<pid> borrows the lock only when lock/pid names that live process;
  the borrowed lock is not removed on exit. Anything else and the lock is taken as before.
- mu300-atd: the combined CMGS<CR>PDU<Ctrl-Z> write stays; why is documented there and in FINDINGS 46.
- mu300dash: sms_send validates and starts the send detached (setsid mu300dash sms-job, the at_job
  pattern) instead of running it inside the 30 s rpcd call; the new sms_job method says running or
  the verdict sms_send used to give (ok / busy / Sending failed + detail) with done:1; a second send
  while one runs is busy, never a second submission; a job that died without a result says so and
  is not resent; the job writes "sms_send result N.NNs ok|error|busy" to the operations log. The
  ACL gets sms_job (write).
- sms.js / common.js: the page follows the job every second (watchJob, also after a reload) and
  shows the same toasts as before.
- tests: test_sms_pool (SMSC refresh HEX/plain preserved, skipped/refused cases, one lock across
  the four commands, busy holder, dead holder, the panel's job flow on the real mu300-sms),
  test_panel_resilience (the borrowed lock in mu300-at; the send job end to end), and
  test_mu300dash_security (sms_send tests drive the job; sms_job in the method and ACL inventories).

Not device-tested (the boards are in use): see the PR for the commands to run.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 10:00:58 +03:00
Snrat d1a15c2a27 Record r9 U30 hardware configuration and SAE connection checks 2026-10-12 12:38:16 +08:00
Sheldonato d9493f5d1d mu300-update: a boot image written while Android is the default boot says so
An update on a device whose default boot is Android cannot try the boot image it just wrote: every Linux
boot there is a one-shot trial armed from Android (mu300-linux, the panel), and a plain reboot goes to
Android by itself. `mu300-next-boot --trial` answered "default boot is not linux, nothing to do" and
exited 0, and `unlock_for_trial` threw that away - so the update ended with "Reboot to start the updated
openwrt-luci" and the reboot started Android (U30 Air, v2026.10.17 -> v2026.10.20, 2026-10-12). The image
and the systems were fine; the reboot after it was not what anything had said it would be.

- `mu300-next-boot --trial` exits 3 when there is nothing to arm, and 1 when this slot's block cannot be
  rebuilt and the initramfs' own one-shot block goes in instead (one boot, not N, FINDINGS 32) - that
  arm was a silent success before. `--rearm` keeps exit 0: there, "nothing to do" is normal.
- `mu300-update` says both (`unlock_for_trial`) and keeps going either way: the image is written by then,
  and a warning is no reason to roll it back.
- What `apply`, `boot`, `kernel`, `rollback` and `rollback-boot` print last is how to start Linux by hand
  (`mu300-linux`) and keep it (`mu300-next-boot linux`) when a reboot goes to Android.
- `docs/FINDINGS.md` 17: what that device's init log showed (`stage=misc-restored`, no
  `stage=default-boot-linux`, `.mu300/boot-tries` 0) and why nothing was broken.

Tests: `test_device_scripts.py` (`NextBoot`: the two states the arming can be in) and `test_update.py`
(`FromStock`: what the update reports for each, and the line the subcommands end with).
2026-10-12 11:14:30 +08:00
Snrat 5ccda8a093 Reject unsupported multi-BSS SAE configurations before AP setup 2026-10-12 10:43:19 +08:00
Snrat 3a593a8f17 Merge maintainer SAE review and current main 2026-10-12 10:36:50 +08:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 cd9615edd1 U30 SAE offload: documented as an opt-in experiment, what the images carry, FINDINGS 44
Review notes on Snrat's #74 (the merge with main is the commit before this one; it merged clean):

- docs/U30AIR-SAE.md says up front what the published images carry (the driver's log removals only) and that the
  hostapd side is a build recipe that does nothing until u30_sae_offload=1 is set; the PMK-provenance finding
  stays open and is stated as the reason the mode is experimental, with the threat model it does not cover.
- FINDINGS 44: the SC2355 AP-side SAE facts (the vendor command and the trailing element), the trust boundary,
  the log leaks the stock driver had, and this round's device results: the rebuilt 7.2.9 module leaks nothing,
  the r8 wpad pair with the option off is the stock WPA2 path (client back in 32 s, VPN up), and a second BSS
  with the option added by `wifi reload` took the radio down - to be understood before anyone enables it on a
  device reachable only over its own hotspot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 01:41:11 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 b8e0abc347 Merge main into rmmod-timer-146 (FINDINGS: rmmod section becomes 45)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 01:14:44 +03:00
KAAN DIKEC ec8acedace Merge pull request #158 from dikeckaan/pr72-rebased
F50 internal/external SIM selection and slot 1 data routing (PR #72 rebased)
2026-10-12 00:57:23 +03:00
KAAN DIKEC 5a68c3fb47 Merge pull request #160 from dikeckaan/fix-103-xfrm-netns
kernel 5.4: enable_xfrm_fragment sysctl registered per network namespace (fixes #103 netns teardown panic)
2026-10-12 00:55:29 +03:00
Abdurrahman Kaan DikeçandClaude Fable 5.1 21e2d23b8b mainline: the UMS9620 pin controller, and the U30 Air's i2c6 pads (issue #102)
Patch 0013 ports Unisoc's pinctrl-sprd-qogirn6pro.c (GPL-2.0, 511 pins) onto mainline's pinctrl-sprd core,
which knew the SC9860 only: the core takes the common/misc register offsets from the SoC driver and the pin
encoding grows to Unisoc's. It binds to the vendor DTB's /soc/aon/pinctrl@2e0000 as it is (the board's states
are hogs not named "default", so nothing is applied at probe) and brings /sys/kernel/debug/pinctrl.

The ABSSV U30 Air (#102): under mainline nothing on I2C bus 6 answers, the charger never binds; Android and
5.4 drive the bus. No DT group names SCL6/SDA6 and 5.4 does not touch them either, so the pads are as LK left
them. The driver logs both pads' registers and puts them on func1 (the I2C) when they are not;
pinctrl_sprd_qogirn6pro.i2c6_fixup=0 only logs. FINDINGS 33m has the register addresses for a devmem
comparison between 7.2 and 5.4 and what else differs between the two i2c drivers.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-12 00:55:23 +03:00