Contribute
Register

BrcmPatchRAM - Upload firmware into Broadcom Bluetooth USB devices

Status
Not open for further replies.
Got it to build and load w/o errors on 10.6.
Didn't test it on my Broadcom combo card since I am on a small vacation and I have Atheros WiFi on laptop, but IMO should work.
If I didn't break it, attached is the modified source.

One thing I don't get is why mouse pairing survive b/w windows/snow boot but fail on windows/yosemite, I mean if I pair it on yosemite does not work on windows, have to remove it and pair again.
 

Attachments

  • BrcmPatchRAM_SL_YOS.zip
    663.7 KB · Views: 115
Kamino,

Since you refactored the code significantly I will not be able to merge your changes.
All tabs have changed for example, as well as significant changes in variables etc.

If you can apply only the required changes on the master branch as a pull request I can merge your changes into BrcmPatchRAM.
 
Sorry about too many changes, its how I work starting with tabs->spaces :p
Since there was about 51 errors on snow build I reviewed the whole code then tried to build again.
So I don't have a short patch to merge, sorry.
 
Thank you the-darkvoid for your efforts with the BRCMPatchRAM.kext!

Works perfect with my 43b1 - BCM94352 HMB/AzureWave AW-CE123H, 2.4/5 GHz, ac+abgn, 2 stream, 867 Mbs + BT4LE card.
 
Reply with your bluetooth device vendor id and product id.
Your device might already be supported out of the box in which case you do not need to extract any bluetooth drivers.


Vendor ID: 0x8087
Product ID: 0x07DC

Strangely, on a side note, when trying to start CAT, It just sits waiting for me to plug in my dongle. Even though it is plugged in now.
 
8087:07DC is an Intel 7260 device.Only Broadcom based devices are supported in OS X.
 
That would most likely be because of the way you activated your USB.

Are you using GenericUSBXHCI.kext? Or the native apple drivers.

Reply with the wake-up reason from /var/log/system.log

I'm not using the GenricUSBXHCI.kext because when I tried it, my computer freeze every time I plugged a usb storage stick. Right now I'm using just the native apple drivers.

here are my wake up logs so you can see how of ten it wakes up by itself:

Dec 30 04:44:02 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:45:06 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:46:10 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:47:13 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:48:17 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:49:22 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:50:27 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:51:31 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:52:35 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:53:40 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:54:44 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:55:49 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:56:54 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:57:57 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 04:59:02 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:00:05 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:01:09 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:02:12 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:03:16 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:04:20 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:05:17 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:06:27 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:07:30 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 05:08:34 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 08:54:59 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 19:01:02 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 19:11:09 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 19:39:51 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 19:55:50 iMac kernel[0] <Notice>: Wake reason: XHC1
Dec 30 20:04:28 iMac kernel[0] <Notice>: Wake reason: XHC1

Any help will be really appreciated since I had to uninstall the BrcmPatchRAM to avoid the wake up issue and now the magic mouse and apple wireless keyboard not always works like they used with your patch.

Here are my logs after uninstalling the patch (Note that all those wakes were induced and not automatically)


Dec 31 19:33:19 iMac kernel[0] <Notice>: Wake reason: XHC
Jan 1 12:01:56 iMac kernel[0] <Notice>: Wake reason: XHC
Jan 1 13:18:31 iMac kernel[0] <Notice>: Wake reason: XHC
Jan 1 13:20:08 iMac kernel[0] <Notice>: Wake reason: XHC
Jan 1 14:38:40 iMac kernel[0] <Notice>: Wake reason: XHC
 
