Jump to content
45 posts in this topic

Recommended Posts

Note:Β This text was part of the post [GUIDE] How to install macOS 14 Sonoma on Z390 Aorus Elite motherboard using OpenCore but I have moved it to a separate thread to make it easier to find for those still looking for this information.

Β 

Broadcom Wi-Fi stop working in Sonoma

Β 

Apple has dropped support for Broadcom Wi-Fi chipset used in pre-2017 Macs:

  • AirPortBrcmNIC.kext (IO80211FamilyLegacy.kext plugin) dependant
    • device-id pci12e4,43ba >> BCM43602
    • device-id pci12e4,43e3 >> BCM4350
    • device-id pci12e4,43a0 >> BCM4360
  • AirPortBrcm4360.kext (IO80211Family.kext plugin) dependant
    • device-id pci12e4,4331 >> BCM94331
    • device-id pci12e4,4353 >> BCM943224.

Many users including myself have used Fenvi T919 or Fenvi HB1200 PCI-express cards (Wi-Fi + Bluetooth combo) which have worked since at least High Sierra OOTB, without the need for additional drivers, automatically installed by macOS and recognized as Airdrop and Bluetooth by macOS.

Β 

Both Fenvi cards have the BCM4360 Wi-Fi chipset so they have stopped working in Sonoma. Bluetooth works well, as in Ventura and earlier. This is a serious inconvenience because most of the features associated with the Apple ecosystem are lost: Airdrop, Continuity, iPhone camera...

Β 

As extra information, Macs that can officially update to Sonoma have these Broadcom Wi-Fi:

  • 2017 iMacPro1,1 / 2018/2019 MacBookAir8,x -> BCM4355 (pci14e4,43dc)
  • 2018 MacMini8,1 / 2018/2019 MacBookPro15,x / 2019 iMac19,x / 2019 MacPro7,1 / 2019/2020 MacBookPro16,x / 2020 iMac20,x -> BCM4364 (pci14e4,4464)
  • 2020 MacBookAir9.1 -> BCM4377b (pci14e4.4488).

They are chipsets soldered on the board that are not sold on the market and we cannot got them to install a Wi-Fi compatible with Sonoma in our Hack.

Β 

Get back Fenvi Wi-Fi in Sonoma

Β 

OCLP developers have been working on this issue and have released a fix in OCLP 0.6.9 that makes Wi-Fi work again like it did in Ventura. I know it is not the ideal situation, many of us want to have the system as close as possible to a real Mac and OCLP has to apply root patches that force it to work by relaxing some macOS security rules. But what the OCLP team has achieved is a very big advance.

You have the instructions in this post (look for theΒ Hackintosh notesΒ section):

Early preview of macOS Sonoma support now available!

Β 

Note: OCLP developers prefer that we download OCLP from the link they post, for this reason I do not put a direct link here. It is a way to take users to the original post so that it can be read, which is highly recommended.

Β 

In summary, this is what to do:

  • System Integrity Protection disabled:Β csr-active-config=03080000
  • AMFI disabled:Β boot-args = amfi=0x80
  • Secure Boot Model = Disabled
  • Block com.apple.iokit.IOSkywalkFamily, setting MinKernel to 23.0.0 to ensure the patch is applied only in Sonoma
  • Inject 3 extensions (Kexts folder and config.plist): IOSkywalk.kext, IO80211FamilyLegacy.kext and AirPortBrcmNIC.kext (IO80211FamilyLegacy.kext plugin) in this order, setting MinKernel to 23.0.0 to ensure they are injected only in Sonoma
  • Reboot and apply OCLP root patch (Modern Wireless Network).

My Wi-Fi is Fenvi T919 so I have tried OCLP 1.0.0. I have followed the instructions TO THE LETTER and they have worked well. I have Wi-Fi and Airdrop in Sonoma. Please note thatΒ khronokernel instructions must be followed EXACTLY. In short, OCLP 1.0.0 or newer works, at least for me.

Β 

