Jump to content

Broadcom bcm57781 - how do I patch the kext for ML 10.8.5?


  • Please log in to reply
90 replies to this topic

#61
ufoleet

ufoleet

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Anyone have a working drivers for BCM57781 for the latest Yosemite release? I have Asrock Z77 Extreme4 motherboard and no WiFi so I can't get ethernet to work.



#62
MikeKiller

MikeKiller

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts

Patch from 10.10dp6 works on 10.10 final. In some cases you'll have to manually patch the plist file.



#63
Forbidden Era

Forbidden Era

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

I'm having trouble patching the kext for 10.9.5..

 

I can't seem to find the correct areas to patch regardless of what kext version I'm using.

 

I need to patch it for dev id 164c : Broadcom NetXtreme BCM5708

 

Any help is greatly appreciated! Last step in having my haXserve running (poweredge 2950)

 

Really, all I need is the appropriate kext to patch I would guess / addresses to patch. I searched for all the addresses I could find in this and other threads and no luck with any of the versions of the driver I have.



#64
oswaldini

oswaldini

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 166 posts
  • Gender:Male
  • Location:Cracow, Poland

Anyone have patch for 57781 (ASRock Z77 Fatallity) for 10.10.2 ? The old one work up to 10.10.1.



#65
forumi0721

forumi0721

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

Hi

Here is binary patched BCM57781 for 10.10.2
 
Here is Clover EFI bootloader KextsToPatch section code for 10.10.2
 
And Clover KextsToPatch Code
Spoiler

 


#66
oswaldini

oswaldini

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 166 posts
  • Gender:Male
  • Location:Cracow, Poland

Thanks !



#67
brightskylee

brightskylee

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hello guys

 

Does any one have a binary patched for BCM57785 for 10.10.2. Many Thanks



#68
ericw12

ericw12

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

 

Hi

Here is binary patched BCM57781 for 10.10.2
 
Here is Clover EFI bootloader KextsToPatch section code for 10.10.2
 
And Clover KextsToPatch Code
Spoiler
 

 

The binary works, but Clover patch did not.

 

In the kextpatch, I have a pci14e4,16b5, and this did not work. I only changed the plist patch from pci14e4,16b4 to pci14e4,16b5. Everything else is same as what you have. Am I missing something?

 

Thanks



#69
luxinhaus

luxinhaus

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 136 posts
  • Gender:Male

BCM57781 patch is not for BCM57785



#70
ericw12

ericw12

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

The binary works, but Clover patch did not.

 

In the kextpatch, I have a pci14e4,16b5, and this did not work. I only changed the plist patch from pci14e4,16b4 to pci14e4,16b5. Everything else is same as what you have. Am I missing something?

 

Thanks

 

 

Installed the Kext to S/L/E/IONetworking.../Contents/Plugins,  and then rolled back to the original, then it is working now.  Weird. 

Anyway good luck, everyone one!


BCM57781 patch is not for BCM57785

 

According to the first post, it 16B5 is supported, and I got it working now eventually. 



#71
darkvoid

darkvoid

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Gender:Male
Since a while I have been working with Rehabman on FakePCIID, a method to spoof PCI configuration space values for Apple driver matching.
 
In simple words, a method to successfully emulate a device so that the Apple drivers will load for it, without requiring any binary patches to kext files or plists.
Needless to say its a much more future and cross-version proof way than binary patching.
 
It looks like the concept can be applied to the BCM577XX series of network adapters, however I do not have the hardware to test it.
Hopefully people in this thread can help and test.
 
Attached is a development copy of FakePCIID with support for BCM577XX injection.
 
It supports the following Broadcom devices:
  • Broadcom NetXtreme BCM5700 Gigabit Ethernet [14e4:1644]
  • Broadcom NetXtreme BCM5701 Gigabit Ethernet PCIe [14e4:1645]
  • Broadcom NetXtreme BCM5702 Gigabit Ethernet PCIe [14e4:1646]
  • Broadcom NetXtreme BCM5703 Gigabit Ethernet PCIe [14e4:1647]
  • Broadcom NetXtreme BCM5717 Gigabit Ethernet PCIe [14e4:1655]
  • Broadcom NetXtreme BCM5717 Gigabit Ethernet PCIe [14e4:1665]
  • Broadcom NetXtreme BCM5718 Gigabit Ethernet PCIe [14e4:1656]
  • Broadcom NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657]
  • Broadcom NetXtreme BCM5725 Gigabit Ethernet PCIe [14e4:1643]
  • Broadcom NetXtreme BCM5727 Gigabit Ethernet PCIe [14e4:16f3]
  • Broadcom NetXtreme BCM5761 10/100/1000BASE-T Ethernet [14e4:1688]
  • Broadcom NetXtreme BCM5762 Gigabit Ethernet PCIe [14e4:1687]
  • Broadcom NetXtreme BCM57760 Gigabit Ethernet PCIe [14e4:1690]
  • Broadcom NetXtreme BCM57764 Gigabit Ethernet PCIe [14e4:1642]
  • Broadcom NetXtreme BCM57767 Gigabit Ethernet PCIe [14e4:1683]
  • Broadcom NetLink BCM57780 Gigabit Ethernet PCIe [14e4:1692]
  • Broadcom NetLink BCM57781 Gigabit Ethernet PCIe [14e4:16b1]
  • Broadcom NetXtreme BCM57782 Gigabit Ethernet PCIe [14e4:16b7]
  • Broadcom NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5]
  • Broadcom NetXtreme BCM57786 Gigabit Ethernet PCIe [14e4:16b3]
  • Broadcom NetXtreme BCM57787 Gigabit Ethernet PCIe [14e4:1641]
  • Broadcom NetLink BCM57788 Gigabit Ethernet PCIe [14e4:1691]
  • Broadcom NetLink BCM57790 Gigabit Ethernet PCIe [14e4:1694]
  • Broadcom NetLink BCM57791 Gigabit Ethernet PCIe [14e4:16b2]
  • Broadcom NetLink BCM57795 Gigabit Ethernet PCIe [14e4:16b6]
  • Broadcom NetLink BCM5785 Gigabit Ethernet [14e4:1699]
  • Broadcom NetLink BCM5785 Fast Ethernet [14e4:16a0]
  • Broadcom NetLink BCM5787M Gigabit Ethernet PCI Express [14e4:1693]
  • Broadcom Network Adapter [14e4:1689]
