Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DW1820A support as an installer option #91

Closed
osy86 opened this issue Oct 27, 2019 · 15 comments

Comments

@osy86
Copy link
Owner

@osy86 osy86 commented Oct 27, 2019

Since many users have this configuration, we should add an option in the installer.

Since I do not have this to work with, I need help from someone who has gotten it working. Please provide me with the kexts, patches, and anything else required for the card to work Wifi+BT.

@22dm can you help?

@22dm

This comment has been minimized.

Copy link

@22dm 22dm commented Oct 27, 2019

Well, DW1820A have many versions, like CN-0VW3T3, CN-096JNT and CN-08PKF4. It seems that different versions have slightly different compatibility.

DW1820A

I only have a CN-08PKF4, in order to get this work, I did these changes:

The kexts need to be added:

  • for Wi-Fi
    • AirportBrcmFixup.kext
  • for Bluetooth
    • BrcmPatchRAM3.kext
    • BrcmBluetoothInjector.kext
    • BrcmFirmwareData.kext

These can be found at:

Also, config.plist needs to be modified:

  • Add kexts to Kernel -> Add
  • Add these to DeviceProperties -> Add:
<key>PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)</key>
<dict>
	<key>AAPL,slot-name</key>
	<string>WLAN</string>
	<key>compatible</key>
	<string>pci14e4,4353</string>
	<key>device_type</key>
	<string>Airport Extreme</string>
	<key>model</key>
	<string>DW1820A (BCM4350) 802.11ac Wireless</string>
	<key>name</key>
	<string>Airport</string>
</dict>
  • Add brcmfx-country=#a brcmfx-driver=1 to boot-args

