Repository navigation
Conversation
…ot just T2 apple-bcm-firmware currently only installs on T2 Macs, via fix-t2.sh. Every other Mac whose Wi-Fi brcmfmac drives -- including the T2-less iMac19,1 and iMac19,2 that install/hardware/apple/fix-brcmfmac-supplicant.sh already calls out by name -- gets no NVRAM/CLM/TxCap calibration data at all. Without it the radio never comes up: dmesg shows "brcmf_pcie_download_fw_nvram: FW failed to initialize" and "Firmware has halted or crashed", and no wlan/wlp* interface appears. - install/hardware/pacman.sh now adds the arch-mact2 repo (which carries apple-bcm-firmware) for any Mac with brcmfmac-driven Broadcom Wi-Fi, not only T2 PCI IDs. - install/hardware/apple/fix-brcmfmac-supplicant.sh now also installs apple-bcm-firmware for every Mac it detects, alongside the existing WPA handshake quirk. - migrations/1787847645.sh repairs existing installs the same way. - Tests extended/added for both.
|
Thanks for working on this! I have the same iMac (iMac19,1, BCM4364) and tried the fix on Omarchy 4.0.4. I think installing What worked for me: I copied the matching Apple files and saved them under the plain names. After reloading If it helps, I'm happy to open a follow-up PR that adds this renaming step. Just let me know. |
|
Reviewed at 5a5d5b1 against What ran. On a disposable worker built from the Omarchy ISO, Findings
Second opinion. Codex Medium reviewed the same head. It agreed on the first point, with high confidence in the reasoning but no hardware to check it on. When asked whether the broader scope could cause a regression, it worked out the firmware-precedence mechanism in the second point. It also found the reboot-flag gap, the Next. This waits on the author. Bringing in the plain-name step that worked by hand, with @Q00's help if they still want to offer it, and narrowing the change to the confirmed models would make it testable. A hardware fix like this then needs someone with the affected iMac to confirm it on the exact head commit before it can be marked verified. |
|
@Q00 Sure thing! Add it in! For now I no longer have access to that iMac machine so I am unable to further test |
|
Re-checked after @danm07's reply, at the same head, 5a5d5b1. Nothing in the diff has changed, so the findings from the last review all still stand. Most importantly, the diff still makes nothing available under the plain With the author no longer able to test, the missing step has to come from someone who has the hardware. The bot has not written that step itself. Which of the package's Codex Medium was asked the same questions. It agreed that the diff has no plain-name step and that writing one without the hardware would be guesswork. It also named a third party with the hardware as the next step. Its independence is not guaranteed. Next, this waits on the maintainer to decide how it goes forward, and on someone with an affected iMac for the missing step and a hardware confirmation. |
Summary
apple-bcm-firmwarecurrently only gets installed on T2 Macs, viafix-t2.sh. Every other Mac whose Wi-Fibrcmfmacdrives — including the T2-less iMac19,1 and iMac19,2 thatinstall/hardware/apple/fix-brcmfmac-supplicant.shalready calls out by name in its own comments — gets no NVRAM/CLM/TxCap calibration data at all. Without it the radio never comes up:dmesgshowsbrcmf_pcie_download_fw_nvram: FW failed to initializeandFirmware has halted or crashed, and nowlan/wlp*interface ever appears.I hit this on a real 2019 27" iMac (iMac19,1, BCM4364, board-id
Mac-AA95B1DDAB278B95) running Omarchy: Wi-Fi was completely dead out of the box. Root-caused it down to the missing firmware package, confirmed the fix manually (installedapple-bcm-firmware's files under the plainbrcmfmac4364b2-pcie.*names this kernel's driver actually requests, reloadedbrcmfmac, and the card came up and connected), then generalized it into this patch so it's not a manual fix every T2-less Mac owner has to rediscover.install/hardware/pacman.shnow adds thearch-mact2repo (which carriesapple-bcm-firmware) for any Mac with brcmfmac-driven Broadcom Wi-Fi, not only T2 PCI IDs — reusing the exact detection condition already infix-brcmfmac-supplicant.sh.install/hardware/apple/fix-brcmfmac-supplicant.shnow also installsapple-bcm-firmwarefor every Mac it detects, alongside the existing WPA handshake quirk it already applies to the same population.migrations/1787847645.shrepairs existing installs the same way, idempotently, following the existing migration conventions (per-user completion tracking,omarchy-state set reboot-requiredsince brcmfmac only reads firmware at module load). It refreshes pacman's sync database (pacman -Sy) wheneverapple-bcm-firmwareis still missing — not just on a freshly-appended repo block — so an interrupted migration (e.g. a transient network failure during the sync) retries correctly instead of getting permanently stuck.install/hardware/pacman.shdoes not refresh the sync database itself: it runs after the hardware leaves that already callomarchy-pkg-add, underset -euo pipefail, so a failing refresh here would abort an otherwise offline-capable install for no benefit.test/shell.d/brcmfmac-supplicant-test.shand addedtest/shell.d/brcmfmac-firmware-migration-test.sh, including regression coverage for the interrupted-retry and offline-install-time-sync scenarios above.Test plan
bash test/shell.d/brcmfmac-supplicant-test.shpassesbash test/shell.d/brcmfmac-firmware-migration-test.shpassesbash test/shellsuite passes (no regressions)apple-bcm-firmwareand reloadingbrcmfmacbrings the Wi-Fi interface upReplaces #8632, reopened from the same branch after the automated review/CI process on that one got stuck (no checks were ever reported). No code changes from the last revision on #8632 — this already includes the fixes from the Copilot review discussion there (pacman sync-database timing in the migration).