Installation
 
Place the attached kexts (FakePCIID.kext and FakePCIID_BCM577XX_as_BCM57765.kext) in /System/Library/Extensions and rebuild the kext cache.
 
Injecting them through Clover is also fine.
 
Ensure your AppleBCM5701Ethernet.kext is vanilla and any Clover patches for the BCM577XX are disabled.
If all goes well the device should automatically be detected.
 
Troubleshooting
 
In case the network card does not work it might require DSDT injection:



into method label _DSM parent_label GLAN remove_entry;
into device label GLAN insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
        Store (Package () {\n
                "device-id", Buffer { 0xB4, 0x16, 0x00, 0x00 },\n
                "vendor-id", Buffer { 0xE4, 0x14, 0x00, 0x00 },\n
                "compatible", Buffer { "pci14e4,16b4" },\n
                "subsystem-id", Buffer { 0xB4, 0x16, 0x00, 0x00 },\n
                "subsystem-vendor-id", Buffer { 0xE4, 0x14, 0x00, 0x00 },\n
                "built-in", Buffer (One) { 0x01 },\n
        }, Local0)\n
        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
        Return (Local0)\n
}\n
end;
In case of reports, try and include an IORegistry explorer dump.

Attached Files



#72
Onixs

Onixs

    Since 2007

  • Members
  • PipPipPipPipPipPipPip
  • 821 posts
  • Gender:Male

 ^^ no attachment ^^



#73
darkvoid

darkvoid

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Gender:Male

 ^^ no attachment ^^

 

Oops, attachment is now added.



#74
darkvoid

darkvoid

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Gender:Male
Now updated the Broadcom injector kext to version "test2", adding devices as per the Linux Tigon3 driver.
Additionally the model names are now configured so they display in the system preferences.

Hopefully some Broadcom network adapter users can test this?
I have some preliminary result from another forum, but it would be good to collate more results.

#75
6th

6th

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Installed prior to updating to 10.10.2. It's working fine on a BCM57781



#76
scififan68

scififan68

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 161 posts
  • Gender:Male

 

Hi

Here is binary patched BCM57781 for 10.10.2
 
Here is Clover EFI bootloader KextsToPatch section code for 10.10.2
 
And Clover KextsToPatch Code
Spoiler
 

 

I have the BCM57785 and I used the binary patched version of BCM57781 for 10.10.2, but then I simply added <string>pci14e4,16b5</string> rebooted and its now detected, and the Ethernet does work. I put IONetworkingFamily.kext, AppleBCM5701Ethernet.kext, IOEthernetAVBController.kext, mDNSOffloadUserClient.kext all in the plugins folder of IONetworkingFamily.kext, then added all to my efi partition in the 10.10 kext folder as I'm using clover and I want to keep it as vanilla as possible. But I believe this kexts may kill sleep on laptops, so beware if on a laptop. kernel[0]: AppleBCM5701Ethernet [1000001c8, PXSX]:        0        0 ReadInRom: no 2nd code header found 

Broadcom 57781-B0:

 

  Name: ethernet

  Type: ethernet

  Bus: PCI

  Vendor ID: 0x14e4

  Device ID: 0x16b5

  Subsystem Vendor ID: 0x1025

  Subsystem ID: 0x0647

  Revision ID: 0x0010

  Link Width: x1

  BSD name: en2

  Kext name: AppleBCM5701Ethernet.kext

  Location: /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleBCM5701Ethernet.kext

  mDNS offload capable: 

  Version: 10.1.3



#77
Onixs

Onixs

    Since 2007

  • Members
  • PipPipPipPipPipPipPip
  • 821 posts
  • Gender:Male

@scififan86read post #71



#78
scififan68

scififan68

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 161 posts
  • Gender:Male

@scififan86read post #71

That method failed to work, but what I did worked for me and now the Ethernet functions again on my laptop!  :)



#79
darkvoid

darkvoid

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Gender:Male
scififan68,

The injection method only works when all your kexts are vanilla (i.e. untouched). You cannot mix and match both, according to your kext post above you are now running 10.10.1 kexts with 10.10.2 OS X, which is generally not a good idea.

From the other forums where I posted this I know that the injection method is working, there are about 5 people successfully using it already.

#80
scififan68

scififan68

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 161 posts
  • Gender:Male

scififan68,

The injection method only works when all your kexts are vanilla (i.e. untouched). You cannot mix and match both, according to your kext post above you are now running 10.10.1 kexts with 10.10.2 OS X, which is generally not a good idea.

From the other forums where I posted this I know that the injection method is working, there are about 5 people successfully using it already.

I bet it works, but BCM57785 is a bit different, and have you had any success with any of the 57785 model? I checked and both Ethernet kexts are from 10.10.2 and I did removed the fake pci kexts first. You see vanilla kext was left installed into /S/L/E while the modified 10.10.2 kext loads from the efi partition. So technically I didn't change any kexts in /S/L/E and yet the Ethernet still works.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy