Skip to content

Instantly share code, notes, and snippets.

@jimklo
Last active Jun 13, 2021
Embed
What would you like to do?
Fix for installing MediaTek USB(RT2870/RT2770/RT3X7X/RT537X) driver in OS X Mavericks

Fix for installing MediaTek USB(RT2870/RT2770/RT3X7X/RT537X) driver in OS X Mavericks

Absolutely no warranties! Proceed at your own risk!

Download driver from here: http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=502

You will need Pacifist: http://www.charlessoft.com

  1. Ensure your USB Wireless adapter is disconnected and reboot.
  2. Mount RTUSB D2870-4.2.6.0 UI-4.0.8.0_2012_09_28-2.dmg
  3. Run the USBWireless-Uninstall.pkg and reboot.
  4. Open USBWireless-Install.pkg
  5. Click "Package Contents" then select "Contents of rt2870resources.pkg".
  6. Click Extract To.. and select your hard disk (which correlates to / ) and click "Choose".
  7. Check "Use Administrator Privileges" and then click "Extract", entering your administrator password when prompted.
  8. Open Terminal.app and type: cd /; sudo mv /USBWireless-Install\ Folder /RT2870Resources
  9. Download the file below, "postinstall", to /RT2870Resources
  10. In Terminal.app type: chmod a+x /RT2870Resources/postinstall sudo /RT2870Resources/postinstall
  11. It will take a few minutes for the script to finish running.
  12. When done shutdown, plug in your USB Wireless adapter, and start back up.
  13. Your adapter should be active and the Ralink menu should now be in the tool bar and selection "Open Wireless Utility" should now work.
  14. Configure and done.

Note: I have noticed that in Mavericks the Mountain Lion driver is a bit touchy. You should shutdown your computer before disconnecting from USB, otherwise a sudden kernel panic could follow.

#!/bin/sh
#. /etc/rc.common
folder="Ralink Wireless Utility"
utility="WirelessUtility"
LeopardMajorVersion="9."
SnowLeopardMajorVersion="10"
LionMajorVersion="11"
MountainLionMajorVersion="12"
MavericksMajorVersion="13" ## Adding version for Mavericks
ThisVersion=`uname -r`
echo ThisVersion=$ThisVersion
ThisMajorVersion=${ThisVersion:0:2}
echo ThisMajorVersion=$ThisMajorVersion
case $ThisMajorVersion in
$LeopardMajorVersion) OsName="Leopard";;
$SnowLeopardMajorVersion) OsName="SnowLeopard";;
$LionMajorVersion) OsName="Lion";;
$MountainLionMajorVersion) OsName="MountainLion";;
$MavericksMajorVersion) OsName="MountainLion";; ## Adding case for Mavericks to use MountainLion
esac
###### Install Driver ######
sudo cp -R /RT2870Resources/Driver/$OsName/RT2870USBWirelessDriver.kext /System/Library/Extensions/RT2870USBWirelessDriver.kext
sudo chown -R root:wheel /System/Library/Extensions/RT2870USBWirelessDriver.kext
sudo chmod -R 755 /System/Library/Extensions/RT2870USBWirelessDriver.kext
#sudo kextload -v /System/Library/Extensions/RT2870USBWirelessDriver.kext
#sudo touch /System/Library/Extensions
if [ $ThisMajorVersion != $LeopardMajorVersion ]
then
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
#sudo kextcache -v -1 -t -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
#else
#sudo touch /System/Library/Extensions
fi
###### Install API ######
sudo cp -R /RT2870Resources/API/RaWLAPI.framework /Library/Frameworks/RaWLAPI.framework
sudo chown -R root:wheel /Library/Frameworks/RaWLAPI.framework
sudo chmod -R 755 /Library/Frameworks/RaWLAPI.framework
###### Install UI ######
sudo cp -R /RT2870Resources/UI/"$folder" /Applications/"$folder"
sudo chmod -R 777 /RT2870Resources/UI/"$folder" /Applications/"$folder"
###### Install CommandServer ######
sudo cp -R /RT2870Resources/Other/WiFiUtilityStartUp /System/Library/StartupItems/WiFiUtilityStartUp
sudo chown -R root:wheel /System/Library/StartupItems/WiFiUtilityStartUp
sudo chmod -R 755 /System/Library/StartupItems/WiFiUtilityStartUp
###### Modify LoginItem ######
/Applications/"$folder"/LoginItem -stringArg /Applications/"$folder"/$utility.app -boolArg YES
###### Remove install temp files ######
sudo rm -R /RT2870Resources
@thisiswei

