Skip to content

Support BCM43228 Wi-Fi during installation - #15106

Open
jagrat7 wants to merge 4 commits into
omacom:quattrofrom
jagrat7:fix/bcm43228-wifi
Open

jagrat7 wants to merge 4 commits into
omacom:quattrofrom
jagrat7:fix/bcm43228-wifi

Conversation

@jagrat7

@jagrat7 jagrat7 commented Oct 12, 2026 •

Copy link
Copy Markdown

Add Broadcom BCM43228 (14e4:4359) to driver setup so machines such as the HP ProBook 6570b can bring up Wi-Fi after installation. This addresses missing driver installation. Sustained connection reliability remains unresolved on the author's hardware.

Changes in this PR:

  • Extend install/hardware/fix-bcm43xx.sh to install broadcom-wl-dkms for BCM43228, retaining BCM4360 and BCM4331 support.
  • Add migrations/1792750214.sh for existing x86 BCM43228 installations. It installs the driver and requests a reboot only when neither broadcom-wl-dkms nor b43-firmware is installed.
  • Add shell coverage for hardware selection and the migration's architecture/package guards.

Validation at fa19bab7f9322eb1c5c1430e2caab9116d93ec11:

  • The existing bcm43228-wifi-test.sh passes when rerun on November 8. It stubs hardware/package helpers, so it verifies installation decisions, not driver stability.
  • The current Greptile check completed successfully. Its remaining review concern is still relevant: the package guard does not detect working b43 firmware copied manually without the b43-firmware package, and installing wl blacklists b43.
  • Earlier post-reboot hardware testing confirmed that the manually installed driver loads, scans and connects. That was a startup/connectivity test, not proof of a stable connection over time.
  • The exact migration has not been validated end to end on this hardware. The earlier standalone attempt on 4.0.3 failed because that release lacks omarchy-hw-x86; the helper is present in 4.5.0. A fresh ISO installation remains untested.

Hardware follow-up, November 8, 2026:

  • HP ProBook 6570b, BCM43228, Omarchy 4.0.6-1, kernel 7.2.8-9-omarchy, broadcom-wl-dkms 6.30.223.271-50, NetworkManager 1.58.1-2, wpa_supplicant 2.12. DKMS built wl for the running kernel and matching headers. Wi-Fi power saving is off.
  • At approximately 00:18:49 EST, the kernel logged:
    ERROR @wl_notify_scan_status :
    wlo1 Scan_results error (-22)
    
    The Wi-Fi remained associated, but traffic including LAN connectivity failed until approximately 00:23:52. Tailscale and the proxy became unreachable together. The proxy continued running and served a local request successfully during the outage.
  • The available logs contain 33 scan errors since October 31. All 21 recorded Tailscale relay-outage clusters follow these errors. In the correlations checked since November 3, connectivity recovered roughly five minutes after each error.
  • NetworkManager configured bgscan simple:30:-65:300, and wpa_supplicant reported that signal-strength monitoring could not be enabled. The scan-error cadence is close to multiples of five minutes. This makes background scanning a candidate trigger, but the logs do not establish whether a scan causes the stall or a later scan clears it.
  • The driver was installed manually before this PR. The proposed migration deliberately skips it, so this PR does not repair these runtime outages. No controlled scan-suppression or alternative-driver test has been performed.

Stable-release check as of November 8:

The installation gap and the observed wl reliability failure need separate validation before treating this card as fully supported.

Fixes #16285

@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR affects driver setup for BCM43228 machines during installation and migration.

The migration still needs protection for manually installed b43 firmware before merging.

Findings

  1. P1 Working Wi-Fi can stop ▶

Summary

Adds BCM43228 to Broadcom driver setup and provides a migration for existing x86 installations.

  • Fresh installs now include BCM43228 in Broadcom driver setup.
  • Eligible x86 machines now install the BCM43228 driver through a migration.

Reviews (4) · Last reviewed commit: "Keep the BCM43228 migration pending when..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working compatibility Make Omarchy work better on everything! labels Oct 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at f16f605. No defects found in the change; it is not yet verified, because the one thing that proves it needs BCM43228 hardware.

