View Full Version : [ubuntu] Need a little guidance installing wireless driver

January 27th, 2011, 01:56 PM
Iím a Linux newbie who needs a little guidance installing a wireless driver. Iíve just installed Ubuntu 10.10 and everything but my wireless connection is working fine. Ubuntu has a working driver for my wireless usb dongle, and Iím able to connect to my wireless network. However, the driver seems to make my wireless connection unstable. Sometimes I lose the connection and I have to restart my computer to get it working again. To solve the problem I want to install the correct driver for my wireless usb dongle. Iíve found the correct driver and the installation instructions for my wireless usb dongle but I canít decipher the installation instructions. This is where I need your help. The 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
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
=> #>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

Step 1 is no problem, but the rest makes no sense to me. Can someone please tell me how to install this driver?