RALINK RT5370STA - Ubuntu 11.04 - only running at 54Mbps out of 150MBps

Hello, after following a VERY handy forum topic on this site earlier today and by downloading one of Marks modified drivers i was able to get my Ralink USB WIFI dongle working after nearly 3 months of owning it… Thank you for that,

Only problem i have with the infernal thing now is its supposed to be running at 150Mbps but i cant seem to find out ANYWHERE how to get it off 54Mbps and since it as the info on this forum that got it working in the first place… Please help me, and be gentle im not exactly the most technically competent linux user, ive only been using it for about 5 months, i can find my way around to do things if “guided” though lol

It could be being caused by quite a few different things… can you send the output from the following commands, run in a terminal:-

lsusb
sudo iwlist scanning
iwconfig
sudo lshw -C network

[EDIT]

And which driver you used.

Oh, and make/model of the router it’s connecting with may also be useful… or not :slight_smile:

Thanks for getting back to me Mark.

The output from lsusb is as follows:
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Output from iwlist scanning is as follows:
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

ra0 Scan completed :
Cell 01 - Address: 00:1C:DF:60:87:8D
Protocol:802.11g
ESSID:“belkin54g”
Mode:Managed
Frequency:2.422 GHz (Channel 3)
Quality=100/100 Signal level=-35 dBm Noise level=-92 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK

Output from iwconfig is as follows:

lo no wireless extensions.

eth0 no wireless extensions.

ra0 Ralink STA ESSID:“belkin54g” Nickname:“RT2870STA”
Mode:Managed Frequency=2.422 GHz Access Point: 00:1C:DF:60:87:8D
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-35 dBm Noise level:-66 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Output from sudo lshw -C network is as follows:

*-network
description: Ethernet interface
product: VT6102 [Rhine-II]
vendor: VIA Technologies, Inc.
physical id: 12
bus info: pci@0000:00:12.0
logical name: eth0
version: 74
serial: 00:40:ca:bf:d8:c4
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=via-rhine driverversion=1.5.0 duplex=half latency=64 link=no maxlatency=8 mingnt=3 multicast=yes port=MII speed=10Mbit/s
resources: irq:10 ioport:2400(size=256) memory:20001000-200010ff
*-network
description: Wireless interface
physical id: 2
logical name: ra0
serial: 7c:dd:90:06:dc:6c
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=RALINK WLAN ip=192.168.2.2 multicast=yes wireless=Ralink STA

