Skip to content

Instantly share code, notes, and snippets.

Last active Jun 13, 2021
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:

You will need Pacifist:

  1. Ensure your USB Wireless adapter is disconnected and reboot.
  2. Mount RTUSB D2870- UI-
  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 and type: cd /; sudo mv /USBWireless-Install\ Folder /RT2870Resources
  9. Download the file below, "postinstall", to /RT2870Resources
  10. In 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.

#. /etc/rc.common
folder="Ralink Wireless Utility"
MavericksMajorVersion="13" ## Adding version for Mavericks
ThisVersion=`uname -r`
echo ThisVersion=$ThisVersion
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
###### 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 ]
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
#sudo kextcache -v -1 -t -m /System/Library/Caches/ /System/Library/Extensions
#sudo touch /System/Library/Extensions
###### 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"/$ -boolArg YES
###### Remove install temp files ######
sudo rm -R /RT2870Resources
Copy link

thisiswei commented Nov 3, 2013

Great! Thanks!

Copy link

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?

Copy link

jimklo commented Nov 7, 2013

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

Copy link

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 but i am not able to make it work on 10.10 OS X

Copy link

rodrigo-brito commented Jul 24, 2014

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

Copy link

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/

Copy link

danielnicollet commented Dec 10, 2018

Anybody wants to try fixing this for High Sierra?

Copy link

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?

Copy link

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.

Copy link

zhouhesheng commented Jun 28, 2019

Copy link

vrudikov commented Oct 16, 2019

@zhouhesheng can you share the attachment, plz

64 bit apps from DWA140 drivers

Copy link

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.

Copy link

deverassilva commented Jun 28, 2020

boa tarde, existe kext para ralink RT3290?

Copy link

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


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.

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

Copy link

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