1
0
Fork 0
Commit graph

10 commits

Author SHA1 Message Date
fe62849cb0 Make vendor.prop the single source of truth for WiFi country code
ro.boot.wificountrycode was set in two places: androidboot.wificountrycode=US
on the kernel cmdline (mkimg.sh extlinux heredoc) and ro.boot.wificountrycode=00
in vendor.prop. Because ro.* properties are set-once and init processes the
cmdline first, the cmdline always won and the vendor.prop value silently lost
(init logs 'Read-only property was already set' every boot). Worse, the
vendor.prop value was 00 (world regulatory domain), a landmine that would
activate if the cmdline param were ever dropped.

Remove the cmdline param and set vendor.prop to US so the country code lives
in exactly one place, delivered via vendor.img instead of a hand-maintained
boot heredoc. Note this only feeds the Android framework (WifiCountryCode);
the kernel side additionally needs regulatory.db to actually apply it (fixed
separately by embedding it via CONFIG_EXTRA_FIRMWARE in the kernel).
2026-07-14 20:30:36 -04:00
6c2ea1b408 Reformat mkimg.sh and wireless_reprobe.sh with tab indentation 2026-07-14 20:30:36 -04:00
cef9a10c1f mkimg.sh: add androidboot.wificountrycode=US to kernel cmdline
The ro.boot.wificountrycode property is a ro.boot.* namespace property
that can ONLY be populated from the kernel cmdline (androidboot.xxx).
Setting it in vendor.prop had no effect — the value stayed '00'.

This caused the WiFi regulatory domain to default to 'country 00'
(world), which forced passive scanning on all 5GHz channels and
capped TX power at 3 dBm.  On a DFS channel this meant 60s CAC
delays, failed scans, and crippled TX power causing SAE handshake
failures.

This is the actual fix — adding the boot parameter that the WiFi
framework reads to set the regulatory domain via nl80211.
Users in other regulatory domains should edit this line.
2026-07-14 19:04:55 -04:00
f2b7f770b3 Add androidboot.console to extlinux append for serial shell 2026-07-13 21:50:40 -04:00
9011825dd7 Grow vendor partition to 512M for USB WiFi firmware headroom 2026-07-13 13:21:20 -04:00
6645a6d36a Integrate source kernel build for tart
Switch from prebuilt kernel to source kernel build via TARGET_KERNEL_SOURCE.
- BoardConfig.mk: add TARGET_KERNEL_SOURCE, TARGET_KERNEL_CONFIG, TARGET_KERNEL_ARCH
- device.mk: remove deprecated prebuilt Image copy (kernel build handles it)
- mkimg.sh: prefer KERNEL_BUILD_OUT artifacts, fall back to prebuilt
2026-07-12 18:29:43 -04:00
fad0e966b0 Fix wrimg.sh partition layout and mkimg.sh sgdisk dependency 2026-07-12 00:08:30 -04:00
9063cf7f8e Rewrite README to reflect tart LineageOS ATV port 2026-07-12 00:05:59 -04:00
f08f38c5e4 Update device/kernel paths for tart codename rename 2026-07-11 18:43:11 -04:00
ae84f8e65e Add device tree for Orange Pi 5 Ultra LineageOS ATV 2026-07-10 17:56:31 -04:00