A listing of random software, tips, tweaks, hacks, and tutorials I made for Ubuntu
How to compile rt2870sta successfully
September 9, 2011Posted by on
Many people have issues on compiling the rt2870sta driver, since it is no longer updated. The current Linux headers are much too new for the drivers. Luckily, the solution is very simple.
NOTE: This tutorial is only for USB Wireless Sticks.
Open up a Terminal window, and type in it:
Look for a line a bit like this:
Bus 001 Device 004: ID 1234:5555 BRAND_OF_STICK
Remember the parts in bold.
Now type in a Terminal window:
wget http://dl.dropbox.com/u/21016209/DRIVER.tar.lzma.bz2 bunzip2 DRIVER.tar.lzma.bz2 unlzma DRIVER.tar.lzma tar -xf DRIVER.tar cd 2010_0709_RT2870_Linux_STA_v184.108.40.206 gedit common/rtusb_dev_id.c
A text editor should pop up. Add a new line (before the
#endif // RT2870 // line), press TAB, and type:
And replace the parts in bold by the ID you saw in the lsusb command.
Save and close the file.
Then type in the Terminal window:
sudo make sudo make install cat << EOF | sudo tee -a /etc/modprobe.d/blacklist.conf blacklist rt2x00usb blacklist rt2x00lib blacklist rt2800usb EOF echo 'rt2870sta' | sudo tee -a /etc/modules
If you had any problems, feel free to comment below.
If this helped you, please link to this post and/or leave a comment!