I have been searching and reading for days, now. I have gained some ground on this thing (thanks Chili555), but I haven't solved everything, yet. Please help!!
I am using a G-Sky USB Wireless N Card, with the RT3070 chipset inside. I am running Ubuntu 10.04 Netbook Edition, but I run in Gnome, not the Netbook mode.
First, when I plugged in the USB wireless card, it was recognized, but no APs would show up. I did some research and found out that I should blacklist rt2800usb and that rt2870sta was built in to the kernel. This got things rolling, as it recognized APs and could connect to UNENCRYPTED networks (which, obviously brings us to the next issue).
Then, I attempted to get encrypted networks going, and so I did some more research and, at this point, I downloaded the latest Ralink driver for the RT3070. I edited os/linux/config.mk to say "Yes" for WPA support, and tried to compile the driver with $make and $make install, but I received errors right away, without the appearance of much happening. [EDIT: I may have done something else that I read somewhere in one of the numerous tutorials and forum threats that I read, but if I did, I do not recall what it was!] I rebooted and was able to connect to encrypted networks--I was feeling good about this, and I thought I had solved everything, but then, I noticed that the connection bit rate was lower than anticipated for a Wireless N network (only 54MBps).
Now, I have been attempting to solve this issue with various methods, and I feel that the driver is not compiling itself correctly, and that I am relying on the included "staging" driver. When checking the version on terminal, it tells me that it is older than I expected, so this reaffirmed my suspicion.
Code:
~$ modinfo rt2870sta | grep -i version
version: 2.0.1.0
srcversion: 169A56F8E0E6AA9C2B2FD02
vermagic: 2.6.32-41-generic SMP mod_unload modversions 586
and
Code:
~$ dmesg | grep -i rt2
[ 15.318717] rt2870sta: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.377559] usbcore: registered new interface driver rt2870
Here is what the error looks like when I try to run $make and $make install:
Code:
:~/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO$ make
make -C tools
make[1]: Entering directory `/home/xxx/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: gcc: Command not found
make[1]: *** [all] Error 127
make[1]: Leaving directory `/home/xxx/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools'
make: *** [build_tools] Error 2
and
Code:
~/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO$ sudo make install
[sudo] password for xxx:
make -C /home/xxx/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/home/xxx/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/xxx/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/2.6.32-41-generic/kernel/drivers/net/wireless/
install -m 644 -c rt5370sta.ko /lib/modules/2.6.32-41-generic/kernel/drivers/net/wireless/
install: cannot stat `rt5370sta.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/xxx/Downloads/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux'
make: *** [install] Error 2
I noticed in the README_STA_usb file included with the latest driver files, the following:
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
Since it was returning errors about gcc when I was running $make and $make install, I thought that, perhaps I had to specify the location of gcc (I have no idea what gcc is, I am NOT familiar with debian stuff very much, I am an old Windows user); however, I am unsure WHERE in the os/linux/config.mk file to specify this, so I am, again, stumped.
To sum things up, I have the card working, connecting to encrypted networks, but not at Wireless N speeds. PLEASE PLEASE PLEASE help, my brain is FRIED!!!
Thanks kindly,
Sean
Bookmarks