What was checked:

  • 14e4:4359 is BCM43228 in the PCI ID database. On a stock install the kernel's bcma claims it and b43 would drive it, but b43 needs firmware that linux-firmware does not ship, so the machine is left without Wi-Fi. That makes the problem real and installing wl the right answer.
  • broadcom-wl-dkms binds any Broadcom network controller by PCI class, blacklists b43/bcma itself, and is already in install/omarchy-other.packages, so an offline image build has it at first boot.
  • On a disposable Omarchy worker, the script ran with lspci and omarchy-pkg-add stubbed out. On quattro, a 14e4:4359 device requests no package. With this change it requests broadcom-wl-dkms. 43a0 and 4331 still match. 4358, 43ba and a machine with no Broadcom device still request nothing. ./test/cli passed on the same worker.
  • The match is on the full vendor:device pair from lspci -nn, so another vendor's 4359 does not trigger it.

The second opinion (Codex Medium) found no defects and agreed on each point above. Its independence from this review is not guaranteed. It also noted that existing installs are not repaired by this change, because only a fresh install runs the hardware script. Whether a migration should follow is the maintainer's call, not a defect in this pull request.

What is left: a stub only shows that the script asks for the driver, not that Wi-Fi comes up. The earlier hardware test came from the author's own machine on another revision. So this waits on the maintainer, or on someone else with a BCM43228, to confirm that a fresh install from this commit scans and connects.

Hardware setup runs only at install, so a machine installed before BCM43228 was matched stays without Wi-Fi after updating. The migration installs broadcom-wl-dkms there and asks for a reboot, and leaves alone a machine that already has b43 firmware, since the wl package blacklists b43 and would take down a card its owner already brought up. The test covers which chips the hardware script routes to wl and each branch of the migration.

Co-Authored-By: Container Conrad <containerconrad26@proton.me>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/shell.d/bcm43228-wifi-test.sh Resolved
The firmware directory was the wrong test for a machine already running b43: it could not be stubbed, so the test's install case depended on the host it ran on and the guard itself was never exercised. The b43-firmware package is how b43 is brought up on this chip, and it can be asked about like any package. broadcom-wl-dkms has no aarch64 build, so on an ARM machine with this card the migration would fail and hold up every migration after it.

Co-Authored-By: Codex Medium <noreply@openai.com>
Co-Authored-By: muse-spark-1.3-contributor High <noreply@meta.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread migrations/1792750214.sh Outdated

# Hardware setup only runs at install. A machine already running b43 on the
# b43-firmware package works, and broadcom-wl-dkms would blacklist b43.
if omarchy-hw-x86 && [[ $(lspci -nn) == *"14e4:4359"* ]] && omarchy-pkg-missing broadcom-wl-dkms && omarchy-pkg-missing b43-firmware; then

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.

P1 Working Wi-Fi can stop

If a user copied b43 firmware into /usr/lib/firmware/b43 without installing b43-firmware, the new package check misses that working setup. On an x86 BCM43228 machine without either named package installed, the migration now installs broadcom-wl-dkms, which blacklists b43. If wl does not work on that machine, Wi-Fi stops after reboot.

Keep protection for firmware added outside b43-firmware, and cover that case in the test.

@omarchybot

Copy link
Copy Markdown
Collaborator

I pushed two commits to this branch at fa19bab. They repair Wi-Fi on machines that are already installed. A Broadcom BCM43228 now gets wl on fresh installs and existing ones, and this pull request is linked to #16285, which reports the same failure on an HP EliteDesk.

What changed. Hardware setup only runs at install. Without these commits, an existing BCM43228 machine stays without Wi-Fi after it updates. The new migration, migrations/1792750214.sh, installs broadcom-wl-dkms on an x86 machine with 14e4:4359 and asks for a reboot. It leaves two cases alone. One is a machine that already has the driver. The other is a machine running b43 on the b43-firmware package, because broadcom-wl-dkms blacklists b43, and that card already works. test/shell.d/bcm43228-wifi-test.sh covers which chips the hardware script sends to wl, plus each branch of the migration. The migration comes from #16386 by @FrogMonkeyBird, adapted to wl. It is credited to them as co-author.

Where it ran. Two disposable Omarchy workers, kernel 7.2.8-10-omarchy:

  • The new test passes at this head. It fails in each of these cases: with the hardware script as it is on quattro, with the migration emptied, with the b43-firmware guard removed, and with the x86 guard removed.
  • I ran the migration for real with lspci faked to report a BCM43228. It installed broadcom-wl-dkms, DKMS built wl for the running kernel, and it set reboot-required. A second run did nothing. With the b43-firmware guard in place, it installed nothing.
  • ./test/cli passed.

