You are not logged in.

#1 2010-02-21 04:08:13

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

I've downloaded device drivers from a website.. how do I install them?

I've downloaded the latest drivers for my Wireless USB network adapter, but I have no idea how to install them.

Will the following instructions work? They were included with the download:

=======================================================================
Build Instructions: 
====================

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
    go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.
   
2> In Makefile
     set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
     define the linux kernel source include file path LINUX_SRC
     modify to meet your need.

3> In os/linux/config.mk
    define the GCC and LD of the target machine
    define the compiler flags CFLAGS
    modify to meet your need.
    ** Build for being controlled by NetworkManager or wpa_supplicant wext functions
       Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
       => #>cd wpa_supplicant-x.x
       => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
    ** Build for being controlled by WpaSupplicant with Ralink Driver
       Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
       => #>cd wpa_supplicant-0.5.7
       => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
    # compile driver source code
    # To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
      => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat  /etc/Wireless/RT2870STA/RT2870STA.dat
   
6> load driver, go to "os/linux/" directory.
    #[kernel 2.4]
    #    $/sbin/insmod rt2870sta.o
    #    $/sbin/ifconfig ra0 inet YOUR_IP up
       
    #[kernel 2.6]
    #    $/sbin/insmod rt2870sta.ko
    #    $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver   
    $/sbin/ifconfig ra0 down
    $/sbin/rmmod rt2870sta

According to ralink, these instructions work for all 2.6.* kernels.

Or is there some way to makepkg so that pacman can install it?

You can get the file right here to check it out:
http://www.ralinktech.com/license_us.ph … M1MFlYST1D

Last edited by trusktr (2010-02-21 04:09:10)


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-02-21 04:22:19

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: I've downloaded device drivers from a website.. how do I install them?

it looks like it's in staging. looking at arch kernel config:
CONFIG_RT2870=m
install the firmware (not sure if this requires a reboot after install or not):
# pacman -S rt2870usb-fw
then, simply try:
# modprobe rt2870
or whatever it is called (maybe rt2870sta) and it should work.

Offline

Board footer

Powered by FluxBB