Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Extends Apple Broadcom firmware installation to all supported brcmfmac-driven Macs.
Changes:
- Expands hardware detection and repository setup.
- Installs
apple-bcm-firmwareduring setup. - Adds migration and shell-test coverage.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
install/hardware/pacman.sh |
Expands arch-mact2 repository setup. |
install/hardware/apple/fix-brcmfmac-supplicant.sh |
Installs Broadcom firmware on detected Macs. |
migrations/1787847645.sh |
Repairs existing installations. |
test/shell.d/brcmfmac-supplicant-test.sh |
Tests setup-time firmware installation. |
test/shell.d/brcmfmac-firmware-migration-test.sh |
Tests migration behavior and idempotency. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
danm07
force-pushed
the
fix-imac-broadcom-wifi-firmware
branch
from
August 27, 2026 17:17
5827c62 to
1e93dd6
Compare
…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.
danm07
force-pushed
the
fix-imac-broadcom-wifi-firmware
branch
from
August 27, 2026 17:38
1e93dd6 to
5a5d5b1
Compare
Author
|
Closing and reopening as a fresh PR — the automated review/CI process on this one appears stuck (no checks ever reported). |
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).test/shell.d/brcmfmac-supplicant-test.shand addedtest/shell.d/brcmfmac-firmware-migration-test.sh.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 up