Second opinion. Codex Medium and muse-spark-1.3 (thinking high) reviewed the change. The first round found two problems. The test's install case depended on the machine running it, so the guard was never exercised. The migration also had no x86 gate, but broadcom-wl-dkms has no ARM build, so on ARM it would fail and block every migration after it. Both are fixed in the second commit. muse-spark also said that linux-firmware ships a b43/ directory, so the original firmware-directory guard would never fire. That claim is wrong: linux-firmware 20260916 has no b43 files. On the second round both found nothing left open. Their independence from this review is not guaranteed.

What is left. No worker has this card. So nothing here shows that wl brings the card up and connects on a 7.2 kernel. That is the one thing a stub can't prove. @jagrat7 or @FrogMonkeyBird, if you can, please test this exact commit on a BCM43228 machine, using Ethernet to get online:

curl -fsSL -o /tmp/1792750214.sh https://raw.githubusercontent.com/jagrat7/omarchy/fa19bab7f9322eb1c5c1430e2caab9116d93ec11/migrations/1792750214.sh
bash -euo pipefail /tmp/1792750214.sh
reboot

After the reboot, lsmod | grep -w wl should list the module, and nmcli device wifi list should show networks. Then report whether it connects and stays connected. If you already installed b43-firmware, the script does nothing; remove that package first. To undo the test, run omarchy-pkg-drop broadcom-wl-dkms and reboot.

This waits on that hardware result. After that, choosing between this and #16386 is the maintainer's call.

@jagrat7

jagrat7 commented Oct 24, 2026

Copy link
Copy Markdown
Author

@omarchybot I ran the exact pinned migration on Omarchy 4.0.3-1, but it reported omarchy-hw-x86: command not found, so it made no changes.

My HP ProBook 6570b has the BCM43228 (14e4:4359). The manually installed broadcom-wl-dkms 6.30.223.271-49 is working on kernel 7.2.3-arch1-3: wl is loaded, scanning works, and internet connectivity over Wi-Fi passes.

I haven’t rebooted for this test yet. I’ll follow up with the post-reboot results.

@jagrat7

jagrat7 commented Nov 1, 2026

Copy link
Copy Markdown
Author

@omarchybot Reboot confirmed on my HP ProBook 6570b / BCM43228 (14e4:4359): wl loaded automatically, Wi-Fi connected, scanning found 37 networks, and an internet ping over Wi-Fi passed with no packet loss. Now running Omarchy 4.0.6-1, kernel 7.2.8-9-omarchy, and broadcom-wl-dkms 6.30.223.271-50. The driver was originally installed manually; the exact pinned migration remains unverified because it previously reported omarchy-hw-x86: command not found on Omarchy 4.0.3-1.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for testing this on your ProBook, @jagrat7. Your result answers the main open question: broadcom-wl-dkms brings a BCM43228 (14e4:4359) up on a 7.2 Omarchy kernel. After a reboot, wl loads on its own, Wi-Fi connects, and traffic flows.

The omarchy-hw-x86: command not found error is not a bug in this pull request. That helper first shipped in v4.5.0-rc1, and other migrations on quattro already call it, for example migrations/1791542175.sh. A real update installs the new commands before it runs any migration, so the helper is there when this migration needs it. You ran the pinned file by hand on 4.0.3, which doesn't have the helper. The failed check counted as false, so the script exited without changing anything. That was my mistake in the test steps I gave you.

Second opinion. Codex Medium and muse-wonder (thinking high) reviewed this head again, along with your two reports. Both agree the missing-helper error comes from running a new script on an old release. Both agree the hardware result and the earlier worker runs leave nothing hardware-specific unproven. Both found nothing wrong in the diff. Their independence from this review is not guaranteed. Greptile's earlier point is still true: someone who copied b43 firmware in by hand, without the b43-firmware package, would be switched to wl. Both reviewers judged that not worth a guard. Few people set things up that way, wl is now shown to work on this card, and checking the firmware directory would skip machines with leftover files.

What is left. This pull request can't count as verified on hardware from its own author's report. The check needs someone other than the author who has the card. @FrogMonkeyBird, you reported this card in #16285. If you can, please test this exact commit, fa19bab, on your EliteDesk, using Ethernet to get online. Remove b43-firmware and broadcom-wl-dkms first if either is installed. Omarchy 4.0.6 doesn't ship omarchy-hw-x86 yet, so the second line below defines it for this one run:

