Skip to content

Install Apple Broadcom Wi-Fi firmware on every Mac brcmfmac drives, not just T2 - #8632

Closed
danm07 wants to merge 1 commit into
omacom:quattrofrom
danm07:fix-imac-broadcom-wifi-firmware
Closed

danm07 wants to merge 1 commit into
omacom:quattrofrom
danm07:fix-imac-broadcom-wifi-firmware

Conversation

@danm07

@danm07 danm07 commented Aug 27, 2026

Copy link
Copy Markdown

Summary

apple-bcm-firmware currently only gets installed 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 in its own comments — 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 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 (installed apple-bcm-firmware's files under the plain brcmfmac4364b2-pcie.* names this kernel's driver actually requests, reloaded brcmfmac, 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.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 — reusing the exact detection condition already in fix-brcmfmac-supplicant.sh.
  • install/hardware/apple/fix-brcmfmac-supplicant.sh now also installs apple-bcm-firmware for every Mac it detects, alongside the existing WPA handshake quirk it already applies to the same population.
  • migrations/1787847645.sh repairs existing installs the same way, idempotently, following the existing migration conventions (per-user completion tracking, omarchy-state set reboot-required since brcmfmac only reads firmware at module load).
  • Extended test/shell.d/brcmfmac-supplicant-test.sh and added test/shell.d/brcmfmac-firmware-migration-test.sh.

Test plan

  • bash test/shell.d/brcmfmac-supplicant-test.sh passes
  • bash test/shell.d/brcmfmac-firmware-migration-test.sh passes
  • Full bash test/shell suite passes (no regressions)
  • Verified manually on the affected hardware (iMac19,1, BCM4364) that installing apple-bcm-firmware and reloading brcmfmac brings the Wi-Fi interface up

Copilot AI balanced review requested due to automatic review settings August 27, 2026 17:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extends Apple Broadcom firmware installation to all supported brcmfmac-driven Macs.

Changes:

  • Expands hardware detection and repository setup.
  • Installs apple-bcm-firmware during 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.

Comment thread migrations/1787847645.sh Resolved
@danm07
danm07 force-pushed the fix-imac-broadcom-wifi-firmware branch from 5827c62 to 1e93dd6 Compare August 27, 2026 17:17
@danm07
danm07 requested a balanced review from Copilot August 27, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread migrations/1787847645.sh Resolved
Comment thread install/hardware/pacman.sh Resolved
…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
danm07 force-pushed the fix-imac-broadcom-wifi-firmware branch from 1e93dd6 to 5a5d5b1 Compare August 27, 2026 17:38
@danm07

danm07 commented Sep 5, 2026

Copy link
Copy Markdown
Author

Closing and reopening as a fresh PR — the automated review/CI process on this one appears stuck (no checks ever reported).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants