Commit Graph
31 Commits
Author SHA1 Message Date
kanoqwq f09267150b fix: backport upstream Wi-Fi and installer stability fixes
Select reviewed fixes from upstream main a5da67f: WCN power serialization and PCIe cleanup (1f6e825, 1196cf2), firmware log policy (f0323bf), AP DNS ordering (f4f5e76), pristine legacy driver rebuilds (b0e9595), bounded eMMC probes and RNDIS address handoff (bde23d0, 486856c). Preserve TF deployment, USB recovery, IPv6 software checksums and latency tuning; do not import the power/VPN redesign.

Validation: 176 dash/bash Python tests; 417 PowerShell checks; Wi-Fi/WCN modules built for 6.18.54 and 7.2.8 with matching vermagic and build manifests; legacy patch applicability verified. No device deployment or ZIP rebuild.
2026-10-10 01:03:18 +08:00
kanoqwq cd4fb28ba5 openwrt: restore fast F50 boot, modem, Wi-Fi LED and SMS platform 2026-10-01 01:19:35 +08:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 fa13a3676f Windows installs push LF scripts; the AP lists its stations; stale trial guards disarmed; mu300-nfc on|off
- Windows (fixes #7): a clone with core.autocrlf=true checked the device scripts out as CRLF, and Android's sh
  ran none of android-install.sh ("unexpected 'do'"), with an empty log. .gitattributes keeps text LF on every
  system; install.ps1 pushes scripts through PushUnix, and build-boot-image.py writes init, ueventd-perms.sh and
  the module orders with LF, for clones made before. Checked on Windows: 5 of 5 scripts CRLF on main, 0 now.
- Wi-Fi (#8): the vendor driver had no dump_station, so iw, iwinfo assoclist and LuCI's Associated Stations
  were empty although hostapd had the clients; nor get_channel ("Channel: 0"). dump_station lists the firmware's
  peer table entries of the AP (address only: the firmware gives no signal or counters), get_channel returns
  what cfg80211 kept from start_ap. Mainline copy and a 5.4 patch; the channel checked on the F50 under 6.18.
- A U30 Air restarted every ten minutes after mu300-linux from Android: boot_b's device segment, which
  mu300-update keeps, still held an old experiment's --trial-guard. The generic segment carries an empty guard
  file that replaces it; an experiment's guard goes last, into a segment of its own. Checked on the U30 Air.
- mu300-nfc on|off: ZTE's NFC switch is bit 5 of the tag's configuration byte 0x3bf (found by reading the chip
  with the switch on and off); set, phones get nothing. mu300-nfc says so. Checked on the U30 Air.
- Tests: CRLF inputs, no plain adb push of scripts, the empty guard, NFC on/off. FINDINGS 33g, 33h.

Fixes #7

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-29 00:32:03 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 362f27eba6 ZTE U30 Air support: same kernel, its own charger modules; init finds misc and boot_b after the eMMC driver loads
The U30 Air is the F50's board (ums9620_2h10_feimao) with a battery and ZTE's SQC charger stack. On the F50 set of
modules its charger manager never probed and USB stayed down. Now:
- kernel/u30air.fragment + build-u30air.sh: the stock U30 Air config differences, built as modules next to the
  MU300 build (the Image stays the same; vmlinux exports are compared), keeping only the 15 modules that differ
- boot/module-order-u30air.txt and --device-modules/--device in build-boot-image.py; init picks the set from
  /etc/mu300-device or the device tree (charger_policy_service), only for the kernel it was built for
- init looked for misc and boot_b before the vendor modules loaded sdhci-sprd: the lookup waited 20 s for
  nothing and slot a was never restored, and there was no persistent log. It now runs after the modules.
- installers and uninstallers accept the U30 Air; tools/backup-full.sh backs up a whole device before a port

Tested on a U30 Air (5.4, Ubuntu 24.04): 93/93 modules, USB network, Wi-Fi AP, Bluetooth, battery and charger
in /sys/class/power_supply, system "running" with no failed units, misc restored at 12 s.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-28 00:18:23 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 de11a7e0bc 5.4: drop the unreadable base_addr attributes of the modem stack (about 10 s of boot in warnings)
The same fix as the mainline modules (FINDINGS 31g), as kernel/patches/sipc-base-addr-attr.patch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-27 16:23:29 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 2cff7b0519 wcn pcie: a Wi-Fi card that is late at boot no longer panics the board (5.4 and mainline)
A PCIe scan that timed out removed the half-probed card, and sprd_pcie_remove() completed remove_done, which only
sprd_pcie_remove_card() initialises: an oops in __wake_up_locked and a panic, back to Android (caught while
rebooting OpenWrt on 5.4 for v2026.09.29). remove_done is initialised before each scan, remove guards against a
probe that set no data, and a timed-out scan is retried once.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-27 15:38:39 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 eb5336875c 5.4: the IPA delegate fix of the mainline modules (OpenWrt crashed on some boots)
Testing v2026.09.29 caught OpenWrt on 5.4 falling back to Android: "Kernel panic - not syncing: CFI failure
(target: 0x0)" in dele-4-5, the delegate's connection thread - FINDINGS 31f, which was fixed only in the mainline
copy of the driver. The 5.4 tree gets the same change as kernel/patches/sipa-delegate-einprogress.patch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-27 14:24:21 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 abe1950ada 7.2 as a third kernel: installer, mu300-update and releases; the two driver fixes in 5.4 too
- installer choice 3 installs the newest stable mainline kernel (7.2.8 for now) the way 6.18 is installed;
  mu300-update kernel 5.4|6.18|7.2; the release carries mu300-kernel-7.2.tar.gz next to the 6.18 one
- upstream builds keep each kernel's outputs apart: OUTDIR=out-7.2 for build.sh/build-modules.sh,
  MU300_UPSTREAM_OUT for make-bundle.sh; make-release.sh packs both and checks each build's version
- 7.x: trusty and six Mali workqueues declare WQ_PERCPU (7.x warns about queues that say neither); a Mali queue
  name within the 31 characters
- 5.4: the Wi-Fi complock (irqsave) and Bluetooth tty port fixes as kernel/patches, applied by build-all.sh

Tested on the device: 7.2.8 on OpenWrt and Ubuntu with an empty dmesg, mobile data, hotspot, Bluetooth, GPU.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-27 13:34:56 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 4aaa21fc03 gadget: NCM by default; RNDIS only on request, because macOS takes configuration 1 too
With RNDIS in configuration 1 and NCM in configuration 2, macOS chose configuration 1 (measured:
kUSBCurrentConfiguration 1), found no driver for the RNDIS control interface and had no network. Windows only
ever uses configuration 1 as well, so no order serves both. The single NCM + ACM configuration does: measured
from boot on macOS (AppleUSBNCMControl/Data, DHCP, SSH and internet over USB, no "inactive" link as with ECM)
and live on Windows 11 (UsbNcm.sys). MU300_USBNET="rndis ncm" keeps the RNDIS layout for Windows without NCM.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 15:53:47 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 261e1ba0c7 USB network without a driver on Windows: NCM, and RNDIS once the kernel has it
The gadget offered ECM, for which Windows has no driver. Now:
* NCM replaces ECM as the network function (ECM stays the fallback, MU300_USBNET=ecm restores the old gadget),
  and the device class is IAD (0xEF/2/1) so Windows' composite driver keeps each function's interfaces together.
  Tested live on the device: Windows 11 bound its inbox UsbNcm.sys, took a DHCP lease and reached the device and
  the internet; the ACM console stayed COM4.
* RNDIS for every Windows from 7 on, in configuration 1 with MS OS descriptors (compatible ID RNDIS/5162001) -
  Windows only ever uses the first configuration - and NCM in configuration 2, which Linux and macOS take, as with
  g_ether. boot/init renames the netdevs after binding (RNDIS registers first and would take usb0): usb0 stays
  the CDC link, rndis0 joins br-lan too.
  This needs CONFIG_USB_CONFIGFS_RNDIS, now in the kernel fragment. Unisoc's sprd_usb_f_rndis module cannot stand
  in: with CONFIG_USB_PAM it hands the data path to the IPA on connect, so its netdev never passes a packet
  (measured: Windows bound it, rndis0 stayed at 0/0). Without the stock function boot/init builds the single NCM
  configuration, as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 14:58:24 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 4a1dfef098 audio: fix shm_shift, which had been silently doing nothing
Two mistakes stacked, and each one hid the other.

The patch was first written into audio_mem_whale2_parse_dt. This board's node is
compatible = "unisoc,audio-mem-sharkl5", so the code compiled, loaded, accepted
its module parameter and never ran. Moving it to the sharkl5 parser was the
obvious fix and it still did nothing, because of the second one:
build-audio.sh guarded the patch with `grep -q shm_shift`, and the first version
had already put that string in the tree - so the corrected patch was never
applied. The module kept the pr_info string from the old build, which made
`strings audio_mem.ko` look right while the call sat in the wrong function.

Then the regenerated patch would not compile: it had been diffed against a tree
that already carried the draft, so the declaration came out as a *context* line
and only the helper was an addition - putting the helper above the variable it
uses. It is now generated against pristine + audio-mem-fixed-region, which is the
base it actually builds on, and the guard keys on the function name instead of a
string an earlier version also had.

It works now: "moved the shared-memory addresses down by 0x100000, cmdaddr is now
0xaf880000", with smsg, aud-str, dsp-vbc and reg-dump following, all matching the
Moto G35's device tree.

Which turns that experiment into a clean negative. At its own addresses, its own
7 MiB region and its own shared memory, the Moto image still never answers, while
the donor image answers on the first try at this board's addresses. Whatever it
wants beyond a matching memory map, it is not the addresses.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-22 01:03:12 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 7fa8eab542 audio: an AGDSP image has its addresses built in, so make room for both layouts
Why the Moto G35 image takes this device down, from its own device tree rather
than a guess: pulled out of vendor_boot.img in the same firmware, it puts
audio-mem at 0xaf600000 and a 7 MiB DSP region at 0xaf900000, with cmdaddr
0xaf880000 - a megabyte below this board's 0xaf700000 / 0xafa00000 / 0xaf980000.
Written to the wrong base the image runs into memory belonging to something else.
Read the other way it is reassuring: the donor image answers SIPC at 0xaf980000,
so it is built for this layout and is where it should be.

CONFIG_OF_RESERVED_MEM_ADD now reserves 0xaf600000,3M;0xaf900000,7M, contiguous
to 0xb0000000 and a superset of what this board uses, so one boot image can host
either. audio-mem-shm-shift.patch adds shm_shift for the addresses that are
absolute in the device tree instead of derived from the region - ddr32_base and
dspbin_base already move everything else.

The experiment itself is inconclusive rather than negative. At its own addresses
the Moto image no longer takes the board down and ldinfo reads 0xaf900000 /
7340032, but the DSP does not answer and shm_shift is not confirmed to have
taken effect - cmdaddr still shows as 0xaf980000 in the SIPC trace. FINDINGS says
so, along with two things that cost time here: audio_mem has three DT parsers and
this board uses the sharkl5 one, so a change made in whale2's compiles, loads,
accepts its parameter and does nothing; and the boot service loads audio_mem at
startup where it is [permanent], so trying another layout needs the service
disabled and a reboot first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-22 00:38:20 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 e066a62e1e audio: enable the MCDT clock in the driver, and load the DSP profiles properly
kernel/patches/mcdt-enable-clock.patch: check_agcp_mcdt_clock() reads BIT_MCDT_EN
and, when it is clear, every MCDT accessor returns early without touching the
hardware - so MCDT gets configured into a void while setup still looks like it
worked. Nothing in the driver set writes that bit. Since the driver already holds
the regmap and knows the bit, have it enable the block it is about to program.
The write only happens when the bit is clear and the result is read back, so a
controller that genuinely cannot be enabled still reports false.

mu300-audio-dsp gains a "profiles" command. The kernel takes the DSP parameters
through request_firmware(), so tools/vbc-profile's output in /lib/firmware is all
it needs, and the select value matters: (mode << 24) | (param_id << 16) | dsp_case
does nothing visible with param_id 0, but with 0x5e - what a working device of
this family carries - the mode is copied into the DSP's shared memory at
sprd,shmaddr-dsp-vbc. The mode numbers are call scenes (Handset, Handsfree,
Headset, BTHS, ... each NB/WB/SWB/FB/VOIP); there is no media mode in there at
all, which is worth knowing before chasing media playback through them.

FINDINGS records the reference comparison. A ZTE MU5358 registers the same
sprdphone-sc2730 card and does carry call audio; between idle and an active call
exactly 18 of its controls move, all routing and output. Applying the same shape
here - every S_*_CODEC switch at once, the codec output tree, agdsp_access_en -
changes nothing. Neither the F50's own Android nor a U30 Air (same ums9620) has
any audio to compare against, but the U30 Air does carry the native UMS9620
parameter XMLs, which are a better source than the community's donor copies.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 23:48:50 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 56d3a6a69b The sound card comes up: sprdphone-sc2730, with the voice PCM at 01-53
cat /proc/asound/cards now has a second entry, and /proc/asound/pcm has nineteen devices on it including
FE_ST_VOICE_PCM_P at card 1 device 53 - the same card the community Android modules produce, and the endpoint
sipserver's detectVoicePCMDevice looks for. mu300-audio-dsp load does the whole thing in one command and it
survives a reboot.

The last obstacle was the DMA engine, and nothing points at it. CONFIG_SPRD_DMA is a module that nothing pulls
in, so /sys/class/dma is empty, sprd-pcm-audio defers for want of a channel, its component never registers, and
snd_soc_register_card fails with "ASoC: failed to init link FE_NORMAL_AP01: -517" - a message that names a link
and never mentions DMA. virt-dma and sprd-dma bring up two controllers with sixty channels and the platform
components follow.

The card's probe runs before any of that exists and is not retried, because it returns 0 even when the
registration deferred. Binding sound@0 again once everything is in place is what finishes it.

sprd-card-dummy-on-defer.patch handles the links whose codecs this board does not have. Two details cost a boot
each: it must apply only to the codec, since giving the cpu dai a dummy kills the card at link 0 instead of 57;
and the dummy has to be filled in directly rather than by returning -ENOENT, because
asoc_sprd_card_dummy_codec_sel reads 'sound-dai' as a u32 and insists on a zero phandle, so it answers -EINVAL
for a node that exists and merely never arrives.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 07:05:32 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 5fa2191f80 The card's last link, and where the DSP bring-up stops
sprd-card-dummy-on-defer.patch settles dai link 57. BE_FAST_P_SMART_AMP asks for the smart amplifier this
board does not have, so snd_soc_of_get_dai_name defers for ever and asoc_sprd_card_probe abandons all 58 links
- the other 57 parse, BE_VOICE_PCM_P among them. A link whose codec phandle is simply absent already falls
back to a dummy one frame up; dummy_on_defer=1 extends that to one that keeps deferring. Only for the codec:
args_count is NULL exactly on the codec call, and giving the cpu dai a dummy kills the card at link 0 instead
of 57, which is how the narrower condition was found.

The firmware is 6 MiB, which is what settles which region is which - the DSP binary goes in audiodsp-mem at
0xafa00000 and the 3 MiB at 0xaf700000 is the shared memory. sprd_audcp_boot confirms it: base_addr_phy =
0xafa00000, bin size = 0x600000. No image is in this repository and none can be.

Where it stops: starting the DSP reboots the device. The drivers load, the firmware writes, and seconds later
the console shows an orderly CPU shutdown and "reboot: Restarting system" - deliberate, from userspace, not a
panic. start_store writes AUDCPBOOT_CTRL_SYS_RESET and CORE_RESET through regmap and on this board that
appears to reach past the audio core. So mu300-audio-dsp grew a "load" command that stops short of it and
brings up everything else; "start" is the opt-in that reboots, and says so.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 06:47:06 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 e71a1400b6 The DSP memory reservation works, and the card now parses 57 of 58 links
Verified on the device after rebooting into the patched kernel. Both ranges are reserved at boot, audio_mem
takes them from its module parameters, and the audio SIPC channel that used to answer ENODEV now allocates its
blocks inside the reserved region and sends to the DSP:

  OF: fdt: Reserved memory: reserved 0x00000000af700000 size 0x0000000000300000 (reserved_mem_add)
  [Audio:MEM] dsp_bin (addr, size): (0xaf700000, 0x300000)
  [Audio:SBLCK] audio_sblock_create: p_rxblks[6].addr 0xaf71d060
  [Audio:SMSG] aud_smsg_send: dst=1, channel=3

The machine card went from deferring at dai link 0 for ever to parsing 57 of 58, BE_VOICE_PCM_P - the back end
the SIP gateway wants - among them. It stops on the last, BE_FAST_P_SMART_AMP, which asks for the smart
amplifier this board does not have: nothing answers at I2C 0x34 and the device tree's own sprd,spk-ext-pa-info
count fails with -22. Links whose codec phandle is missing already fall back to a dummy codec, but one that
defers is fatal, asoc_sprd_card_probe gives up, and nothing re-probes.

So the remaining work has moved off the DSP memory entirely: let a deferring codec fall back to the dummy the
way a missing one does, and supply an image for sprd_audcp_boot.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 01:37:19 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 7c76d29ee9 Reserve the audio DSP's memory and let audio_mem be told where it is
Two patches and a config line, which between them remove the one thing standing between this device and call
audio: audio-mem-mgr describes the DSP completely and has no memory-region, so audio_mem has nothing to give
sprd_audcp_boot and the image can never be written.

of-reserved-mem-add is the counterpart of the of-reserved-mem-skip patch already in the tree - where that one
drops reservations the device tree asks for, this one adds ranges it forgot. CONFIG_OF_RESERVED_MEM_ADD, or
reserved_mem_add= on the command line, takes base,size pairs in memparse syntax.

audio-mem-fixed-region gives audio_mem four module parameters standing in for memory-region 0 and 1. At zero
it reads the device tree exactly as before, so a board that does describe its regions is untouched.

The addresses are 0xaf700000 3 MiB and 0xafa00000 6 MiB, which another UMS9620 device uses. They are not a
guess: the F50 reserves nothing between ae8fffff and b0000000, both fit in that hole, and the second ends
precisely where logobuffer begins.

mu300-audio-dsp loads the drivers in dependency order - twice, since a probe that defers once succeeds on the
second pass - and writes the firmware through sysfs if there is one. There cannot be one in this repository:
the project publishes no proprietary files, and unlike the Wi-Fi and modem firmware there is no copy on the
device to take, since the F50 has no audio DSP partition. Without an image the drivers still load and the DSP
stays down, which is exactly where this was before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 01:25:48 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 05080b76fe Build Unisoc's audio stack against our kernel: 23 modules, all loading
kernel/build-audio.sh produces the drivers behind real call audio from the realme unisoc-5.4 tree - the DSP
loader sprd_audcp_boot, agdsp_access, audio_sipc, audio_mem, the VBC v4 voice DAI, the UMP9620 codec, the PCM
platform and the machine card - and all 23 insmod cleanly on the device. The kernel config needed nothing:
CONFIG_SND_SOC, SND_SOC_COMPRESS and SND_SOC_TOPOLOGY are already built in, which is why soc-audio was sitting
there as a registered platform driver with nothing to do.

Three things about the build are worth the comments they got. Order matters and one pass does not suffice, so
it builds repeatedly and hands every Module.symvers produced so far to the next attempt. A failed attempt must
be cleaned before retrying or the leftover objects link twice and the error is "duplicate symbol:
__this_module", which points nowhere. And the UMP9620 codec only compiles with
BSP_KERNEL_DEFCONFIG=sprd_qogirn6pro_defconfig, because its Kbuild hides the codec define behind that and the
failure without it is an implicit declaration of TO_STRING hundreds of lines away.

The device tree turns out not to be the obstacle. sound@0 is okay and fully described, audiocp_boot has its
whole register set, and the machine driver binds it as vbc-rxpx-codec-sc27xx - the same binding the community
Android modules use. What stops it is the DSP: the card defers for ever because the DAI link cannot be parsed
until the audio SIPC channel exists, and that channel says ENODEV because nothing has started the DSP. This
board reserves no memory for it and carries no AGDSP image.

That leaves two concrete tasks rather than a port: reserve the memory, and supply the image.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 00:54:10 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 60a0f9bf72 A virtual sound card, and make the AT channel resynchronise
**Audio.** The board has no speaker path, so there is no card at all - and
software that insists on an ALSA device (a SIP gateway running on the device,
for instance) cannot start. The stock config leaves CONFIG_SND_DRIVERS off,
which is what gates the generic cards, so the fragment turns it on and builds
snd-aloop and snd-dummy as modules. extra-modules loads snd-aloop when it is
present. On the device that gives card 0 "Loopback" with two PCM devices of
eight substreams each: write to hw:0,0 and the same audio comes back on hw:0,1,
which is what a call bridge needs. It carries no cellular voice by itself - the
AGDSP path in FINDINGS 24 is still the job for that.

**AT resync.** This modem answers AT+CGACT and AT+CGDATA with "^ORIG: <cid>,<n>"
first and OK or CONNECT ten to twenty seconds later. When a command times out,
that late answer arrives after we have stopped listening and the next command
reads it instead of its own - and from then on every reply is one behind, which
looks exactly like a dead channel. mu300-atd now drains for up to 25 s after a
timeout, so the stale answer is thrown away before anything new is asked.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-20 16:58:56 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 5a4d1bf4d9 kernel: drop CONFIG_SPRD_ROTATION_TASK (8 phantom load units)
The vendor task-rotation feature creates one kthread per CPU with kthread_create() and only wakes them when four
big tasks compete for the big cluster - a benchmark scenario that never happens on this device. Until first woken
a kthread stays in TASK_UNINTERRUPTIBLE, so all eight were counted in the load average forever: an idle device
reported load 11-14 with 98% idle CPUs. Upstream default for this symbol is n; the F50 stock config turns it on.

Measured on the device after the change: D-state threads 13 -> 3, load average 11.2 -> 3.2, with Wi-Fi, hotspot,
mobile data, Bluetooth and the VPN unaffected.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-18 00:27:05 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 82fa33ddf1 Toolkit stress tests, one-step kernel build, VPN IPv4-only default, fix broken kernel patches
- mu300-toolkit stress [cpu,gpu,net|all] [minutes]: CPU workers on all cores, Mali OpenCL loop, speed test loop
  (Ookla CLI after EULA acceptance, otherwise speed.cloudflare.com) under the live monitor, then a summary of
  temperatures, throttling, frequency caps, GPU throughput drift, network results and new kernel warnings
- cltest loop [SEC]: GPU stress mode with per-second throughput
- kernel/build-all.sh: fetch the pinned ZTE kernel and realme module sources, apply the patches and build Image,
  in-tree and Wi-Fi/Bluetooth/Mali modules into out/ (verified from an empty docker volume)
- of-reserved-mem-skip.patch had a truncated fdt.c header and bluetooth-marlin3-link-policy.patch did not apply:
  regenerated from the working tree
- mu300-vpn: the TUN had an IPv6 address although the tunnel carries no IPv6, so every dual-stack HTTPS
  connection failed; IPv4-only DNS and TUN unless IPV6=1

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 20:00:06 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 294deb810b Stability: drop docker marker (timesyncd/pstore/random-seed ran as 'container'), journald without raw kernel chatter, WAN-side firewall, Wi-Fi RX checksum and sipa rx offload fixes, Wi-Fi firmware log off
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 18:29:19 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 9f3cfb4a23 Display: PD PHY AON clock lookup, hard reset suppression (no battery), PD test logger; record that PD RX does not work
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 17:23:09 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 bd29424cfe Experimental USB-C DisplayPort/HDMI on the 5.4 kernel: Unisoc DRM, PMIC USB-PD, runtime DT enable, labwc desktop service
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 16:16:58 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 ea6344301b OpenWrt: nftables sets in kernel (fw4 NAT), signed regdb and country before hostapd, PATH fixes
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 03:51:31 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 27a2fb72ba GPU: Mali-G57 OpenCL on Linux (kbase r40p0 from source, Android userspace in chroot)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 01:22:37 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 a69a555e42 RAM: free unused reserved memory (logo, sysdump), zram swap
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-17 01:16:19 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 7622a8ef87 Wi-Fi: 5 GHz access point (DS Parameter Set element), HT40/VHT80 hotspot
The SC2355 firmware takes the AP channel from the beacon's DS Parameter Set
element, which upstream hostapd omits on 5 GHz; Android's beacon (captured
with a kprobe) has it. The driver now inserts it, and hotspot-start uses
802.11ac 80 MHz on channels 36-48/149-165 with BAND=5 as the default.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 00:59:26 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 5b31680c33 Bluetooth: Marlin3 vendor init, link-policy kernel patch, systemd service
- tools/bt-init: upload PSKey (0xFCA0) and RF (0xFCA2) blocks and enable (0xFCA1) on /dev/ttyBT0
- kernel patch: firmware rejects Hold/Park in Write Default Link Policy, request RSwitch+Sniff only
- mu300-bluetooth.service: sprdbt_tty, stable locally administered BD address, btattach for bluetoothd
- docs: findings 25, AGDSP audio notes

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 00:07:03 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 e288781312 Shared USB/Wi-Fi LAN bridge, regdb certificate, 5 GHz fallback, audio findings
- mu300-lan: br-lan (usb0 + wlan0) with one dnsmasq; hotspot bridges into it
- wlan_combo patch: clear IFF_DONT_BRIDGE when the interface becomes an AP
- kernel: wens regdb certificate, i2c-dev, spidev, AW883xx driver (probe only)
- hotspot: BAND option, regdb reload + country wait, firmware START_AP check with
  automatic 2.4 GHz fallback
- findings 21-24 (bridging, stale modules, regdb, AP limits, no audio hardware)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 23:46:57 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5 2e1650e3f1 MU300/ZTE F50: custom 5.4 kernel, Ubuntu 26.04 rootfs, modem/PM bring-up, Wi-Fi
Boot tooling, kernel config fragment and patches, systemd units, Android vendor
runtime extraction scripts and the technical findings for running Linux on the
ZTE F50 / MU300 (Unisoc T760).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 21:51:13 +03:00