My ageing Mac mini running macOS High Sierra 10.13.4 was finally hosed by Apple's Security Update 2018-001 (the one for the debug exception). Both 10.13.4 Recovery and 10.13.4 Internet Recovery failed to boot, but the 'D' built-in hardware test seemed to give the machine a clean bill of health. Apple support said the machine was no longer supported.
I was left with a machine that could at least boot single-user, albeit with no means to mount msdos because SIP claimed
FreeBSD to the rescue, then. };o)
After quite a lot of fiddling about, reading and re-reading the bwn() man page, I found the insightful material at: Landon Fuller's site.
This led me to some more experiments with
11.2-BETA1
FreeBSD monkeycup 11.2-BETA1 FreeBSD 11.2-BETA1 #0 r333761: Fri May 18 00:31:34 BST 2018
/boot/loader.conf:
/etc/rc.conf:
pcib4: <ACPI PCI-PCI bridge> at device 28.1 on pci0
pci4: <ACPI PCI bus> on pcib4
bwn_pci0: <Broadcom BCM4331 802.11n Dual-Band Wireless> mem 0xa8600000-0xa8603fff at device 0.0 on pci4
bhndb0: <PCI-BHND bridge> on bwn_pci0
bhnd0: <BCMA BHND bus> on bhndb0
bhnd_chipc0: <Broadcom ChipCommon I/O Controller, rev 37> mem 0x18000000-0x18000fff,0x18100000-0x18100fff at core 0 on bhnd0
bhnd_hostb0: <Broadcom PCIe-G1 Host-PCI bridge, rev 19> mem 0x18002000-0x18002fff,0x8000000-0xfffffff,0x8000000000000000-0xffffffffffffffff,0x18102000-0x18102fff,0x18103000-0x18103fff at core 2 on bhnd0
bwn0: <802.11 MAC/PHY/Radio> mem 0x18001000-0x18001fff,0x18101000-0x18101fff at core 1 on bhnd0
bwn0: got rid=0 res=0xfffff800045baaf0
bwn0: got macaddr 28:37:37:12:70:b3
...but:
#
net.wlan.devices:
#
ifconfig: SIOCIFCREATE2: Device not configured
Since the driver is able to drag the MAC address out of the hardware, it feels like it's on the cusp of working(!)
Thank you, Landon Fuller et. al.
Question: Does anyone out there already have the BCM4331 taking traffic on FreeBSD, or am I going to have to dig into the driver source code next?
I was left with a machine that could at least boot single-user, albeit with no means to mount msdos because SIP claimed
mount_msdos
had an incorrect signature. SIP can be removed... but only from within Recovery Boot, not single-user mode. FreeBSD to the rescue, then. };o)
After quite a lot of fiddling about, reading and re-reading the bwn() man page, I found the insightful material at: Landon Fuller's site.
This led me to some more experiments with
kldload
/ kldstat
, culminating in:11.2-BETA1
FreeBSD monkeycup 11.2-BETA1 FreeBSD 11.2-BETA1 #0 r333761: Fri May 18 00:31:34 BST 2018
/boot/loader.conf:
Code:
bhnd_load="YES"
bwn_v4_ucode="YES"
bwn_v4_n_ucode="YES"
if_bwn_pci_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
/etc/rc.conf:
Code:
wlans_bwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
[FONT=Courier New]dmesg[/FONT]
pcib4: <ACPI PCI-PCI bridge> at device 28.1 on pci0
pci4: <ACPI PCI bus> on pcib4
bwn_pci0: <Broadcom BCM4331 802.11n Dual-Band Wireless> mem 0xa8600000-0xa8603fff at device 0.0 on pci4
bhndb0: <PCI-BHND bridge> on bwn_pci0
bhnd0: <BCMA BHND bus> on bhndb0
bhnd_chipc0: <Broadcom ChipCommon I/O Controller, rev 37> mem 0x18000000-0x18000fff,0x18100000-0x18100fff at core 0 on bhnd0
bhnd_hostb0: <Broadcom PCIe-G1 Host-PCI bridge, rev 19> mem 0x18002000-0x18002fff,0x8000000-0xfffffff,0x8000000000000000-0xffffffffffffffff,0x18102000-0x18102fff,0x18103000-0x18103fff at core 2 on bhnd0
bwn0: <802.11 MAC/PHY/Radio> mem 0x18001000-0x18001fff,0x18101000-0x18101fff at core 1 on bhnd0
bwn0: got rid=0 res=0xfffff800045baaf0
bwn0: got macaddr 28:37:37:12:70:b3
...but:
#
sysctl net.wlan.devices
net.wlan.devices:
#
ifconfig wlan0 create wlandev bwn0
ifconfig: SIOCIFCREATE2: Device not configured
Since the driver is able to drag the MAC address out of the hardware, it feels like it's on the cusp of working(!)
Thank you, Landon Fuller et. al.
Question: Does anyone out there already have the BCM4331 taking traffic on FreeBSD, or am I going to have to dig into the driver source code next?