This comment has been minimized.

Copy link

@thisiswei thisiswei commented Nov 3, 2013

Great! Thanks!

@thisiswei

This comment has been minimized.

Copy link

@thisiswei thisiswei commented Nov 3, 2013

@jimklo , do you know what the problem is if "Frames received with CRC Error" is huge, as well as Drop due to out of resources?

@jimklo

This comment has been minimized.

Copy link
Owner Author

@jimklo jimklo commented Nov 7, 2013

@thisiswei, sorry, haven't a clue... That's a question for MediaTek...

@edingacic

This comment has been minimized.

Copy link

@edingacic edingacic commented Jul 14, 2014

Hello jimklo do you know how to install this on yosemite? I was not able to get it to work or maybe I am not reading it right. I have the new installer 4.2.9.2 but i am not able to make it work on 10.10 OS X

@rodrigo-brito

This comment has been minimized.

Copy link

@rodrigo-brito rodrigo-brito commented Jul 24, 2014

it don't work in Mavericks 10.9.4... I will need change something?

@KamikX

This comment has been minimized.

Copy link

@KamikX KamikX commented Sep 8, 2014

Hi you must replace files with files in attachment below after replace this file repair disk permissions with using kextwizard eg. and restar computer.
After this step try connect to your network, card should work.

IO80211Family.kext ->System/Library/Extensions/
airportd ->usr/libexec/

https://www.dropbox.com/s/lnf7p2m4tpfl9mj/RT73_fix_10.9.4.zip?dl=0

@danielnicollet

This comment has been minimized.

Copy link

@danielnicollet danielnicollet commented Dec 10, 2018

Anybody wants to try fixing this for High Sierra?

@zhouhesheng

This comment has been minimized.

Copy link

@zhouhesheng zhouhesheng commented Jun 14, 2019

the 32 bit RaWLAPI.framework is not working in mac os 10.15 catalina.
Does anyone have a 64 bit version?

@jimklo

This comment has been minimized.

Copy link
Owner Author

@jimklo jimklo commented Jun 25, 2019

@zhouhesheng unless MediaTek has updated the driver... I don't think you're going to get this to work in Catalina.

@zhouhesheng

This comment has been minimized.

Copy link

@zhouhesheng zhouhesheng commented Jun 28, 2019

@vrudikov

This comment has been minimized.

Copy link

@vrudikov vrudikov commented Oct 16, 2019

@zhouhesheng can you share the attachment, plz

64 bit apps from DWA140 drivers

@zhouhesheng

This comment has been minimized.

Copy link

@zhouhesheng zhouhesheng commented Oct 20, 2019

@zhouhesheng can you share the attachment, plz

64 bit apps from DWA140 drivers
Please use chris1111's installer, it works.
https://github.com/chris1111/WIFI-Dlink-Catalina-Panel-V2

@deverassilva

This comment has been minimized.

Copy link

@deverassilva deverassilva commented Jun 28, 2020

boa tarde, existe kext para ralink RT3290?

@kelada545

This comment has been minimized.

Copy link

@kelada545 kelada545 commented Oct 17, 2020

Hi. I'm a Windows user but have just had to sort WiFi on Snow Leopard. These are my notes:

PROBLEMS WITH SNOW LEOPARD WIFI - Mediatek MT7601 drivers not working

solution:-

avoid Mediatek MT7601 drivers - use MT7610 drivers!

file: mt7612_7610u_d5.0.1.25_sdk1.0.2.18_ui5.0.0.27_20151209.dmg

You can, if you wish, split the dmg file to obtain:-

RTUSB_MTK_V5_Installer containing Wireless Drivers v. 5.0.1.25

I used MS Windows 7 and the 7-z application.

Driver file is still RT2870USBWirelessDriver.kext

Individual folders for seven OS X versions are included:-

El Capitan, Leopard, Lion, Mavericks, Mountain Lion, Snow Leopard and Yosemite

Comprehensive Info.plist files cover A-Z manufacturers and models!

I hope this may help someone still using an older MAC OS X

@kelada545

This comment has been minimized.

Copy link

@kelada545 kelada545 commented Oct 18, 2020

Further to my comments above, I have done Gmail using Google Chrome and with a weak WiFi signal - around 20% and without the periodic disconnection that we sometimes see at low levels. The MediaTek driver I'm using, as recommended above, is the version five, issued in 2015, and works where the version three and four drivers from Ralink haven't. MediaTek took over Ralink in 2011. I'm using the MT7601 USB dongles, with rubber-duck antennas, found online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment