This didn't work for me, so heres what I did to make it work perfectly.
1.) Download the latest original Ralink RT61 drivers from:
Code:
$> wget http://www.ralinktech.com/drivers/Linux/RT61_Linux_STA_Drv1.1.0.0.tar.gz
Note: I wrote the guide for 1.0.4.0, but it is no longer available for download. However, it should work with the new driver as well. If it does, please post that.
2.) Compile the Module
Install the kernel headers corresponding to your kernel (In most cases it should be installed by default, but it seems there are derivates which won't do that)
Code:
sudo apt-get install linux-headers-`uname -r`
^^ Did NOT need to do.
Code:
$> tar xvfz RT61_Linux_STA_Drv1.0.4.0.tar.gz
$> cd RT61_Linux_STA_Drv1.0.4.0/Module/
$> cp -f Makefile.6 Makefile
$> make all
3.) Get root
4.) Prepare Config directory for the module
Code:
#> mkdir -p /etc/Wireless/RT61STA/
#> cp *.bin /etc/Wireless/RT61STA/
#> cp rt61sta.dat /etc/Wireless/RT61STA/
5.) Install Kernel Module
Code:
#> cp rt61.ko /lib/modules/`uname -r`/kernel/drivers/net/
#> depmod
6.) Configure module via rt61sta.dat (use binary edit mode)
Code:
#> vi -b /etc/Wireless/RT61STA/rt61sta.dat
ENTER FOLLOWING:
Code:
[Default]
NetworkType=Infra
AuthMode=SHARED
EncrypType=WEP
DefaultKeyID=1
Key1=<KEY>
SSID=<WIRELESS SSID>
7.) Remove broken preinstalled Module
8.) Load module rt61
Edit modprobe and network config files
Add broken module to blacklist:
Code:
#> echo 'blacklist rt61pci' >> /etc/modprobe.d/blacklist
Add the new module to module autostart
Code:
#> echo 'rt61' >> /etc/modules
and create an alias
Code:
#> echo 'alias ra0 rt61' >> /etc/modprobe.d/aliases
Create file named StartWifi.sh in /etc/init.d/
Code:
#!/bin/sh
sudo modprobe --remove rt61pci
sudo modprobe rt61
sudo iwpriv ra0 set NetworkType=Infra
sudo iwpriv ra0 set AuthMode=SHARED
sudo iwpriv ra0 set EncrypType=WEP
sudo iwpriv ra0 set DefaultKeyID=1
sudo iwpriv ra0 set Key1=<KEY>
sudo iwpriv ra0 set SSID=<WIRELESS SSID>
sudo dhclient ra0
Enter the following terminal commands
Code:
sudo chmod 0755 /etc/init.d/StartWifi.sh
sudo ln -s /etc/init.d/STartWifi.sh /etc/rc2.d/S90StartWifi.sh
Reboot - Try - Be Happy!
Now, If you do a kernel update do the following:
copy rt61.ko from /lib/modules/(OLD KERNEL)/kernel/drivers/net to /lib/modules/(NEW KERNEL)/kernel/drivers/net
then run the following terminal command:
And that should be it!!!
I did not make this up myself, I took some of the info from this post, some from another post, and some from help from very nice people in IRC.
Bookmarks