Contribute
Register

BrcmPatchRAM - Upload firmware into Broadcom Bluetooth USB devices

Status
Not open for further replies.
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
BrcmPatchRAM driver is not loading at all according to your log.

Execute the following commands (Adjust download path as necessary):
Code:
sudo cp -R ~/Downloads/Debug/BroadcomPatchRAM.kext /tmp
sudo kextload /tmp/BroadcomPatchRAM.kext
sudo dmesg | grep -i brcm[fp]

Also your dmesg buffer might not be large enough to show BrcmPatchRAM output.

Also try
Code:
sudo cat /var/log/system.log | grep -i brcm[fp]
Check for the latest entries only, as the log might go back several days.

This should generate at least some debug output (if the device was matched succesfully).
 
Joined
Nov 15, 2010
Messages
2,638
Motherboard
AsRock Z370M ITX/ac
CPU
i7-8700K
Graphics
AMD 5700XT
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
I tried those above, and this is what I get. I installed the release version, but not the debug. I'll try that this evening and get back to you.

Code:
Mikes-Mac-Pro:~ MikeFrank$ sudo cp -R ~/Downloads/Debug/BrcmPatchRAM.kext /tmp
Mikes-Mac-Pro:~ MikeFrank$ sudo kextload /tmp/BrcmPatchRAM.kext
/tmp/BrcmPatchRAM.kext failed to load - (libkern/kext) different version/uuid already loaded; check the system/kernel logs for errors or try kextutil(8).
Mikes-Mac-Pro:~ MikeFrank$ sudo dmesg | grep -i brcm[fp] 
(nothing returned)
 
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
So that means BrcmPatchRAM is loaded already on bootup. Your dmesg buffer is too small to capture it.

It should be present in /var/log/system.log.

If that does not give enough information install the debug version, power-down fully and check the /var/log/system.log output then.
 
Joined
May 22, 2011
Messages
1,035
Motherboard
ASUS TUF Z390 Plus Gaming
CPU
i9-9900K
Graphics
UHD 630
Mac
  1. iMac
Mobile Phone
  1. iOS
telepati,

Give version 0.6 a try, it should work for your device.

https://github.com/robvanoostenrijk/BrcmPatchRAM/releases/tag/v0.6

The device specific firmware was not configured for your device yet.
On GitHub someone reported the same issue for the IOGear USB dongle (also 0a5c:21e8).

I tired both Debug and Release folder one by one. Add kext to my Extension folder and restart machine. My Bluetooth still connected but .kext doesn't work. Should I something wrong? I will just add .kext to Extension folder right or should I add something inside to .kext?

My firmware version still same

Firmware Version: v14 c4096