Wifiactiveagain.thumb.png.18bbed4d9b174ecbae2d08bfba6b1045.png

Β 

Don't forget to enable (Enabled=True) the 3 added extensions and the blocked extension. Important: com.apple.iokit.IOSkywalkFamily block must haveΒ Enabled=TrueΒ andΒ Strategy=Exclude. Otherwise, you may have kernel panic at boot.

Β 

Incremental updates are lost with this configuration, updates can be notified from Software Update but the full installation package is downloaded and not the delta package that only contains changes from the previous version. To obtain incremental updates you have to revert the OCLP root patch and restart but you lose Wi-Fi, keep this in mind if you depend on it to have Internet access, in this case do not revert root patch before proceeding with the update.

Β 

Note: After updating,Β you must ALWAYS reapply root patchΒ since macOS overwrites the files modified by the patch, installing original unmodified versions.

Β 

Note: OCLP has added basic support for 3rd party Broadcom chipsets, not officially supported as never shipped in any official Mac but supported by AirportBrcmFixup, these chipsets are used in Hackintoshes:

  • device-id pci12e4,4357 >> BCM43225
  • device-id pci12e4,43B1 >> BCM4352
  • device-id pci12e4,43B2 >> BCM4352 (2.4 GHz).

AMFI and AMFIpass.kext

Β 

AMFI (Apple Mobile File Integrity) was originally seen on iOS but migrated to macOS in 10.12 Sierra, possibly in 2012 when GateKeeper and digitally signed code were introduced. In short, it is a technology that blocks the execution of non signed code. It consists of 2 components:

  • /usr/libexec/amfidΒ service run as root fromΒ /System/Library/LaunchDaemons/com.apple.MobileFileIntegrity.plist
  • /System/Library/Extensions/AppleMobileFileIntegrity.kext.

AMFI must be enabled to grant third-party applications access to privacy-relevant services and/or peripherals, such as external cameras and microphones. But, with SIP and/or AMFI disabled (a necessary condition to apply OCLP root patches) the dialog box to grant access to those applications is not shown to the user so those peripherals simply cannot be used in applications like Zoom or MS Teams, for example.

Β 

AMFI is usually enabled but it has already been seen that OCLP root patches require disabling AMFI and SIP in order to be applied. To avoid the problem of peripherals not working with third-party applications, OCLP team has developed theΒ AMFIPass.kextΒ extension (1.3.0 release) that allows AMFI to be enabled when the system must operate with AMFI and SIP disabled, such as when using OCLP to applying root patches. This fixes the permissions issue and OCLP can apply the patches as if AMFI were disabled.

Β 

If macOS has previously given permissions to these third-party applications and then AMFI and/or SIP is disabled, these permissions are transferred and the new system maintains them. But in a clean installation they do not exist. This is the main problem that AMFIPass.kext tries to solve. Being able to root patch OCLP with AMFI enabled is just a positive side effect.

Β 

In summary, when applying OCLP root patches you can act in 2 different ways:

  • with boot argumentΒ amfi=0x80Β without AMFIPass.kext.Β amfi=0x80Β is a bitmask that disables AMFI completely. The value 0x80 is equivalent toΒ AMFI_ALLOW_EVERYTHING
  • with AMFIPass.kext 1.3.0 removingΒ amfi=0x80Β and addingΒ -amfipassbetaΒ in boot args.

TheΒ -amfipassbetaΒ boot argument is provided by AMFIPass.kext 1.3.0 to override kernel version checking, so that the extension is loaded regardless of the macOS version. This way AMFIPass can work on macOS beta for which the extension does not yet have support.

Β 

Note: current AMFIPass.kext 1.4.0 doesn't need anymore -amfipassbeta boot arg on Sonoma.

Β 

I use AMFIPass.kext, removingΒ amfi=0x80. If OCLP root patching fails due to this setting, you can temporarily disable AMFI with the boot argumentΒ amfi=0x80, apply the patches, reboot, removeΒ amfi=0x80, and reboot again.

Β 

