DSL Tips and Tricks :: using Ralink rt61 WLAN driver



what I did:

Installed from system:
gcc1.with-libs.dsl and gnu-utils.dsl

from testing
gcc-2.95.dsl

Following steps with root
Code Sample

sudo su


installed kernel-2.4.26 from kernel.org
Code Sample

tar -xvzf kernel-2.4.26.tar.gz -C /usr/src



installed from system
kernelsource.dsl

Downloaded the Ralink driver Version 1.1.0.0 from Ralink:
http://www.ralink.com.tw/Home/Support/Linux.html

Code Sample

cd /home/dsl



Decompressed the file

Code Sample

tar -xvzf  RT61_Linux_Sta_Drv1.1.0.0.tar.gz
cd RT61_Linux_STA_Drv1.1.0.0/Module/


Make a symlink from gcc to cc or edit Makefile, because cc
is not installed. Use gcc instead.

Code Sample

./Configure
make
make install
mkdir /etc/Wireless/RT61STA
cp rt*.bin /etc/Wireless/RT61STA/.
cp rt61sta.dat /etc/Wireless/RT61STA/.
dos2unix /etc/Wireless/RT61STA/rt61sta.dat


edit rt61sta.dat to local requirentments cf. Ralink readme to do so.

Code Sample

vi -b /etc/Wireless/RT61STA/rt61sta.dat


add following lines to /opt/bootlocal.sh
Code Sample

ifconfig ra0 192.168.101.174 up #local ip-address
route add default gw 192.168.101.1 ra0 #Wireless router ip



edit /etc/dhcpc/config
Code Sample

IFACE=ra0


edit /etc/dhcpc/resolv.conf
Code Sample

search
nameserver 192.168.101.1 #Wireless router ip



It should also work with Knoppix 3.4 and manually install compiled driver to DSL.
But I did not test it. I needed the compiler for different other tools.

have fun

Daniel

Quote
installed kernel-2.4.26 from kernel.orgCode Sample

tar -xvzf kernel-2.4.26.tar.gz -C /usr/src




installed from system
kernelsource.dsl
Kernel headers (kernelsource.dsl) should be enough to compile network drivers I should think and downloading the full source should not be required.


original here.