How to use RaLink RT2560 based PCI (MiniPCI) WiFi card?

  1. Enable:
    CONFIG_PCI=y
    CONFIG_NET=y
    CONFIG_WIRELESS_EXT=y
    in your kernel configuration.
  2. Download this tarball with driver source code and uncompress it:
    host% tar xvzf rt2500-cvs-2009041204.tar_.gz
  3. Enter Module directory
    host% cd rt2500-cvs-2009041204/Module
  4. Compile the driver
    host% make ARCH=sh CROSS_COMPILE=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux- KERNDIR=<your_kernel_dir>
    and copy resulting rt2500.ko file to your target directory.
  5. Boot your target, load the module and bring up the interface:
    target# insmod rt2500.ko 
    rt2500: 1.1.0 CVS 2009041204 http://rt2x00.serialmonkey.com
    target# ifconfig ra0 up
  6. Now you can scan available networks
    target# iwlist ra0 scan
    ra0       Scan completed :
              Cell 01 - Address: 00:1F:33:FC:04:0E
                        Mode:Managed
                        ESSID:"NETGEAR"
                        Encryption key:off
                        Channel:1
                        Quality:96/100  Signal level:-30 dBm  Noise level:63 dBm
  7. If attached to a network, you may get an address from a DHCP server
    host# iwconfig ra0
    ra0       RT2500 Wireless  ESSID:"NETGEAR"  
              Mode:Managed  Frequency=2.412 GHz  Access Point: 00:1F:33:FC:04:0E   
              Bit Rate=54 Mb/s   Tx-Power:-6 dBm   
              RTS thr:off   Fragment thr:off
              Encryption key:off
              Link Quality=96/100  Signal level:-30 dBm  Noise level:-80 dBm
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    host# udhcpc -i ra0
    udhcp client (v0.9.8) started
    Sending discover...
    Sending select for 192.168.1.4...
    Lease of 192.168.1.4 obtained, lease time 86400