Friday, 8 October 2010

Setup D-Link DWA-140(Ralink 2870USB) on Fedora 13

1. Installing the Kernel Source via yum.
    # yum install kernel-PAE-devel
       (I'm currently using kernel 2.6.34 PAE)

2. Get the driver from Ralink Driver Download.

3. Extract the driver in some place.

    # tar -jxvf 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 -C /tmp
    # cd /tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1

4. Configure the driver which can be controlled by WPA_SUPPLICANT
    or NetworkManager.
 
    # vi os/linux/config.mk
       set 
               'HAS_WPA_SUPPLICANT=y' 
                and 
               'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'

5. build and install.

    # make
    # make install
       (it will copies a firmware(RT2870STA.dat) in the /etc/Wireless directory
          and a driver module(rt2870sta.ko) in /lib/modules/{kernel version}/kernel/
          drivers/net/wireless directory. Subsequently regenerates modules.dep and 
          map files.)

6.Configure NIC to auto-load at boot time.

    # echo "alias ra0 rt2870sta" >> /etc/modules.conf

    # echo "DEVICE='ra0' >> /etc/sysconfig/network-scripts/ifcfg-ra0
    # echo "ONBOOT='yes' >> /etc/sysconfig/network-scripts/ifcfg-ra0

7. Done.

No comments:

Post a Comment