ghost8282 51 Posted September 29, 2020 Share Posted September 29, 2020 (edited) mmm there's a more simple way to make our RT2870 to work with big sur, without messing up with sealing/unsealing. Pro: no need to unseal the os, so no need to seal the os before performing an os update Cons: wireless pref pane is not working, but this doesn't mean you are not able to connect to a different ssid, not able to scan for available wifi networks This applies to opencore bootloader. Steps: 1- mount opencore EFI partition, copy RT2870USBWirelessDriver.kext in the EFI/OC/kext folder, modify config.plist to inject the kext 2- copy D-LinkUtility to applications folder (not the pref pane, not the kext, only the utility) 3- go to ~/Library/Preferences (this is ok, since it's a folder under the control of the user); you need to create 2 files: a) ActiveProfileSetting.plist with the following content: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <dict> <key>AC Power CAM</key> <string>0</string> <key>Active Profile Flag</key> <string>YES</string> <key>Authentication Type</key> <string>3</string> <key>BSSID</key> <string>INPUT HERE THE MAC ADDRESS OF THE SSID, EXAMPLE 001122AABBCC</string> <key>Channel</key> <string>1</string> <key>Encryption Type</key> <string>1</string> <key>Fragmentation Threshold</key> <string>2346</string> <key>Hidden</key> <string>0</string> <key>Network Type</key> <string>1</string> <key>Power Save Mode</key> <string>0</string> <key>Preamble Type</key> <string>0</string> <key>Profile Name</key> <string>INPUT HERE THE PROFILE NAME YOU WANT, IT CAN BE THE SAME OF THE SSID NAME</string> <key>RTS Threshold</key> <string>2347</string> <key>SSID</key> <string>INPUT HERE THE SSID NAME YOU WANT TO CONNECT TO</string> <key>Tx Power</key> <string>0</string> <key>WEPKey1</key> <string></string> <key>WEPKey1 Type</key> <string>0</string> <key>WEPKey2</key> <string></string> <key>WEPKey2 Type</key> <string>0</string> <key>WEPKey3</key> <string></string> <key>WEPKey3 Type</key> <string>0</string> <key>WEPKey4</key> <string></string> <key>WEPKey4 Type</key> <string>0</string> <key>WEPKeyUse</key> <string>0</string> <key>WPAPSK</key> <string>INPUT HERE THE WIFI PASSWORD WPA2</string> </dict> </array> </plist> Change all the strings that start with "INPUT HERE..." with your data (the mac address is not so important I think, because even if I input a wrong one, the device connect to the ssid). The example above applies to a wpa2 access point, which should be the most common, not sure what you have to change to connect to open access point or wep ones, however you can try, description strings in the xml seem quite clear. BTW, [Ironic mode: ON] thanks dlink and friends to store password in plain text....[Ironic mode: OFF] b) AdvancedProfileSetting.plist with the following content: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <dict> <key>Ad Hoc Mode</key> <string>1</string> <key>BG Protection</key> <string>0</string> <key>Tx Burst</key> <string>1</string> <key>Tx Rate</key> <string>0</string> <key>Wireless Mode</key> <string>9</string> </dict> </array> </plist> 4- Go to System preferences, users and groups and add applications/D-LinkUtility/MiniTaskUSB-DLinkUtility to automatically startup the utility. This is all it's needed to make wifi working, the kext, the utility and the files that store preferences. Now on boot the usb wifi will automatically connect to the SSID you set. Clicking from the top menu on Wireless Preference will do nothing, no wifi panel is installed and the executable (if not patched) points to prefpane in /System folder. To do: I'm trying to get a working prefpane installed in ~/Library/..: actually the panel is force closing, the same happened with an unsealed os, without the kext in /System/Library/Extensions/; I tried hex patching the executable to change paths but still doesn't work. BTW: [Ironic mode: ON] thank you Apple for the sealed os [Ironic mode: OFF] Edited September 29, 2020 by ghost8282 Link to post Share on other sites
ghost8282 51 Posted September 30, 2020 Share Posted September 30, 2020 (edited) THIS IS NO MORE VALID Ok, so ladies and gentlement, my daily updates about the RT2870 device and bug sur (I will name it bug on purpose ). Goal: have a working device with prefpane with all the files installed in the non /System folder. Unluckily the goal is not reached, no luck in patching the wifi prefpane..but..I found a quite good way to have all working. The following applies to current master version of opencore and it's working with bug sur beta 9. I have iMacPro1,1 SMBIOS data. We would want a sealed system, we don't want to delete snapshots, we would want SIP enabled and authenticated-root enabled: however this is not possible at the moment, because the utility needs some files copied to the /System directory. What we will achieve by the following is a sealed system with SIP and authenticated-root enabled with a working device with a not working prefpane and a system not booting from the snapshot, but without breaking the seal; so, we can use the sealed system everyday or a system not booting from the snapshot, and in this last case, we will be able to switch to the sealed system in ?less than 5 minutes? instead of reinstalling MacOS to seal the system again. As I wrote in the above post: 1- mount opencore EFI partition, copy RT2870USBWirelessDriver.kext in the EFI/OC/Kexts folder, modify config.plist to inject the kext on boot 2- copy D-LinkUtility to applications folder (not the pref pane, not the kext, only the utility) 3- go to ~/Library/Preferences (this is ok, since it's a folder under the control of the user); you need to create 2 files: a) ActiveProfileSetting.plist b) AdvancedProfileSetting.plist 4- Go to System preferences, users and groups and add applications/D-LinkUtility/MiniTaskUSB-DLinkUtility to automatically startup the utility 5- Verify that in the opencore config.plist SecureBootModel is set to "Disabled" If you boot your system you will see that it will boot from the snapshot, SIP and authenticated-root can be enabled and the wifi will work, but not the prefpane. If you want the prefpane: 6- Verify that in the opencore config.plist SecureBootModel is set to "Default" (by changing this the os will not boot from the snapshot!) 7- boot into recovery and disable SIP (csrutil disable) and reboot 8- mount / in read and write (sudo mount -uw /) 9- terminal: copy D-LinkWirelessUtility.prefPane in /System/Library/PreferencePanes/ 10- terminal: copy RT2870USBWirelessDriver.kext in /System/Library/Extensions/ 11- Assign proper permissions to D-LinkWirelessUtility.prefPane and RT2870USBWirelessDriver.kext (sudo chmod -R 755 and sudo chown -R root:wheel) 12- End: working wifi and working wifi preference pane Now, let's suppose there's an apple update, to update apple wants a sealed system and booting from snapshot (probably also SIP enabled?) All you have to do is to delete D-LinkWirelessUtility.prefPane and RT2870USBWirelessDriver.kext (not sure if it's a must, anyway delete them since we don't want a not bootable os), mount opencore efi and set back SecureBootModel to "Disabled"; if SIP must be enable for the os update boot into recovery, enable SIP and reboot; since you are now booting from a snapshot you will be able to update the os through the preference pane, you will have a working wifi, but without the pref pane; if you want to have the pref pane back just change SecureBootModel to Default. Booting back from / (no snapshot, SecureBootModel=Default) and you will have again the working wifi prefpane (obviously after an os update you will have to copy again D-LinkWirelessUtility.prefPane and RT2870USBWirelessDriver.kext) Edited November 20, 2020 by ghost8282 Link to post Share on other sites
ghost8282 51 Posted October 15, 2020 Share Posted October 15, 2020 (edited) On 9/30/2020 at 5:09 PM, ghost8282 said: 6- Verify that in the opencore config.plist SecureBootModel is set to "Default" (by changing this the os will not boot from the snapshot!) This is not possible anymore with beta 10: booting with SecureBootModel=Default returns kernel panic, "not possible to boot from the live fs on a release build". Edited October 15, 2020 by ghost8282 JamesIslan and JemsIslan 1 1 Link to post Share on other sites
sparten 1 Posted October 31, 2020 Share Posted October 31, 2020 how to make my usb wifi work with mojave ? The product id is 7601The vendor id is 148F can I find a help ? Link to post Share on other sites
sparten 1 Posted November 1, 2020 Share Posted November 1, 2020 On 10/31/2020 at 3:54 AM, sparten said: how to make my usb wifi work with mojave ? The product id is 7601The vendor id is 148F can I find a help ? now I used vietnam tool and install the usb wifi but cant launch the vendor or vietnam tool app to connect the wifi with mojave any suggestion or helping ? Link to post Share on other sites
eng_redaesm 30 Posted November 14, 2020 Share Posted November 14, 2020 (edited) On 9/30/2020 at 6:09 PM, ghost8282 said: Ok, so ladies and gentlement, my daily updates about the RT2870 device and bug sur (I will name it bug on purpose ). Goal: have a working device with prefpane with all the files installed in the non /System folder. Unluckily the goal is not reached, no luck in patching the wifi prefpane..but..I found a quite good way to have all working. The following applies to current master version of opencore and it's working with bug sur beta 9. I have iMacPro1,1 SMBIOS data. We would want a sealed system, we don't want to delete snapshots, we would want SIP enabled and authenticated-root enabled: however this is not possible at the moment, because the utility needs some files copied to the /System directory. What we will achieve by the following is a sealed system with SIP and authenticated-root enabled with a working device with a not working prefpane and a system not booting from the snapshot, but without breaking the seal; so, we can use the sealed system everyday or a system not booting from the snapshot, and in this last case, we will be able to switch to the sealed system in ?less than 5 minutes? instead of reinstalling MacOS to seal the system again. As I wrote in the above post: 1- mount opencore EFI partition, copy RT2870USBWirelessDriver.kext in the EFI/OC/Kexts folder, modify config.plist to inject the kext on boot 2- copy D-LinkUtility to applications folder (not the pref pane, not the kext, only the utility) 3- go to ~/Library/Preferences (this is ok, since it's a folder under the control of the user); you need to create 2 files: a) ActiveProfileSetting.plist b) AdvancedProfileSetting.plist 4- Go to System preferences, users and groups and add applications/D-LinkUtility/MiniTaskUSB-DLinkUtility to automatically startup the utility 5- Verify that in the opencore config.plist SecureBootModel is set to "Disabled" If you boot your system you will see that it will boot from the snapshot, SIP and authenticated-root can be enabled and the wifi will work, but not the prefpane. If you want the prefpane: 6- Verify that in the opencore config.plist SecureBootModel is set to "Default" (by changing this the os will not boot from the snapshot!) 7- boot into recovery and disable SIP (csrutil disable) and reboot 8- mount / in read and write (sudo mount -uw /) 9- terminal: copy D-LinkWirelessUtility.prefPane in /System/Library/PreferencePanes/ 10- terminal: copy RT2870USBWirelessDriver.kext in /System/Library/Extensions/ 11- Assign proper permissions to D-LinkWirelessUtility.prefPane and RT2870USBWirelessDriver.kext (sudo chmod -R 755 and sudo chown -R root:wheel) 12- End: working wifi and working wifi preference pane Now, let's suppose there's an apple update, to update apple wants a sealed system and booting from snapshot (probably also SIP enabled?) All you have to do is to delete D-LinkWirelessUtility.prefPane and RT2870USBWirelessDriver.kext (not sure if it's a must, anyway delete them since we don't want a not bootable os), mount opencore efi and set back SecureBootModel to "Disabled"; if SIP must be enable for the os update boot into recovery, enable SIP and reboot; since you are now booting from a snapshot you will be able to update the os through the preference pane, you will have a working wifi, but without the pref pane; if you want to have the pref pane back just change SecureBootModel to Default. Booting back from / (no snapshot, SecureBootModel=Default) and you will have again the working wifi prefpane (obviously after an os update you will have to copy again D-LinkWirelessUtility.prefPane and RT2870USBWirelessDriver.kext) I am trying to install in big sur can you please attach D-LinkUtility and D-LinkPrefrancese.pan Edited November 14, 2020 by eng_redaesm Link to post Share on other sites
eng_redaesm 30 Posted November 14, 2020 Share Posted November 14, 2020 hi @chris1111 can you please update the RT3070 driver App to work with Big sur os Link to post Share on other sites
chris1111 5,155 Posted November 14, 2020 Share Posted November 14, 2020 27 minutes ago, eng_redaesm said: hi @chris1111 can you please update the RT3070 driver App to work with Big sur os Not possible because its work only with a snapshot read some above post eng_redaesm and KittyCat 2 Link to post Share on other sites
RagK 0 Posted November 20, 2020 Share Posted November 20, 2020 On 11/15/2020 at 1:35 AM, chris1111 said: Not possible because its work only with a snapshot read some above post What about MT7601 on Big Sur? Will OC kext injection work for RT2870USBWirelessDriver.kext ? Or with clover? Link to post Share on other sites
ghost8282 51 Posted November 20, 2020 Share Posted November 20, 2020 (edited) 2 hours ago, RagK said: Will OC kext injection work for RT2870USBWirelessDriver.kext ? Yes, the injection works, read some posts above. On 11/14/2020 at 7:46 PM, eng_redaesm said: can you please attach D-LinkUtility and D-LinkPrefrancese.pan Please follow these steps to get files from the original package:https://www.insanelymac.com/forum/topic/299948-usb-wifi-updated-ralinkmediatek-rt2870-rt2770-rt3x7x-rt537x-rt5572/?do=findComment&comment=2736720 Take into account that now SecureBootModel Default won't allow you anymore to boot from the root disk: the message you quoted is no more valid. Edited November 20, 2020 by ghost8282 eng_redaesm 1 Link to post Share on other sites
RagK 0 Posted November 20, 2020 Share Posted November 20, 2020 32 minutes ago, ghost8282 said: Yes, the injection works, read some posts above. You mean your 1st message above on page 18? Link to post Share on other sites
ghost8282 51 Posted November 20, 2020 Share Posted November 20, 2020 30 minutes ago, RagK said: You mean your 1st message above on page 18? Yes, this one: Link to post Share on other sites
RagK 0 Posted November 20, 2020 Share Posted November 20, 2020 29 minutes ago, ghost8282 said: Yes, this one: I tried but it did not work. Is it due to the fact that my wifi has WPA2? Link to post Share on other sites
chris1111 5,155 Posted November 20, 2020 Share Posted November 20, 2020 Just now, RagK said: I tried but it did not work. Is it due to the fact that my wifi has WPA2? Why not Buying a compatible adapter This is the Known Working and testing adapter Spoiler #### Known Working and testing adapter - Archer T2U NANO - Archer T3U - Archer T3U Plus - Archer T2U MINI V3 - Archer T2U Plus - ArcherT4U V3 - Archer T9UH V2 - ASUS USB AC68 - ASUS USB-N13 - COMFAST CF-811AC - EDIMAX EW-7722UTn V2 - EDIMAX_EW-7822ULC - EDIMAX EW-7612Uan V2 - EDIMAX N300 - EDIMAX EW-7811Un (N150) - EDUP EP-AC1689 - Linksys WUSB6300 - Linksys WUSB6400M - Netgear A7000 - Sitecom WLA7100 - TL-WN823Nv3 - TL-WN823Nv2 - TL-WN725Nv3 - TL-WN723Nv3 - TL-WN722Nv3 - TL-WN821Nv6 - TL-WN822Nv5 - TRENDnet N150 Micro - TRENDnet TEW-908UB Follow this page https://github.com/chris1111/Wireless-USB-Big-Sur-Adapter eng_redaesm 1 Link to post Share on other sites
ghost8282 51 Posted November 20, 2020 Share Posted November 20, 2020 4 minutes ago, RagK said: I tried but it did not work. Is it due to the fact that my wifi has WPA2? I don't think so, I'm connected to a wpa2 access point. Check that the kext is loaded, check that the utility runs, check network in system preference pane. Link to post Share on other sites
RagK 0 Posted November 20, 2020 Share Posted November 20, 2020 32 minutes ago, ghost8282 said: Check that the kext is loaded, check that the utility runs, check network in system preference pane. Kext is loaded, And the system preference pane shows this Also the utility works as when I unplug wifi dongle, the utility closes automatically. Link to post Share on other sites
Recommended Posts