Thanks for the reply. Bluetooth appears to work, will attempt to pair with a magic mouse (I used to be able to pair and use this mouse. and will attempt to pair with my iPhone 6plus. It pairs, i get the code, but does not connect.

As for wifi, if I try to share my internet (LAN), via wifi, the wifi goes grey.

I ran the script and this is what I got. ( sorry for dumping the whole thing, but I didn't know what was the important part)

Thanks,
dchaf


Dec 30 19:56:13 iMac com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 30 19:56:13 iMac kernel[0]: considerRebuildOfPrelinkedKernel com.no-one.BrcmPatchRAM triggered rebuild
Dec 30 19:56:20 iMac com.apple.kextcache[384]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 30 19:56:32 iMac com.apple.kextcache[385]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 30 19:57:32 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 19:57:32 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:39:45 iMac.local com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 30 21:39:45 iMac kernel[0]: BrcmFirmwareStore::init
Dec 30 21:39:45 iMac kernel[0]: BrcmFirmwareStore::probe
Dec 30 21:39:45 iMac kernel[0]: BrcmFirmwareStore::start
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM::init
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM::probe
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Available composite configurations: 1.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Set device configuration to configuration index 0 successfully.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Interface 0 (class ff, subclass 01, protocol 01) located.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x81.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x02.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: READ VERBOSE CONFIG complete (status: 0x00, length: 10 bytes).
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Firmware version: v5565.
Dec 30 21:39:45 iMac kernel[0]: BrcmPatchRAM [0b05:17cf]: Returning output data 12 bytes.
Dec 30 21:39:47 iMac.local com.apple.kextcache[364]: BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.
Dec 30 21:39:47 iMac.local com.apple.kextcache[364]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 30 21:39:51 iMac.local com.apple.kextcache[364]: BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.
Dec 30 21:40:41 localhost kernel[0]: BrcmFirmwareStore::init
Dec 30 21:40:41 localhost kernel[0]: BrcmFirmwareStore::probe
Dec 30 21:40:41 localhost kernel[0]: BrcmFirmwareStore::start
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM::init
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM::probe
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Available composite configurations: 1.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Set device configuration to configuration index 0 successfully.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Interface 0 (class ff, subclass 01, protocol 01) located.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x81.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x02.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: READ VERBOSE CONFIG complete (status: 0x00, length: 10 bytes).
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Firmware version: v5565.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Returning output data 12 bytes.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM::init
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM::probe
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Available composite configurations: 1.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Device configuration is already set to configuration index 0.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Interface 0 (class ff, subclass 01, protocol 01) located.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x81.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x02.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: READ VERBOSE CONFIG complete (status: 0x00, length: 10 bytes).
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Firmware version: v5565.
Dec 30 21:40:41 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Returning output data 12 bytes.
Dec 30 21:48:55 iMac com.apple.kextcache[371]: BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.
Dec 30 21:48:55 iMac com.apple.kextcache[371]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 30 21:49:00 iMac com.apple.kextcache[371]: BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.
Dec 30 21:51:02 localhost kernel[0]: BrcmFirmwareStore::init
Dec 30 21:51:02 localhost kernel[0]: BrcmFirmwareStore::probe
Dec 30 21:51:02 localhost kernel[0]: BrcmFirmwareStore::start
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM::init
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM::probe
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Available composite configurations: 1.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Set device configuration to configuration index 0 successfully.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Interface 0 (class ff, subclass 01, protocol 01) located.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x81.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x02.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: READ VERBOSE CONFIG complete (status: 0x00, length: 10 bytes).
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Firmware version: v5565.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Returning output data 12 bytes.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM::init
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM::probe
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Available composite configurations: 1.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Device configuration is already set to configuration index 0.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Interface 0 (class ff, subclass 01, protocol 01) located.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x81.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Located pipe at 0x02.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: READ VERBOSE CONFIG complete (status: 0x00, length: 10 bytes).
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Firmware version: v5565.
Dec 30 21:51:02 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Returning output data 12 bytes.
Dec 30 21:52:13 iMac com.apple.kextcache[345]: BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.
Dec 30 21:52:13 iMac com.apple.kextcache[345]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 30 21:52:17 iMac com.apple.kextcache[345]: BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.
Dec 30 21:53:06 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:53:06 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
Dec 30 21:53:06 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: Version 0.6a starting.
Dec 30 21:53:06 localhost kernel[0]: BrcmPatchRAM [0b05:17cf]: USB [54271EFCB0ED v274] "BCM20702A0" by "Broadcom Corp"
 
dchaf,

There definitely seems some issue, BrcmPatchRAM is reloading too many times.
Additionally there is an error showing:

BrcmNonApple.kext - dependency for com.no-one.BrcmPatchRAM lacks valid OSBundleCompatibleVersion.

I will see about fixing that first.
 
Kaminoreal,

The latest version of BrcmPatchRAM is now built against Mac OS X SDK 10.6 with deployment target 10.6.
This should work with Snow Leopard and newer out of the box.
 
Status
Not open for further replies.
Back
Top