Jump to content
767 posts in this topic

Recommended Posts

@acquarius13 I'm both excited by and frustrated by your statement that there is another OCLP 0.6.9 Sonoma source repository that is not the source mentioned here.  I used the command "git clone https://github.com/dortania/OpenCore-Legacy-Patcher" as specified in the OCLP build instructions to retrieve the source, but as I now know, this gets the wrong OCLP version (even though it is version 0.6.9).  I'm frustrated because, as you can imagine, one of the first things I searched for in the source were the words "modern" and "wifi" only to find that the source makes no mention of "modern" "wifi".  The only mention of "wifi" in this source is legacy_wifi (which is why I initially thought setting self.legacy_wifi = True was correct for forcing Wi-Fi patching.  It's also why I abandoned modifying OCLP source (not getting it to work) and pursued an ACPI patching solution.  Knowing that there is another version of source with variable modern_wifi makes sense and is good, but is very frustrating.  A LOT of time wasted.

 

At this time, I am still only able to apply modern_wifi patches to my hack with the nightly build of OCLP 0.6.9 here (after spoofing Wi-Fi with ACPI patches).

 

I'm looking forward to learning about how you discovered the other OCLP source for 0.6.9 and hopefully the link to this other OCLP repo.

Edited by deeveedee
  • Like 1

Dear @deeveedee @jsl2000 and @cankiulascmnfye,

 

I try to reply to all of you on the same message, so please don't shoot at me :D

 

I used the sonoma-develpment branch to build the OCLP: on OCLP main github page, switch from main to sonoma-develpoment branch (red circle). Then, click on the code button (green circle) and download the entire branch as a zip file. Unzip it and start to work inside of that, searching for the sys_patch_detect.py (you can open using a plain text editor), set the self.modern_wifi variable to True and then start to build the project.image.thumb.png.9df3477b8da693ea1f4ef3bd275f32a6.png

 

To build the project itself, read the source.md file of the repository branch (orange circle) and apply all those steps to have a working sonoma version of OCLP that should patch also your systems. Yimage.thumb.png.b184e50dbc64219235d3afcecc921962.png

 

Don't forget to set properly your EFIs, as stated and mentioned by @deeveedee https://github.com/dortania/OpenCore-Legacy-Patcher/pull/1077#issuecomment-1646934494

 

Hopefully, you should be able to patch your modern wifi and to have it working. By the way, do not apply both legacy and modern patches: some days ago I tried it and it didn't work for me. I had to revert all the patches and to apply only the modern wifi set of patches. To be precise, I made my tests on my Latitude E7450, which had to be patched in any cases since it is a Broadwell laptop.

Don't know if this can be useful to everyone: sometimes OCLP seems not to work properly. This should be because of a missing internet connection. So perform your tests with an ethernet connection, possibly.

 

I hope to had been clear enough for everyone.

 

Have a nice day

  • Like 2
  • Thanks 1
12 hours ago, acquarius13 said:

I was able to make my Dell DW1560 (BCM4352) wireless working by forcing the modern wireless patch (not the legacy one) as reported various times by @deeveedee during OCLP sonoma development build (I was lucky because I had an ethernet connection to use while building OCLP).

EFI must be correctly set, then apply the OCLP patches and, at the reboot, I had to unlink my wifi connection from macOS and reconnect again.

Then, I was finally able to have wireless connection!

 

Next step: installing the new sonoma beta 4 (2nd public beta). I hope to report it soon

 

I also had to build OCLP over cable (Ethernet) internet in Sonoma, with the commands reported in recent posts.
But after building Night Build 0.6.9 it worked perfect without further tweaks. No flaws. And I disable the AirportBrcmFixup.kext (I even remove it) because the patcher is injected into the DSDT. As opposed to some posts guessing something else. I no longer use BlueToolFixup for Ventura and only for Sonoma. And I have without them the Native HID Proxy again, no need for tweaks and Patchers.

 

 

 @jsl2000

 

Thanks. I knew the part about the Sonoma Branch. But the terminal commands need to be adjusted to take the different name of the branch into account.

 

Prerequisites

 

Building OCLP

  • Dowlonad the Source of the Sonoma Development Branch and unzip it
  • Enter in Terminal:
    cd ~/Downloads/OpenCore-Legacy-Patcher-sonoma-development
    pip3 install -r requirements.txt
  • Wait until the downloads and installations for the pip3 stuff has finished
  • In /Downloads/OpenCore-Legacy-Patcher-sonoma-development/resources/sys_patch/sys_patch_detect.py, change the following (open with IDLE or TextEdit or Visual Studio Code or Xcode) (Thanks @acquarius13)
    • For Modern WiFi Cards (= Broadcom BCM94350, BCM94360, BCM43602, BCM94331, BCM943224): set self.modern_wifi  = True
    • For Legacy WiFI Cards (= Atheros Chipsets used in legacy Macs, Broadcom BCM94322): self.legacy_wifi  = True

  • Enabled either Modern or Legacy, not both!!! It will break WiFi.
  • Next, build the Patcher App (Double-Click on OpenCore-Patcher-GUI.command). The GUI will pop-up automatically.
  • Click on "Post-Install Root Patch". You should be greeted by this (Graphics patches vary based on used CPU):

403798316_Bildschirmfoto2023-08-02um11_12_24.png.7b944c8bdf5e5a1ed396b7a93fe391a9.png

Patching… In my case, it's for a BCM94352HMB (Modern)

 

366682814_Bildschirmfoto2023-08-02um11_17_12.png.ad94650eb54ff5401f2320bb89b8c24b.png

And…after reebooting… it's WORKING:…

1841481226_Bildschirmfoto2023-08-02um11_19_25.thumb.png.42f9df96caa57f9bcfeb1a4d596c5735.png

 

NO additional Binary Renames or SSDTs required!

 

NOTE: This workaround will probably no longer be required once the official Patcher for Sonoma is released and the option for root patching WiFi funtionality can either be enabled in the GUI or the detection for used cards in Wintel machines works better. After all this Patcher was written for real Macs after all.

 

Edited by cankiulascmnfye
  • Like 3

@cankiulascmnfye I took for granted that you had to change the working directory in terminal to work inside the sonoma-development directory but this is one of the reason why I posted a sort of "to do list" instead of attaching something to be used "as it is"

  • Like 2
14 minutes ago, acquarius13 said:

@cankiulascmnfye I took for granted that you had to change the working directory in terminal to work inside the sonoma-development directory but this is one of the reason why I posted a sort of "to do list" instead of attaching something to be used "as it is"

 

I understand. But the instructions in the SOURCE.md refer to the Master branch. So people who would just copy and paste these command (which they do all the time) would just build the "regular" Patcher. That's why I posted the modified commands.

47 minutes ago, acquarius13 said:

@cankiulascmnfye I took for granted that you had to change the working directory in terminal to work inside the sonoma-development directory but this is one of the reason why I posted a sort of "to do list" instead of attaching something to be used "as it is"

Thanks after following your instruction I can patch BCM4352 with Modern Wireless, but it got such an error and quit automatically.

How can I fix it ?

Screenshot 2023-08-02 at 4.54.10 PM.png

Screenshot 2023-08-02 at 5.12.38 PM.png

Edited by jsl2000

@jsl2000 Follow my instructions above. It works. https://www.insanelymac.com/forum/topic/357087-macos-sonoma-wireless-issues-discussion/?do=findComment&comment=2809431

 

Thanks to @acquarius13 for the tip on how to enable modern/legacy Wifi patching in the source code. I guess the GUI needs to be updated in future releases so people can just switch it on or off from the Settings menu.

 

Edited by cankiulascmnfye
  • Like 3
1 hour ago, cankiulascmnfye said:

@jsl2000 Follow my instructions above. It works. https://www.insanelymac.com/forum/topic/357087-macos-sonoma-wireless-issues-discussion/?do=findComment&comment=2809431

 

Thanks to @acquarius13 for the tip on how to enable modern/legacy Wifi patching in the source code. I guess the GUI needs to be updated in future releases so people can just switch it on or off from the Settings menu.

 

Thanks, but follow your instruction still got this same error during patching.

Screenshot 2023-08-02 at 7.03.55 PM.png

26 minutes ago, jsl2000 said:

Thanks, but follow your instruction still got this same error during patching.

Screenshot 2023-08-02 at 7.03.55 PM.png

 

Run "Build Binary.command" before building the App so the Universal Binaries are present. I did this as well but I am not sure if this is a requirement.

Edited by cankiulascmnfye
  • Like 1

This is great!  Will be much better when the OCLP GUI offers modern wifi as a patching option.  Use boot-arg -brcmfxbeta instead of -lilubetaall if you want to modify the behavior of only the AirportBrcmFixup.kext instead of all Acidanthera Lilu-based kexts.

 

@acquarius13 This is a great find.  Thank you.  Much easier than patching ACPI.  Unfortunately for the ACPI patching solution, it can only be used to patch OCLP (since the ACPI patches affect the behavior of Wi-Fi and can't be used during normal operation of macOS).

Edited by deeveedee
  • Like 4
55 minutes ago, acquarius13 said:

@jsl2000 delete the files you are working on, download again the sonoma-developer branch and start again to build your OCLP. Rember to modify the .py file (textedit is sufficient to edit it) prior to build OCLP 

Thanks, but follow this still got the same error again !

48 minutes ago, cankiulascmnfye said:

 

Run "Build Binary.command" before building the App so the Universal Binaries are present. I did this as well but I am not sure if this is a requirement.

Thanks, but follow this still got the same error again !

@jsl2000  This is the content of my Source Code folder. Besides the I just ran Build-Binary and OpenCore-Patcher-Gui.command. I also noticed that I added AutoPkgInstaller.kext to my EFI folder for testing. But I don't know if this makes any difference. I don't really know how that kext works. It's in the payloads folder. It was on by accident.

2035328417_Bildschirmfoto2023-08-02um14_30_42.png.f32309eb3c40f1b4e27f6008b1a0162c.png

Edited by cankiulascmnfye
  • Like 1
51 minutes ago, cankiulascmnfye said:

@jsl2000  This is the ontent of my Source Code folder. Besides the I just uilt it and then ran it.

2035328417_Bildschirmfoto2023-08-02um14_30_42.png.f32309eb3c40f1b4e27f6008b1a0162c.png

Can you share your payloads.dmg or payloads/Universal-Binaries folder to me because which was missing in mine ?

Screenshot 2023-08-02 at 9.26.16 PM.png

Edited by jsl2000

Keep in mind that our experiences with building from OCLP source may vary and differ from each other's experiences, because we're retrieving source from a changing repository that is in active development.  There may be times when a recent commit has broken something and other times where a recent commit changes the behavior of something.  

 

Be sure to read the commits before blindly retrieving source.

@jsl2000 If you can't get it to work, I can't fix it for you since I am not trained in programming. From the look of things you are missing the Universal Binaries! So you either have to build those or wait until the next revision of the official patcher is released or try soemething else! Sorry.

Edited by cankiulascmnfye

[Solved]

After midified my OC's config.plist either SSDT-ARPT.aml or Add DeviceProperties method both enable BCM4352 adapter properly at Sonoma now !

Correct way to enable BCM4352 in my Z77 hackintosh:

1. Boot with either Config-SSDT-ARPT.plist or Config-DeviceProperties.plist

2. Apply OCLP 0.6.9 of this version:

3. Reboot after successful patch of Modern Wireless

4. Working with BCM4352 adapter now.

Screenshot 2023-08-03 at 9.53.50 AM.png

Screenshot 2023-08-03 at 10.04.28 AM.png

Screenshot 2023-08-03 at 10.04.56 AM.png

Screenshot 2023-08-03 at 10.05.24 AM.png

SSDT-ARPT.aml

 

config-SSDT-ARPT.plist config-DeviceProperties.plist

Edited by jsl2000
  • Like 4
1 hour ago, jsl2000 said:

At present the only way to enable BCM4352 in my Z77 hackintosh are:

1. Insert BCM4360 adapter at PCIe x1 and got correct PCIe from Hackintool

2. Boot with SSDT-ARPT-BCM4360.aml

3. Apply OCLP 0.6.9 of this version:

4. Reboot after successful patch of Modern Wireless and make sure BCM4360 adapter working without issues

5. Shutdown and replaced BCM4360 with BCM4352 adapter in another PCIe x1 slot

6. Boot with SSDT-ARPT.aml which's compatible with BCM4352 adapter (checked by Hackintool)

7. Working again with BCM4352 adapter now.

Screenshot 2023-08-03 at 9.53.50 AM.png

Screenshot 2023-08-03 at 10.04.28 AM.png

Screenshot 2023-08-03 at 10.04.56 AM.png

Screenshot 2023-08-03 at 10.05.24 AM.png

SSDT-ARPT-BCM4360.aml 240 B · 1 download SSDT-ARPT.aml 240 B · 0 downloads config.plist 52.85 kB · 0 downloads

config-BCM4352.plist 53.02 kB · 0 downloads

I am in no way experienced with Hackintosh but you Kernal-Add looks very busy 

Edited by surenmunoo
On 8/2/2023 at 1:07 PM, jsl2000 said:

Thanks, but follow your instruction still got this same error during patching.

Screenshot 2023-08-02 at 7.03.55 PM.png

I might have found what this issue was about. I tried to patch my Z240 workstation (I have a DW 1560 here too) and I found the same error because of a proper python installation (probably I had an older installation) but, mostly, I didn't have the PATH (environmental variable) properly set. Try to install again python, then repeat the passages written in the source.md page of OCLP-sonoma-development. At a certain point, the Terminal should tell you that python is installed but PATH isn't correctly configured (I don't remember which directory has to be added to PATH to make it work). In any case, after properly setting the PATH and restarting the terminal, you should be able to build your own copy of OCLP

  • Like 1

@jsl2000 Glad you at least have a working solution and am pleased to see that you have mastered Wi-Fi ACPI patching!  Well done.  Here are a few things I observed/questioned:

  • You have rtcfx_exclude=00-FF paired with RTCMemoryFixup.kext.  My experience is that excluding the entire 00-FF range breaks power management (maybe other things).  It would be better for you to change RTC memory length to 0x2 (the way CLOVER fixes RTC) and to eliminate RTCMemoryFixup.
  • What is your AirportBrcmFixup Min/MaxKernel strategy.  I don't understand the Min/Max limits you are imposing
    Spoiler

    738753216_Screenshot2023-08-03at10_26_58AM.png.d10dd4e543d8c437ad3d78d65e7a2afb.png

  • Is OpcodeEmulator.kext helping you with anything?
  • You shouldn't need these kernel patches anymore after you use AMFIPass.kext 1.3.1 (with boot-arg -amfipassbeta for Sonoma)
    Spoiler

    159464774_Screenshot2023-08-03at10_33_07AM.png.bdc13269e602e0460337b5c73a429845.png

  • You shouldn't need boot-arg -lilubetaall since you're using -brcmfxbeta
  • After applying OCLP post-install patches, I must remove Wi-Fi ACPI patches for proper operation of Wi-Fi.  I only use Wi-Fi spoofing to apply the patches and not during normal operation.  I keep one config.plist with Wi-Fi spoofing (to be used when applying OCLP post-install patches) and one config.plist without Wi-Fi spoofing (for normal operation).  This is one thing that I miss from CLOVER - the ability to select config.plist at boot time would be a great feature in Open Core.
Edited by deeveedee
  • Like 2
3 hours ago, acquarius13 said:

I might have found what this issue was about. I tried to patch my Z240 workstation (I have a DW 1560 here too) and I found the same error because of a proper python installation (probably I had an older installation) but, mostly, I didn't have the PATH (environmental variable) properly set.

I didn't have to set PATH.  I followed the build instructions here after installing Python3 as follows:

  • Install Python 3.10.11 (April 5, 2023) from here
  • Use pip3 and python3 commands when building OCLP 
  • If Python complains about missing dependencies, google them and install missing dependencies
Edited by deeveedee
  • Like 1

For those how have a TP-Link Archer T9 the patcher activates this card as well since it's basically a BCM4360 but because it has no Bluetooth AirDrop and Continuity won't work unless you have a compatible Bluetooth dongle. (mine didn't work though)

  • Like 1
5 minutes ago, Cyberdevs said:

For those how have a TP-Link Archer T9 the patcher activates this card as well since it's basically a BCM4360 but because it has no Bluetooth AirDrop and Continuity won't work unless you have a compatible Bluetooth dongle. (mine didn't work though)

 

Cyber are you think that a combo intel like AX211 with a dongle Bluetooth compatible with macOs will possible work Airdrop? 

 

I ordered just for test an dongle from Amazon, like photo KNIVO USB BT.

 

I want understand mechanism of Airdrop if only will work with Broadcom native or not. 

 

First im think use with intel combo, bit I have Fenvi combo too. 

 

Thanks again!!!

 

 

IMG_2111.jpg

IMG_2110.jpg

×
×
  • Create New...