The driver i installed was off a post you were assisting on where you had modified the rt5370sta driver and uploaded to dropbox (http://dl.dropbox.com/u/11876059/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO.tar.bz2)

i noticed as i was getting the outputs, that iwconfig gives the nickname RT2870STA yet the chipset i have is RT5370, could that be the issue? i have no clue im just stabbing in the dark lol.

Originally i did try and install drivers for RT2870 because thats the model it said on the drivers that came on the disk, however since reading one of your posts i noted the chipset to be 5370 on the lsusb output, and as a result found your modified drivers which worked (at slower speeds granted)

[b]ESSID:"belkin54g"[/b]

If this is the router your USB wireless adapter is connected to (and it is :wink: )… the router only supports 54Mbps (Wireless “G”)… so the USB adapter negotiates the fastest speed the router can communicate, and drops to that speed.

So I’m afraid if you want 150Mbps, you’ll have to buy a Wireless “N” router. :wink:

[EDIT]

And YES rt2870sta is the correct driver, (even though the adapter is an rt5370), but it will be using the rt5370 firmware.

So where it says:
ra0 Ralink STA ESSID:“belkin54g” Nickname:“RT2870STA
Seems odd, but that is correct :slight_smile:

Well, that clears that up then… i take it there isnt some kinf of firmware upgrade i can run to enable wireless N?

well, that was easy, thank you for your help Mark. im sure ill have some other Ubuntu related ball ache in the future… in actual fact i do, but ill post on it tomorrow…

i plugged my wifes nokia in via usb on my desktop pc the other day, an error message came up (too quick to take note of what it said) now ubuntu doesnt seem to be seeing the onboard lan… will you require the same output data?

i take it there isnt some kinf of firmware upgrade i can run to enable wireless N?

Nope, afraid not… even if it was technically possible, call me cynical but do you think Belkin would actually release it ? :wink:

will you require the same output data?

First, have you tried a reboot ?

If we are still talkiing about Wireless LAN… YES, but also add the output from:

rfkill list

But if you mean it’s the Wired LAN adapter that is now giving you problems…

sudo lshw -C network

and

ifconfig

Hiya, yeah ive tried a reboot, still nothing.

It is the wired network

i have tried messing with network manager and i have noticed that “loopback” is set as the default network device, i try to change it and then go back into network manager and loopback is still default.

ive grabbed the outputs from the commands you listed and managed to get most of them but rfkill list didnt output anything.

steve@steve-Alaska:~$ sudo lshw -C network
[sudo] password for steve:
*-network
description: Ethernet interface
product: 3CSOHO100B-TX 910-A01 [tulip]
vendor: 3Com Corporation
physical id: 2
bus info: pci@0000:02:02.0
logical name: eth0
version: 31
serial: 00:40:2b:7c:21:4a
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list rom ethernet physical
configuration: broadcast=yes driver=tulip driverversion=1.1.15 latency=64 maxlatency=128 mingnt=64 multicast=yes
resources: irq:18 ioport:2000(size=256) memory:d2000000-d20003ff memory:60000000-6001ffff

steve@steve-Alaska:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:2b:7c:21:4a
inet6 addr: fe80::240:2bff:fe7c:214a/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:10 dropped:0 overruns:0 carrier:20
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9792 (9.7 KB) TX bytes:9792 (9.7 KB)

steve@steve-Alaska:~$ rfkill list
steve@steve-Alaska:~$

OK, I take it this is a different PC than the first one that had the Wireless issue ?

Try this…

Go to the NetworkManager panel applet (by clock), click it, and select Edit Connections, in the Wired tab, highlight the Auto eth0 entry, click the Edit button.

go to the IPv4 tab, and change:
Method: Automatic (DHCP)

go to the IPv6 tab, and change:
Method: Ignore

Click the Save button.

If necessary, reboot.

yeah it is a different machine, and… those are the settings i already have, the activity lights are not illuminated on the network port either since plugging in the nokia phone…

i also thought, “sod it wipe it and reinstall” so booted from my natty usb stick and low and behold the post installation check list states my machine is not connected to the internet.

i have been into the BIOS and the onboard lan is activated AND obviously Linux can see it from the output obtained earlier but somehow it seems to be deactivated while still being active…??? IT MAKES NO SENSE!!!

So let me get this straight… the wired network adapter worked until you plugged in the nokia, but a full wipe of the hard drive and reinstall of Ubuntu didn’t clear the issue ?

Have you tried removing the plug from the wall, (and the battery if it’s a laptop), then hitting the power button to discharge any residual power, then replugging it, and trying again ?

Have you tried toggling the Reset configuration data, or Clear DMI pool data, or similar in the BIOS ?

I take it you’ve tried restarting the router ?

have you tried plugging the ethernet cable into a different socket on the router ?

Are there enough free IP addresses in the routers DHCP pool ?

Have you tried setting a static IP address ?

Do you know your routers IP address ?

What are the contents of this file:

gedit /var/lib/dhcp/dhcpd.leases

What is the output from

sudo iptables -t filter --list

and

route

Is there anything useful in the system logs ?

Hiya,

Just a quickie… ive tried recompiling ra5370 for the latest kernel 2.6.38-12 but i get install errors 1 & 2 - i have defaulted back to 2.6.38-11 to et my dongle working again but would like to get it working under the latest kernel, any ideas?

Also in regards to the eth0 on my desktop, i honestly think im going to have to buy a new network card for it. its just not showing up on any of the outputs you got me to try.

Firstly, how are you installing 2.6.38-12, as I’ve just set up Natty in a VM and after all the updates it’s only on 2.6.38-11 ?

Secondly, why are you recompiling the driver at all ?

the update to 2.6.38-12 was downloaded automatically as part of the xubuntu distro upgrade to 11.10, i recompiled the driver as running with 2.6.38-12 completely disables the RA5370 dongle. it shows up with lsusb but all other outputs only show ‘eth0’ and ‘lo’

im manually loading 2.6.38-11 every time i boot now and my usb dongle works perfectly.

Ah … OK, I’m going to have to download Xubuntu then :wink:

Are you 100% sure it’s 2.6.38-12 as Ubuntu 11.10 is on 3.0.0-12

Downloading Xubuntu now so I can install it in a VM, and try to work out what the problem is.

ahhh, ive double checked, and yeah, 2.6.38-12 came down in an automatic update, BEFORE i installed the 11.10 distro upgrade. however with checking both Kernels, and booting with them both individually, the ra5370 doesnt work with either of them and wont install on the new Kernels either.

I’ll post back as soon as I’ve got Xubuntu 11.10 installed in a VM and worked out how to compile/install the driver.

Are you saying it’s stopped working in 2.6.38-11 as well now ?

Also, can you post the actual error messages when you try to install it.

OK there’s something odd going on here … I’ve just installed Xubuntu 11.10 in a VM and it has kernel 3.0.0-12 the same as Ubuntu 11.10 (which makes sense).

Whilst booted with the new kernel, can you send the output from:

uname -a

and

sudo lshw -C network

and

lsusb

and

lsmod | grep rt28

FYI, it compiled and installed without issue in a fresh install of Xubuntu 11.10 with kernel 3.0.0-12 … although I can’t test if the driver works as I haven’t got an rt5370 based adapter, but I can see no reason it shouldn’t.

right here goes

uname -a

Linux Lucifer 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 athlon i386 GNU/Linux

sudo lshw -C network

*-network
description: Ethernet interface
product: VT6102 [Rhine-II]
vendor: VIA Technologies, Inc.
physical id: 12
bus info: pci@0000:00:12.0
logical name: eth0
version: 74
serial: 00:40:ca:bf:d8:c4
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=via-rhine driverversion=1.5.0 duplex=half latency=64 link=no maxlatency=8 mingnt=3 multicast=yes port=MII speed=10Mbit/s
resources: irq:10 ioport:2400(size=256) memory:20001000-200010ff

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp.

lsmod | grep rt28

No output from this command?!

also there is this output from make && make install

steve@Lucifer:~/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO$ sudo make && make install
[sudo] password for steve:
make -C tools
make[1]: Entering directory /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/tools’
/home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/Makefile
make -C /lib/modules/3.0.0-12-generic/build SUBDIRS=/home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux modules
make[1]: Entering directory /usr/src/linux-headers-3.0.0-12-generic' CC [M] /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_mcu.o /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicSendCommandToMcu’: /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_mcu.c:415:13: warning: unused variable ‘pObj’ [-Wunused-variable] LD [M] /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.o Building modules, stage 2. MODPOST 1 modules LD [M] /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.ko make[1]: Leaving directory /usr/src/linux-headers-3.0.0-12-generic’
cp -f /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.ko /tftpboot
make -C /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux -f Makefile.6 install
mkdir: cannot create directory /etc/Wireless': File exists make[1]: Entering directory /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux’
rm -rf /etc/Wireless/RT2870STA
rm: cannot remove /etc/Wireless/RT2870STA/RT2870STA.dat': Permission denied make[1]: *** [install] Error 1 make[1]: Leaving directory /home/steve/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO/os/linux’
make: *** [install] Error 2

what would be the command to manually load the module? and i think there is a way to load the module at boot… i know i managed to do it before under 2.6.38-11 but cant remember how!

also since messing around with Kernels i somehow have managed to screw up GRUB… by default it keeps loading this damn annoying memtest thing, i have to hold down shift at bot and manually select which kernel i want to load to even get my desktop to load… I have startup manager installed and have set the kernal i want to load with it but low and behold… memtest still loads by default… not as major as the whole ralink driver issue but still irritating.

OK, there’s the problem…

for some strange reason you CANNOT run:
sudo make && make install

it MUST be run from a root promt (#)

so run:

cd ~/Downloads/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO

then

sudo su

then

make clean

then

make && make install

I mentioned this in the original topic :wink:


We’ll fix the grub boot order in a bit.


BTW, I don’t know where it’s saying 2.6.38-12, but it’s wrong … you are running the 32bit 3.0.0-12 kernel

[b]3.0.0-12[/b]-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 athlon i386 GNU/Linux

The command you’re after to load the driver is:

sudo modprobe rt5370sta

well… its all worked, im now using wireless on 3.0.0-12 and it autoloaded at boot… now one more thing Yoda…
What the smeg is going on with grub? even though i have set 3.0.0-12 as the kernel i want to load, im still having to hold shift at boot to load grub so i can select the Kernel, otherwise the memtest screen keeps loading…