Skip to content

Phicomm N1: newer Cypress Wi-Fi firmware for channels 36-48 under CN - #5

Merged
riko2chen merged 1 commit into
mainfrom
phicomm-n1/wifi-firmware
Oct 25, 2026
Merged

riko2chen merged 1 commit into
mainfrom
phicomm-n1/wifi-firmware

Conversation

@riko2chen

Copy link
Copy Markdown
Contributor

Summary

The Phicomm N1 image's BCM43455 firmware (7.45.154, 2018) with Broadcom's master CLM disables 5 GHz channels 36-144 under CN, so wlan0 cannot join a car hotspot on 36-48 (the Xpeng G6 uses 36 or 149). The kernel regulatory database allows those channels; the restriction comes from the CLM blob (same symptom as raspberrypi/firmware#1359).

The device package now ships the unmodified linux-firmware cypress/cyfmac43455-sdio.bin and .clm_blob (7.45.286, commit a137a09be163) as /usr/lib/firmware/updates/brcm/brcmfmac43455-sdio.phicomm,n1.{bin,clm_blob}. The kernel reads updates/ before /lib/firmware, so the image's own files stay untouched and removing the package restores them at the next boot. No diversions, no maintainer-script logic for the firmware.

  • PhicommN1/install/firmware.txt pins the two files and LICENSES/LICENCE.cypress (commit, path, SHA-256).
  • phicomm_n1_fetch_firmware (release-common.sh) downloads and verifies them in the release workflow; build-deb.sh and build-bundle.sh take a required --firmware DIR and verify again; SOURCES.txt records the upstream URLs.
  • The package carries LICENCE.cypress and a copyright stanza for the firmware files.

Verification

  • On the home N1 (ophub Armbian, Debian 13, kernel 6.12.112): installed 0.1.0~n1fw.1 built from this branch over 0.1.0~n1fix.5, rebooted: firmware 7.45.286 loads at boot, channels 36-48 and 149-165 enabled under CN, the relay's CarPlay hotspot runs on 149, Ethernet PHY and Bluetooth address fixes unchanged, no failed units. Earlier tests also showed wlan0 joining an AP on channel 40 under CN.
  • chroot-test.sh (trixie arm64): 113 lifecycle checks, including image firmware preserved on install, remove and purge.
  • In a Debian 13 container: release-test.py 155 cases, N1 installer-test.py 256 checks (native payload checks included), profile-test.py 17.

The image's BCM43455 firmware (7.45.154) and Broadcom master CLM leave
channels 36-144 disabled under CN, so wlan0 cannot join a car hotspot on
36-48. The device package now ships the unmodified linux-firmware
cypress/cyfmac43455-sdio.{bin,clm_blob} (7.45.286, commit a137a09be163)
as the board-specific files in /usr/lib/firmware/updates/brcm, which the
kernel reads before /lib/firmware. The image's own files stay untouched;
removing the package restores them at the next boot.

The files and LICENCE.cypress are pinned in install/firmware.txt, fetched
and verified by the release workflow, verified again by build-deb.sh, and
recorded in SOURCES.txt.

Signed-off-by: Riko <symeonchen@gmail.com>
@riko2chen
riko2chen enabled auto-merge October 25, 2026 18:50
@riko2chen
riko2chen merged commit f2c9aba into main Oct 25, 2026
2 checks passed
@riko2chen
riko2chen deleted the phicomm-n1/wifi-firmware branch October 25, 2026 18:51
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant