omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Kernel 7.2 update leaves BCM4360 Macs offline: wl module missing and DKMS fails to build

Open robertogogoni opened this issue 3 months ago • 4 comments

System details

  • MacBook Air 13-inch Early 2015 (MacBookAir7,2)
  • Broadcom BCM4360 802.11ac, PCI ID 14e4:43a0, Apple subsystem 106b:0117
  • Omarchy Quattro 4.0.2
  • Update: 7.1.9-arch1-2 → 7.2.2-arch1-1
  • NetworkManager 1.58.1-1 using the iwd backend
  • Before the update: broadcom-wl 6.30.223.271-722
  • Current Arch DKMS package tested: broadcom-wl-dkms 6.30.223.271-48

What's wrong?

After a normal Omarchy update and reboot, this MacBook came back with no Wi-Fi device and no network list. The native network panel still opened and showed its DNS controls, but there were no SSIDs to select. Since this is the machine's only physical network interface, it also became unreachable remotely.

The package transaction upgraded the kernel and headers, but did not upgrade or replace the kernel-specific Broadcom module:

[2026-08-31T09:46:39-0300] upgraded linux (7.1.9.arch1-2 -> 7.2.2.arch1-1)
[2026-08-31T09:46:50-0300] upgraded linux-headers (7.1.9.arch1-2 -> 7.2.2.arch1-1)
[2026-08-31T09:46:56-0300] upgraded omarchy-settings (4.0.1-1 -> 4.0.2-1)
[2026-08-31T09:47:00-0300] upgraded omarchy (4.0.1-1 -> 4.0.2-1)

broadcom-wl remained at 6.30.223.271-722, with its module only under the old kernel tree. After reboot:

$ uname -r
7.2.2-arch1-1

$ sudo modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/7.2.2-arch1-1

At the time of diagnosis, pacman -Si broadcom-wl returned no repository package. Omarchy's current fix-bcm43xx.sh explicitly selects broadcom-wl for this PCI ID, while also installing dkms separately. The broadcom-wl package itself is kernel-specific and is not converted into a DKMS module merely by installing dkms.

Reproduction

  1. Start with a working BCM4360 (14e4:43a0) system on kernel 7.1.9 and broadcom-wl 6.30.223.271-722.
  2. Apply the normal update that installs kernel and headers 7.2.2.
  3. Reboot.
  4. The wl module is absent for the running kernel, so NetworkManager has no usable Wi-Fi device.

Switching to DKMS currently fails too

I booted the pre-update Limine snapshot to regain connectivity, mounted the normal root, replaced broadcom-wl with the current broadcom-wl-dkms, and tried to build it for 7.2.2-arch1-1. The unmodified package fails because Linux 7.2 removed strncpy() from the kernel API:

DKMS make.log for broadcom-wl/6.30.223.271, kernel 7.2.2-arch1-1

src/shared/linux_osl.c:863:17: error: implicit declaration of function 'strncpy'
src/wl/sys/wl_linux.c:1542:9: error: implicit declaration of function 'strncpy'

make: *** [Makefile:248: __sub-make] Error 2

This is the same Linux 7.2 API break documented in Debian bug #1144895 and the accompanying tested patch report. The kernel-side removal is upstream commit 079a028.

Verified recovery

I applied the conditional Linux 7.2 replacements from that patch (strscpy, strscpy_pad, and memcpy) to the DKMS source, then rebuilt:

Building module(s)..... done.
Installing /usr/lib/modules/7.2.2-arch1-1/updates/dkms/wl.ko.zst
Running depmod...... done.

$ modinfo -k 7.2.2-arch1-1 wl
filename: /lib/modules/7.2.2-arch1-1/updates/dkms/wl.ko.zst
vermagic: 7.2.2-arch1-1 SMP preempt mod_unload

After rebooting the normal updated root:

$ uname -r
7.2.2-arch1-1

$ lspci -nnk -s 03:00.0
03:00.0 Network controller: Broadcom BCM4360 [14e4:43a0]
        Subsystem: Apple Inc. Device [106b:0117]
        Kernel driver in use: wl

$ nmcli device status
DEVICE  TYPE  STATE      CONNECTION
wlan0   wifi  connected  <redacted>

Wi-Fi scanning, routing, public DNS, overlay-network DNS, and remote connectivity all remained healthy after the reboot. This confirms the missing/incompatible module was causal rather than a NetworkManager, iwd, DNS, or VPN configuration problem.

Expected behavior

An Omarchy update should not allow a reboot into a kernel for which a required, hardware-gated out-of-tree module is missing or failed to build.

For BCM4360 systems, a safe fix could combine:

  • using a broadcom-wl-dkms source package carrying the Linux 7.2 compatibility patch;
  • checking modinfo -k "$new_kernel" wl before offering/requiring a reboot;
  • surfacing a clear blocking warning if the required DKMS build failed; and
  • retaining the pre-update kernel or an LTS fallback until the module is verified.

This is related to, but different from, #8810: BCM4350 can use brcmfmac, whereas BCM4360 14e4:43a0 is intentionally assigned to wl by Omarchy and has no equivalent in-kernel fallback. Existing BCM4360 reports #5398 and discussion #6401 concern runtime instability after the module loads, not this Linux 7.2 build/upgrade failure.

The pre-update snapshot made recovery possible, consistent with Omarchy's system snapshot documentation. I can test an update guard or packaged driver patch on this machine.