Other terminal code result: (This is Debug version .kext result)
Code:
Last login: Fri Dec 19 19:38:32 on ttys000
Murats-Mac:~ MuratOzgul$ sudo cat /var/log/system.log | grep -i brcm[fp]
Password:
Dec 19 02:28:19 Murats-Mac.local com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 19 02:28:31 Murats-Mac.local com.apple.kextcache[86806]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 19 02:31:16 localhost kernel[0]: BrcmPatchRAM: Version 0.5 starting.
Dec 19 02:31:16 localhost kernel[0]: BrcmPatchRAM: USB [0a5c:21e8 000272D9E8DD v274] "BCM20702A0" by "Broadcom Corp"
Dec 19 02:31:16 localhost kernel[0]: BrcmPatchRAM: Version 0.5 starting.
Dec 19 02:31:16 localhost kernel[0]: BrcmPatchRAM: USB [0a5c:21e8 000272D9E8DD v274] "BCM20702A0" by "Broadcom Corp"
Dec 19 02:31:16 localhost kernel[0]: BrcmFirmwareStore: Retrieved firmware for firmware key "BCM20702A1_001.002.014.1443.1612_v5708".
Dec 19 02:31:16 localhost kernel[0]: BrcmFirmwareStore: Decompressed firmware (29714 bytes --> 70016 bytes).
Dec 19 02:31:16 localhost kernel[0]: BrcmPatchRAM: device request failed (0xe00002ed).
Dec 19 02:31:18 localhost kernel[0]: BrcmPatchRAM: Failed to reset the device (0xe00002bd).
Dec 19 02:31:18 localhost kernel[0]: BrcmPatchRAM: Unable to get device status (0xe0004061).
Dec 19 02:31:18 localhost kernel[0]: BrcmPatchRAM: Firmware upgrade completed successfully.
Dec 19 02:31:36 Murats-Mac kernel[0]: BrcmPatchRAM: Version 0.5 starting.
Dec 19 02:31:36 Murats-Mac kernel[0]: BrcmPatchRAM: USB [0a5c:21e8 000272D9E8DD v274] "BCM20702A0" by "Broadcom Corp"
Dec 19 02:31:36 Murats-Mac kernel[0]: BrcmFirmwareStore: Retrieved cached firmware for "BCM20702A1_001.002.014.1443.1612_v5708".
Dec 19 02:31:37 Murats-Mac kernel[0]: BrcmPatchRAM: device request failed (0xe00002ed).
Dec 19 02:31:39 Murats-Mac kernel[0]: BrcmPatchRAM: Failed to reset the device (0xe00002bd).
Dec 19 02:31:39 Murats-Mac kernel[0]: BrcmPatchRAM: Unable to get device status (0xe0004061).
Dec 19 02:31:39 Murats-Mac kernel[0]: BrcmPatchRAM: Firmware upgrade completed successfully.
Dec 19 02:32:23 Murats-Mac kernel[0]: BrcmPatchRAM: Version 0.5 starting.
Dec 19 02:32:23 Murats-Mac kernel[0]: BrcmPatchRAM: USB [0a5c:21e8 000272D9E8DD v274] "BCM20702A0" by "Broadcom Corp"
Dec 19 02:32:23 Murats-Mac kernel[0]: BrcmFirmwareStore: Retrieved cached firmware for "BCM20702A1_001.002.014.1443.1612_v5708".
Dec 19 02:32:23 Murats-Mac kernel[0]: BrcmPatchRAM: device request failed (0xe00002ed).
Dec 19 02:32:25 Murats-Mac kernel[0]: BrcmPatchRAM: Failed to reset the device (0xe00002bd).
Dec 19 02:32:25 Murats-Mac kernel[0]: BrcmPatchRAM: Unable to get device status (0xe0004061).
Dec 19 02:32:25 Murats-Mac kernel[0]: BrcmPatchRAM: Firmware upgrade completed successfully.
Dec 19 19:30:19 Murats-Mac.local com.apple.kextcache[547]: BrcmPatchRAM.kext has incorrect permissions; omitting.
Dec 19 19:37:45 Murats-Mac.local com.apple.kextcache[531]: BrcmPatchRAM.kext has incorrect permissions; omitting.
Murats-Mac:~ MuratOzgul$

I tried terminal code and nothing happened;
 

Attachments

  • Screen Shot 2014-12-19 at 19.40.35.png
    Screen Shot 2014-12-19 at 19.40.35.png
    21.7 KB · Views: 139
Joined
Nov 15, 2010
Messages
2,638
Motherboard
AsRock Z370M ITX/ac
CPU
i7-8700K
Graphics
AMD 5700XT
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
This is what I get with the debug version.

Code:
Dec 19 13:36:58 localhost kernel[0]: BrcmFirmwareStore::init
Dec 19 13:36:58 localhost kernel[0]: BrcmFirmwareStore::probe
Dec 19 13:36:58 localhost kernel[0]: BrcmFirmwareStore::start
Dec 19 13:36:58 localhost kernel[0]: BrcmPatchRAM::init
Dec 19 13:36:58 localhost kernel[0]: BrcmPatchRAM::probe

But it still shows as Firmware Version: v14 c4096
 
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
telepati,

The log you pasted shows version 0.5, can you make sure you installed v0.6 or v0.6a and rebuild your kext cache correctly?

Additionally you can test it using kextstat:
Code:
kextstat | grep -i brcmp
   23    0 0xffffff7f828ab000 0x5000     0x5000     com.no-one.BrcmPatchRAM (1.0.6) <22 5 4 3>

Currently it looks like you are not running the latest version in which I added support for your device.
 
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
Gordo,

Thats weird, once it goes through init and probe, start should be the very next item.
You can see that in telepati's log above.

The only reason can be is that there is another driver with a higher probe score.
Are you sure you have no other alternate drivers still installed? I.e. your OS X extensions is clean?

The strange thing is that others have reported your device working correctly.
 
Joined
Nov 15, 2010
Messages
2,638
Motherboard
AsRock Z370M ITX/ac
CPU
i7-8700K
Graphics
AMD 5700XT
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
Gordo,