(Credits toΒ 5T33Z0Β for much of the explanatory text about AMFI and AMFIPass.kext).

Β 

Note: there’sΒ a semi-automated patch available, thanks to AppleOSX, aplicable only when installing from USB, tried with success ->Β link.

Edited by miliuco
  • Like 6
  • Thanks 1
  • 1 month later...

macOS Sonoma 14.4 breaks OCLP patch

Β 

In the beta versions of macOS 14.4, Apple has modified parts of the Wi-Fi stack and OCLP root patch has stopped working so the Fenvi and Broadcom Wi-Fi are no longer operational.

Β 

To recover these Wi-Fi, 2 changes are required:

  • OLCP 1.4.2 >>Β Link
  • replaceΒ IOSkywalkFamily.kext, current version is 1.0.0 and you have to change to version 1.1.0, also available on the OLCP GitHub >> payloads >> Kexts >> Wifi >>Β Link

How to make the change?

  • replaceΒ IOSkywalkFamily.kext, revert OCLP root patch and reboot
  • apply root patch of OCLP 1.4.2 and reboot.

The other settings do not change.

Β 

Note: Keep in mind that this may have more changes in subsequent macOS versions. But at least for now, in the final 14.4, this OCLP tweak works.

  • Like 4

Thanks for the info but we don't have real Macs. OCLP is for real Macs right? Exactly what is OCLP doing other than loading more kexts to override the HW interfaces. I have 14.4 and would like to stand up a T-919. May I see your EFI?

Β 

Maybe I found it. Do I just use how-to-config-fenvi and add amfipass.kext?

Β 

Where doesΒ IOSkywalkFamily.kext get located? In OC/KEXTS?

Edited by jrhende

@jrhende

The first post is enough explanatory.

Of course, extensions always go in the OpenCore Kexts folder.

Although OCLP is designed for use on real Macs, it is useful when applying the root patch that allows you to recover Broadcom Wi-Fi on Hacks.Β 
Yes,Β how-to-config-fenvi and amfipass.kext are for this task. Adding them to the base config.Β 
Second post is for Sonoma 14.4.

Β 

Edited by miliuco
  • Like 1

Hey there @miliuco,

Β 

Thanks for your help. I followed the directions and can got wireless turned on but did not see any networks so I did the OCLP patch thing and then the system would not boot.

AddedΒ amfi=0x80 and the system booted and could see and connect to wireless networks. All good.Β πŸ‘

Β 

Dislike having OCLP patch OSX and now alsoΒ code signing has to be off all the time.πŸ‘Ž

Edited by jrhende
  • Like 2

@jrhende

Your config.plist is okey. I prefer Lilu as first kext and VirtualSMC as second kext but it has nothing to do with your EFI.

But config settings without OCLP root patch -> not working wifi. OCLP root patch is mandatory. You must:

  • download OCLP (latest is 1.4.2)
  • open OCLP -> go to Post-Install Root Patch button
  • if you see Networking Modern Wireless button enabled, click it
  • reboot
  • connect to wireless network.

This must be done after each update since macOS overwrites the files installed by OCLP.

Β 

Β 

Β 

  • Like 3
12 hours ago, jrhende said:

Dislike having OCLP patch OSX and now alsoΒ code signing has to be off all the time.πŸ‘Ž

Yes, this is the main disadvantage of the OCLP patch, having macOS working with relaxed security. Code signing is working but Apple Secure Boot (SecureBootModel in OpenCore) is disabled, so macOS allows to boot from systems not verified and approved by Apple. I think that this is not a so serious issue for users who have the Hack as personal computer but it can be more important if the Hack is for business orΒ works that require complete security.

  • Like 3

Update. Discovered that I had to add amfi=0x80 due to Amfipass.kext not being loaded. Used proper tree and it asked if I wanted to fix an inheritance issue between amfipass.kext andΒ IOSkywalkFamily.kext (maybe not this one but one of the new kexts). Said yes and proper tree reordered my kexts in config.plist. Took out amfi=0x80 and it boots again w/o it.Β 