Suggested triage labels: bug, mac, intel macs, device specific.

robertogogoni avatar Aug 31 '26 15:08 robertogogoni

I ran into this same issue on a late 2013 MacBook Pro (MacBookPro11,3) with the same BCM4360 (14e4:43a0). Same Omarchy path: kernel-specific broadcom-wl, no wl for a 7.2 kernel, no in-tree fallback.

A little digging with Grok revealed that Arch already has the 7.2 build fix in extra-testing: broadcom-wl-dkms 6.30.223.271-49 (2026-08-31). It includes the strncpy → strscpy/strscpy_pad patch and replaces broadcom-wl. extra is still -48.

Temporary workaround, done while still on 7.1 so this boot keeps Wi-Fi:

# Do not enable extra-testing as a repo. One-off signed package:
curl -fsSL -O https://geo.mirror.pkgbuild.com/extra-testing/os/x86_64/broadcom-wl-dkms-6.30.223.271-49-x86_64.pkg.tar.zst
curl -fsSL -O https://geo.mirror.pkgbuild.com/extra-testing/os/x86_64/broadcom-wl-dkms-6.30.223.271-49-x86_64.pkg.tar.zst.sig

# pacman -U --noconfirm will refuse the conflict (default is N). Remove first:
sudo pacman -R --noconfirm broadcom-wl
sudo pacman -U --noconfirm ./broadcom-wl-dkms-6.30.223.271-49-x86_64.pkg.tar.zst

Needs dkms and linux-headers for the running kernel (Omarchy’s BCM4360 install already pulls those). Confirm:

dkms status
# broadcom-wl/6.30.223.271, 7.1.11-arch1-1, x86_64: installed

modinfo wl | grep filename
# /lib/modules/$(uname -r)/updates/dkms/wl.ko.zst

After reboot on 7.1.11: Kernel driver in use: wl, module from the DKMS path, Wi-Fi connected.

When linux 7.2 + headers land, DKMS should build wl for that kernel during the update. If dkms install … -k 7.2… fails, do not reboot.

For me, running omarchy update after rebooting installed the dkms driver and a subsequent reboot retained Wi-Fi.

Once -49 reaches extra (and the Omarchy mirror), a normal omarchy update should replace broadcom-wl on its own. This is only a bridge until then.

frankjmattia avatar Sep 01 '26 18:09 frankjmattia

Related fix in https://github.com/omacom/omarchy/pull/10910 — extends broadcom-wl-dkms detection to BCM43224 (14e4:4353, MacBook Air 5,2). If the DKMS build failure in #9386 also affects other chips covered by fix-bcm43xx.sh, ensure linux-headers is installed alongside the driver.

Verified BCM43224 works with broadcom-wl-dkms + blacklist on Omarchy 4.0.3.

andyholst avatar Sep 12 '26 08:09 andyholst

Both failures in this report are fixed in Omarchy 4.0.3 and later, together with Arch's own repackaging of the driver.

  • The stale prebuilt module. Arch dropped the prebuilt broadcom-wl on 2026-09-02, and broadcom-wl-dkms 6.30.223.271-49 now carries replaces=(broadcom-wl). omarchy update runs pacman -Syu --noconfirm, so an install that still has broadcom-wl gets switched to the DKMS package on its next update, and the module gets rebuilt for each kernel that has headers. Omarchy 4.0.3 also changed install/hardware/fix-bcm43xx.sh to install broadcom-wl-dkms for 14e4:43a0 and 14e4:4331 (3248aa55c, backported from 649c0b743).
  • The DKMS build failing on Linux 7.2. Version -49 carries the strncpy → strscpy patch. I checked this on a disposable worker built from the current Omarchy ISO, running 7.2.5-3-omarchy with linux-omarchy-headers. The mirror serves -49, and broadcom-wl itself no longer exists there. Installing -49 built /lib/modules/7.2.5-3-omarchy/updates/dkms/wl.ko.zst with matching vermagic, and the source uses strscpy in linux_osl.c and wl_linux.c. The worker has no Broadcom card, so this shows the module builds on 7.2. It does not show Wi-Fi working on a BCM4360.

Your machine already had dkms and linux-headers from the 4.0.0–4.0.2 hardware script, so the swap covers it. Migrations 1789325478 and 1789444024 also install linux-omarchy-headers alongside the new default kernel. Machines that had broadcom-wl without stock linux-headers are a separate gap, tracked in #10975 with a proposed fix in #12074.

What this does not add is the guard you proposed: nothing in omarchy update checks modinfo -k <new kernel> wl before offering the reboot, and no DKMS build failure gets surfaced as a blocking warning. Whether to add one is a design decision for the maintainer.

Not a duplicate: #8810 (BCM4350 and brcmfmac) and #10975 (missing headers) have different causes.

Codex Medium gave the second opinion separately. It reached the same verdict, added the release backport commits and pointed out that omarchy-update-restart only checks whether the kernel was replaced. Its independence from my reasoning is not guaranteed. If you can confirm that a current omarchy update keeps Wi-Fi on your MacBookAir7,2, that settles it. Otherwise this waits on the maintainer to decide whether to close it or keep it open for the update guard.

omarchybot avatar Oct 09 '26 11:10 omarchybot

If you can test: https://github.com/neheb/linux/tree/linux-7.2.y

requires aur's b43-firmware.

neheb avatar Oct 23 '26 01:10 neheb