Thats weird, once it goes through init and probe, start should be the very next item.
You can see that in telepati's log above.

The only reason can be is that there is another driver with a higher probe score.
Are you sure you have no other alternate drivers still installed? I.e. your OS X extensions is clean?

The strange thing is that others have reported your device working correctly.

Yes. This is a bone-stock OS X install and the only kexts that are being injected (via clover on boot) are as follows:

AppleIntelE1000 (ethernet)
BCM4352 (Wifi... Bluetooth shows up with this kext as well, but does not work.... this is Toledo's kext)
BRCMPatchRAM
FakeSMC
RealtekALC (Toledas as well)

See attached for kext patches as well.
 

Attachments

  • Screen Shot 2014-12-20 at 9.02.25 AM.png
    Screen Shot 2014-12-20 at 9.02.25 AM.png
    95.9 KB · Views: 182
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
Gordo,

Try and remove Toleda's kext to see if it conflicts? Ideally only 1 kext should match at any given time.

Check if it gets to the start event if you do that.
 
Joined
May 22, 2011
Messages
1,035
Motherboard
ASUS TUF Z390 Plus Gaming
CPU
i9-9900K
Graphics
UHD 630
Mac
  1. iMac
Mobile Phone
  1. iOS
Finally mine is worked. Actually I used v0.6 but I forgot to rebuild cache. This time I downloaded to kext and Repair Permission and Rebuild Cache with Kext Wizard after that my firmware version changed to v14 c4096 to v14 c5555. This is log;

Code:
Last login: Sat Dec 20 18:46:35 on console
Murats-Mac:~ MuratOzgul$ sudo cat /var/log/system.log | grep -i brcm[fp]
Password:
Dec 20 00:34:42 localhost com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 20 00:34:42 localhost com.apple.kextd[19]: Can't load /System/Library/Extensions/BrcmPatchRAM.kext - authentication problems.
Dec 20 00:34:42 localhost com.apple.kextd[19]: Load com.no-one.BrcmPatchRAM failed; removing personalities from kernel.
Dec 20 00:41:47 localhost com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 20 00:41:47 localhost com.apple.kextd[19]: Can't load /System/Library/Extensions/BrcmPatchRAM.kext - authentication problems.
Dec 20 00:41:47 localhost com.apple.kextd[19]: Load com.no-one.BrcmPatchRAM failed; removing personalities from kernel.
Dec 20 00:41:47 localhost com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 20 00:41:47 localhost com.apple.kextd[19]: Can't load /System/Library/Extensions/BrcmPatchRAM.kext - authentication problems.
Dec 20 00:41:47 localhost com.apple.kextd[19]: Load com.no-one.BrcmPatchRAM failed; removing personalities from kernel.
Dec 20 00:46:49 Murats-Mac.local com.apple.kextcache[610]: BrcmPatchRAM.kext has incorrect permissions; omitting.
Dec 20 18:44:39 Murats-Mac.local com.apple.kextd[19]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/BrcmPatchRAM.kext"
Dec 20 18:44:51 Murats-Mac.local com.apple.kextcache[513]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 20 18:45:43 Murats-Mac.local com.apple.kextcache[531]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM.kext
Dec 20 18:46:28 localhost kernel[0]: BrcmPatchRAM: Version 0.6 starting.
Dec 20 18:46:28 localhost kernel[0]: BrcmPatchRAM: USB [0a5c:21e8 000272D9E8DD v274] "BCM20702A0" by "Broadcom Corp"
Dec 20 18:46:28 localhost kernel[0]: BrcmFirmwareStore: Retrieved firmware for firmware key "BCM20702A1_001.002.014.1443.1459_v5555".
Dec 20 18:46:28 localhost kernel[0]: BrcmFirmwareStore: Decompressed firmware (29726 bytes --> 70001 bytes).
Dec 20 18:46:29 localhost kernel[0]: BrcmPatchRAM: Firmware upgrade completed successfully.
Dec 20 18:46:29 localhost kernel[0]: BrcmPatchRAM: Version 0.6 starting.
Dec 20 18:46:29 localhost kernel[0]: BrcmPatchRAM: USB [0a5c:21e8 000272D9E8DD v274] "BCM920702 Bluetooth 4.0" by "Broadcom Corp"
Murats-Mac:~ MuratOzgul$

But still Continuity Activation Tool didn't detect my GMYLE? I still don't get it? Why doesnt detect GMYLE Dongle?
 
Status
Not open for further replies.
Top