By the way, there is a bug: If you boot into Linux / Windows and comeback to macOS, Wi-Fi and Bluetooth will be unusable (appears but won't work). In order for it to work again, you need to unplug the power cord and wait a few seconds before plugging it in.

This is the EFI I am using (removed the UUID, SN and MLB):
EFI.zip

These website is also useful:
https://blog.daliansky.net/DW1820A_BCM94350ZAE-driver-inserts-the-correct-posture.html
https://osxlatitude.com/forums/topic/11540-dw1820a-the-general-troubleshooting-thread/

Hope this can be helped.

UPDATE: Something broken after some update, however, bluetooth does't work for me now (can see but can not connect). Back to 2.2 version of BrcmPatchRAM2 solved this problem.

UPDATE2: @goodbest has a better solution without using AirportBrcmFixup in #113.

@22dm 22dm mentioned this issue Oct 27, 2019
2 of 6 tasks complete
@HorstBrack75

This comment has been minimized.

Copy link

@HorstBrack75 HorstBrack75 commented Oct 27, 2019

Really depends on the "flavour" of the card. I can confirm that what @22dm wrote works for me as well. Some people claim they had to mask some pins using duct tape though. (Never had to do this.)

By the way, there is a bug: If you boot into Linux / Windows and comeback to macOS, Wi-Fi and Bluetooth will be unusable (appears but won't work). In order for it to work again, you need to unplug the power cord and wait a few seconds before plugging it in.

Did you try using the same firmware version in Windows / Linux / Mac OS? (This seems to have solved the issue for me.)

99V46.zip

@22dm

This comment has been minimized.

Copy link

@22dm 22dm commented Nov 3, 2019

Really depends on the "flavour" of the card. I can confirm that what @22dm wrote works for me as well. Some people claim they had to mask some pins using duct tape though. (Never had to do this.)

By the way, there is a bug: If you boot into Linux / Windows and comeback to macOS, Wi-Fi and Bluetooth will be unusable (appears but won't work). In order for it to work again, you need to unplug the power cord and wait a few seconds before plugging it in.

Did you try using the same firmware version in Windows / Linux / Mac OS? (This seems to have solved the issue for me.)

99V46.zip

It works, thx 👍

@msedek

This comment has been minimized.

Copy link

@msedek msedek commented Nov 4, 2019

@22dm i have the same model CN-08PKF4 but not sure what to do to make it work.. evey time i plug the card macos goes boot loops and when ever it makes it to the os the card is no where to be found.. im pretty new to hackingtosh and dont know whats all this kext etc about..

theres a hac-mini version i think its 2.2.2 that has an option for installing the driver but doesnt work.. would LOVE to have that card working so my hac mini would be perfect 100%.. i have 1 drive for windows and 1 drive for macos and dual boot currently using a common usb wifi card for both system with no bluetooth =/

@22dm

This comment has been minimized.

Copy link

@22dm 22dm commented Nov 4, 2019

@22dm i have the same model CN-08PKF4 but not sure what to do to make it work.. evey time i plug the card macos goes boot loops and when ever it makes it to the os the card is no where to be found.. im pretty new to hackingtosh and dont know whats all this kext etc about..

Warning, misuse may cause your system to fail to boot or even data lost.

  1. mount the EFI partition:
  • open Terminal
  • sudo diskutil mount EFI
  • enter your password (no echo while you're typing) and press return
  • then you'll see EFI partition in Finder
  1. add kexts:
  • download the kexts.zip
  • unzip and put the four kexts to /EFI/OC/Kexts in your EFI Partition
  1. edit /EFI/OC/config.plist:
  • open /EFI/OC/config.plist
  • Add these to this place (1/3)
<key>PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)</key>
<dict>
	<key>AAPL,slot-name</key>
	<string>WLAN</string>
	<key>compatible</key>
	<string>pci14e4,4353</string>
	<key>device_type</key>
	<string>Airport Extreme</string>
	<key>model</key>
	<string>DW1820A (BCM4350) 802.11ac Wireless</string>
	<key>name</key>
	<string>Airport</string>
</dict>

截屏2019-11-0412 26 37

  • Add these to this place (2/3)
<dict>
<key>BundlePath</key>
	<string>AirportBrcmFixup.kext</string>
	<key>Enabled</key>
	<true/>
	<key>ExecutablePath</key>
	<string>Contents/MacOS/AirportBrcmFixup</string>
	<key>PlistPath</key>
	<string>Contents/Info.plist</string>
</dict>
<dict>
	<key>BundlePath</key>
	<string>BrcmBluetoothInjector.kext</string>
	<key>Enabled</key>
	<true/>
	<key>ExecutablePath</key>
	<string></string>
	<key>PlistPath</key>
	<string>Contents/Info.plist</string>
</dict>
<dict>
	<key>BundlePath</key>
	<string>BrcmFirmwareData.kext</string>
	<key>Enabled</key>
	<true/>
	<key>ExecutablePath</key>
	<string>Contents/MacOS/BrcmFirmwareData</string>
	<key>PlistPath</key>
	<string>Contents/Info.plist</string>
</dict>
<dict>
	<key>BundlePath</key>
	<string>BrcmPatchRAM2.kext</string>
	<key>Enabled</key>
	<true/>
	<key>ExecutablePath</key>
	<string>Contents/MacOS/BrcmPatchRAM2</string>
	<key>PlistPath</key>
	<string>Contents/Info.plist</string>
</dict>

截屏2019-11-0412 37 06

  • Add these to this place (3/3)
 brcmfx-country=#a brcmfx-driver=1

截屏2019-11-0412 30 05

  1. plug the card on, enjoy
@runninglol

This comment has been minimized.

Copy link

@runninglol runninglol commented Nov 4, 2019

Mine is CN-096JNT, Wifi and BT both work for me.
Attached 99V46.zip works for windows.
Thank you so much guys.

@HorstBrack75

This comment has been minimized.

Copy link

@HorstBrack75 HorstBrack75 commented Nov 4, 2019

@22dm i have the same model CN-08PKF4 but not sure what to do to make it work.. evey time i plug the card macos goes boot loops and when ever it makes it to the os the card is no where to be found.. im pretty new to hackingtosh and dont know whats all this kext etc about..

theres a hac-mini version i think its 2.2.2 that has an option for installing the driver but doesnt work.. would LOVE to have that card working so my hac mini would be perfect 100%.. i have 1 drive for windows and 1 drive for macos and dual boot currently using a common usb wifi card for both system with no bluetooth =/

This sounds really strange. If I boot without the kexts, bluetooth will just not work. No boot loop. (WiFi works OOB on my 08PKF4 in Mojave.) If you disable WiFi and Bluetooth devices in BIOS, will it boot again?

@goodbest

This comment has been minimized.

Copy link

@goodbest goodbest commented Nov 10, 2019

@22dm I've also got my DW1820A working, described in #113
Maybe you can also try those steps ?

The main difference with your solution is that:

  1. I disable PCIE ASPM in bios, which is suggested in this post
  2. I don't need to add property pci14e4,4353 into the config.plist.
  • As a result, my system is natively loading BrcmNic.kext, rather than Brcm4360 in your system. However, I think this won't cause boot loop. And I don't need to add brcmfx-driver=1 in boot-arg (becasue it's default).
  • The loaded kext info can be found by about this mac->Software, Extensions
@msedekhyh

This comment has been minimized.

Copy link

@msedekhyh msedekhyh commented Nov 10, 2019

I could not Make it work with the provided steps, the card Works perfectly in windows, im just punished to use a trash low speed usb wifi and having no bluettoth

@22dm

This comment has been minimized.

Copy link

@22dm 22dm commented Nov 10, 2019

@22dm I've also got my DW1820A working, described in #113
Maybe you can also try those steps ?

The main difference with your solution is that:

  1. I disable PCIE ASPM in bios, which is suggested in this post
  2. I don't need to add property pci14e4,4353 into the config.plist.
  • As a result, my system is natively loading BrcmNic.kext, rather than Brcm4360 in your system. However, I think this won't cause boot loop. And I don't need to add brcmfx-driver=1 in boot-arg (becasue it's default).
  • The loaded kext info can be found by about this mac->Software, Extensions

Thanks, It works very well. I have tried a similar attempt, but I have not disabled PCIE ASPM, and if I don't disable it, it will cause bootloop.

BrcmPatchRAM3 (2.5.0) seems still prevent me from connecting to my mouse (M590) and keyboard (K375) via bluetooth. However, I can connect to my iPad Pro, while AirDrop and Sidecar are also working.

@msedekhyh

This comment has been minimized.

Copy link

@msedekhyh msedekhyh commented Nov 10, 2019

@22dm I followed your steps and it didnt work, then changed the PCIE ASPM in bios, did your steps and boom.. everything working 100%,, would love if you add the DW1820 driver as an option in the hac-mini installation.. now i got a GOLD build, no adapters no anything, 2 m.2 nvme samsungs 1 with windows and 1 with macos'
Hands down the hades canyon is the best hackintosh in the world

@22dm

This comment has been minimized.

Copy link

@22dm 22dm commented Nov 11, 2019

@22dm I followed your steps and it didnt work, then changed the PCIE ASPM in bios, did your steps and boom.. everything working 100%,, would love if you add the DW1820 driver as an option in the hac-mini installation.. now i got a GOLD build, no adapters no anything, 2 m.2 nvme samsungs 1 with windows and 1 with macos'
Hands down the hades canyon is the best hackintosh in the world

So what’s the version of your card? Is it CN-08PKF4 or CN-096JNT?

@osy86

This comment has been minimized.

Copy link
Owner Author

@osy86 osy86 commented Nov 11, 2019

Please test the pkg in the pull request (above)

osy86 added a commit that referenced this issue Nov 11, 2019
Resolves #91
Resolves #113
@msedek

This comment has been minimized.

Copy link

@msedek msedek commented Nov 12, 2019

CN-08PKF4
CN-08PKF4

@osy86 osy86 closed this in 19561fa Nov 12, 2019
@SSebo

This comment has been minimized.

Copy link

@SSebo SSebo commented Nov 14, 2019

CN-0VW3T3 works like a charm! THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants
You can’t perform that action at this time.