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 [FONT=Courier New]bwn()[/FONT] man page, I found the insightful material at: Landon Fuller's site.
This led me to some more experiments with
[FONT=Courier New]11.2-BETA1
FreeBSD monkeycup 11.2-BETA1 FreeBSD 11.2-BETA1 #0 r333761: Fri May 18 00:31:34 BST 2018[/FONT]
[FONT=Courier New]/boot/loader.conf:[/FONT]
[FONT=Courier New]/etc/rc.conf:[/FONT]
[FONT=Courier New]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[/FONT]
...but:
[FONT=Courier New]# [/FONT]
[FONT=Courier New]
net.wlan.devices:
# [/FONT]
[FONT=Courier New]
ifconfig: SIOCIFCREATE2: Device not configured [/FONT]
[FONT=Arial]Since the driver is able to drag the MAC address out of the hardware, it feels like it's on the cusp of working(!)[/FONT]
[FONT=Arial]Thank you, Landon Fuller et. al.[/FONT]
[FONT=Arial]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?[/FONT]
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 [FONT=Courier New]bwn()[/FONT] man page, I found the insightful material at: Landon Fuller's site.
This led me to some more experiments with
kldload
/ kldstat
, culminating in:[FONT=Courier New]11.2-BETA1
FreeBSD monkeycup 11.2-BETA1 FreeBSD 11.2-BETA1 #0 r333761: Fri May 18 00:31:34 BST 2018[/FONT]
[FONT=Courier New]/boot/loader.conf:[/FONT]
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"
[FONT=Courier New]/etc/rc.conf:[/FONT]
Code:
wlans_bwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
[FONT=Courier New]dmesg[/FONT]
[FONT=Courier New]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[/FONT]
...but:
[FONT=Courier New]# [/FONT]
sysctl net.wlan.devices
[FONT=Courier New]
net.wlan.devices:
# [/FONT]
ifconfig wlan0 create wlandev bwn0
[FONT=Courier New]
ifconfig: SIOCIFCREATE2: Device not configured [/FONT]
[FONT=Arial]Since the driver is able to drag the MAC address out of the hardware, it feels like it's on the cusp of working(!)[/FONT]
[FONT=Arial]Thank you, Landon Fuller et. al.[/FONT]
[FONT=Arial]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?[/FONT]