Β 

Updated system to 14.4.1 and OCLP had a background task that asked if I wanted to patch the system again. Said yes, it patched and rebooted. All good.

Β 

WiFi works along with AirDrop with a Fenvi T919 in 14.4.1 Sonoma on a HP 800 G5 SFF. Also mapped my USB Ports using USBToolBox in Windows to get my internal (on motherboard) USB port to work so I could plug in the BlueTooth 4.X Fenvi cable. Bluetooth now also works. I'd like to investigate finding a BT 5.0 or even 5.1 to work in my hack. Want this to connect to my stereo in another room.

Β 

Thank you all for your help. Especially @miliuco

  • Like 1
  • 3 weeks later...

Note: there’s a semi-automated patch available, thanks to AppleOSX, aplicable only when installing from USB, tried with success ->Β link.

Edited by miliuco
  • Like 1
  • 7 months later...

Β 

Maestro Perez, I hope you see this soon, one question the Β PatchSonomaWiFiOnTheFly (PSWFOTF) needs al the other modifications in the config Β likeΒ AddedΒ amfi=0x80,Β Β IOSkywalkFamily.kext,AMFI and AMFIpass.kext , and this ?Β 

  • Inject 3 extensions (Kexts folder and config.plist): IOSkywalk.kext, IO80211FamilyLegacy.kext and AirPortBrcmNIC.kext (IO80211FamilyLegacy.kext plugin) in this order, setting MinKernel to 23.0.0 to ensure they are injected only in Sonoma ?

or is super automatc ?

Thanks fro your help, wifi is working, this is my efi, but as soon as I restart withoutΒ Β amfi=0x80 it hangs like in the picture I sent, can you help me? im worried that something is yet amiss

Β 

Β 

BTW I usedΒ IOSkywalkFamily.kext V1.2 Β <<<<<<<<<< didn't found the 1.1 kext

Β 

Β Added Β AMFIPass.kext V1.4.1

AddΒ IO80211FamilyLegacy.kext V1.0 and its plugin IO80211FamilyLegacy.kext/Contents/PlugIns/AirPortBrcmNIC.kext (in this order in OC config) <<< there no 1.2 of this key

Β 

Β 

Β 

Β 

Β 

EFI.zip

7 minutes ago, aberracus said:

Thanks fro your help, wifi is working, this is my efi, but as soon as I restart withoutΒ Β amfi=0x80 it hangs like in the picture I sent, can you help me? im worried that something is yet amiss

If it works withΒ amfi=0x80 bootarg, then there is no need to worry...

  • Like 1
1 hour ago, aberracus said:

if I remove booting withΒ BootargΒ amfi=0x80Β it just hangs on the start

HI, please update your kexts

Β 

Screenshot2024-12-10alle23_44_56.png.a38f0cb93c893dd38b52edf95f931627.png

Β 

Β 

Screenshot2024-12-10alle23_28_23.thumb.png.d47aa0af14e1757668fbbbc7de085288.png

What would your network card be?Β ...you have 4 kexts, a bit too many perhaps

Β 

Spoiler

Screenshot2024-12-10alle23_30_05.thumb.png.efdb10b1ab008b6a6b7182b0769d1ed0.png

Β 

Edited by Anto65
  • Like 1

@aberracus

Β 

I guess that there are Adobe apps not working on Sonoma and Sequoia with amfi=0x80 since this disables AMFI completely.Β 

But it's worth trying because some of them may work.

With AMFIPass.kext 1.4.1 you have AMFI enabled but OCLP can do root patch too.

  • Like 2
  • 3 months later...
10 hours ago, Anto65 said:

OCLP 2.3.2

Screenshot2025-04-04alle16_23_34.png.5c4e2a622eb4108749f18614acb7028b.png

πŸ€©πŸ‘ŠπŸ»πŸ΄β€β˜ οΈπŸ–€πŸ€πŸ‘πŸ»πŸ‘πŸ»

  • Like 1
  • 1 month later...
×
×
  • Create New...