curl -fsSL -o /tmp/1792750214.sh https://raw.githubusercontent.com/jagrat7/omarchy/fa19bab7f9322eb1c5c1430e2caab9116d93ec11/migrations/1792750214.sh
omarchy-hw-x86() { [[ $(uname -m) == x86_64 ]]; }; export -f omarchy-hw-x86
bash -euo pipefail /tmp/1792750214.sh
reboot

After the reboot, check that lsmod | grep -w wl lists the module and that nmcli device wifi list shows networks. Then post a new comment saying whether Wi-Fi connects, and include the full commit hash above. To undo the test, run omarchy-pkg-drop broadcom-wl-dkms and reboot.

This waits on that hardware result. After that, choosing between this and #16386 is the maintainer's call.

@andyholst

Copy link
Copy Markdown

Not evidence for this chip. #10910 is BCM43224, PCI 14e4:4353, on a MacBook Air 5,2. This pull request is BCM43228, PCI 14e4:4359.

On the Air, broadcom-wl-dkms 6.30.223.271-50 bound after reboot and cut gateway loss from 20% to 0% versus brcmsmac. That says nothing about whether wl is the right driver for a 43228, including the HP ProBook case here. The two diffs both edit install/hardware/fix-bcm43xx.sh, so whichever lands second needs to keep the other's PCI ID.

#10910 (comment)

The PCI check ran inside the condition, so a failed lspci read as "no BCM43228": the migration exited 0, was marked complete, and would never run again on that machine. Query on its own line and exit non-zero when it fails, as the migrations guide asks and the YT6801 migration does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I pushed one commit to your branch, @jagrat7: 96388de. The installer change and the driver choice are unchanged.

What changed, and why. The migration checked for the card inside its if, as [[ $(lspci -nn) == *"14e4:4359"* ]]. If lspci failed or was missing, that check came back false, so the script exited 0. omarchy-migrate then marked it complete and would never run it on that machine again. migrations/1792750214.sh now runs lspci -n -d 14e4:4359 on its own line and exits 1 when the query fails, so the migration stays pending and runs again on the next update. That is what agents/skills/migrations.md asks for, and migrations/1788279117.sh does the same thing. The test now runs each migration in a subshell and adds a case for a failing lspci.

What ran, and where. Everything ran on a disposable Omarchy VM, kernel 7.2.15-2-omarchy:

  • The BCM43228 test passes at the new head. It fails against the previous migration (the lspci case), against quattro's fix-bcm43xx.sh, and with each of the three guards removed.
  • The real migration exits 0 and changes nothing on a machine without the card. It exits 1 when lspci fails or isn't installed.
  • With lspci stubbed to report a 14e4:4359, it installs broadcom-wl-dkms, and DKMS builds wl for the running kernel. A second run does nothing.
  • ./test/cli passed.

Things I checked that need no change.

Second opinion. Codex Medium and muse-wonder (thinking high) reviewed the new commit. Both found it correct, and both checked that the new test case fails if the migration exits 0 when lspci fails. Codex raised the manual-firmware case from my last comment again: firmware copied in by hand without the b43-firmware package, now noting that such a machine would also lose Wi-Fi on a headerless fallback kernel. I left the guard as it is. Arch's documented route for this card is the b43-firmware package, which the guard covers, and the main kernel gets a working wl either way. muse-wonder found nothing. Their independence from my review is not guaranteed.

What is left. This still needs someone other than the author to test it on the card. @FrogMonkeyBird, if you can, please test the new commit, 96388de. Use Ethernet to get online, and remove b43-firmware and broadcom-wl-dkms first if either is installed. The second line below defines omarchy-hw-x86 in case your release doesn't have it yet:

curl -fsSL -o /tmp/1792750214.sh https://raw.githubusercontent.com/jagrat7/omarchy/96388de6fb7032852088ccd39a68d085c2a8d538/migrations/1792750214.sh
omarchy-hw-x86() { [[ $(uname -m) == x86_64 ]]; }; export -f omarchy-hw-x86
bash -euo pipefail /tmp/1792750214.sh
reboot

After the reboot, check that lsmod | grep -w wl lists the module and nmcli device wifi list shows networks. Then post a comment saying whether Wi-Fi connects, with the full commit hash above. To undo the test, run omarchy-pkg-drop broadcom-wl-dkms and reboot.

This waits on that hardware result.

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

Labels

bug Something isn't working compatibility Make Omarchy work better on everything!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fresh Omarchy install has no Wi-Fi on HP EliteDesk Broadcom BCM43228

3 participants