Rutilt freezes when scanning for available networks

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4602

saghaulor

05-02-2008 16:04:52

Hello all,

I'm very new to linux, but I'm trying very hard to learn the ropes.

Anyways, I'm having trouble with the rt2570 driver and rutilt application. I'm using Ubuntu Gutsy. I used synaptic to download the rt2570 source and install the rutilt application. After the install I ran rutilt and connected to my home network with no problems. After I restarted the computer, rutilt freezes when I try to scan for available networks.

I posted my problem on the ubuntu forums hoping for some help. I got some, but it didn't seem to help much either. Here is what I did last night hoping it would help. This proceeding post is the same post that appears in my thread on ubuntu forums. Unfortunately, I haven't received any feedback in several days, I believe they may have given up on me.

First, here is a link to the thread in case you would like to read my whole story.

http//ubuntuforums.org/showthread.php?t=664641

here is what I did last night.

I decided to rebuild my system as I wasn't getting anywhere.

I tried installing the rt2570 source and rutilt from synaptic. It worked until I turned my machine off. Then it would lock up when scanning for an available network.

So I tried your steps again.

Here are my results.

stephen@stephen-laptop~$ sudo apt-get build-essential
[sudo] password for stephen
E Invalid operation build-essential
stephen@stephen-laptop~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed
g++ g++-4.1 libc6-dev libstdc++6-4.1-dev linux-libc-dev
Suggested packages
g++-multilib g++-4.1-multilib gcc-4.1-doc glibc-doc manpages-dev
libstdc++6-4.1-doc
The following NEW packages will be installed
build-essential g++ g++-4.1 libc6-dev libstdc++6-4.1-dev linux-libc-dev
0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
Need to get 3150kB/7157kB of archives.
After unpacking 30.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get1 [url3bs81oj9]http://security.ubuntu.com[/url3bs81oj9] gutsy-security/main linux-libc-dev 2.6.22-14.51 [653kB]
Get2 [url3bs81oj9]http://archive.ubuntu.com[/url3bs81oj9] gutsy-updates/main libc6-dev 2.6.1-1ubuntu10 [2497kB]
Media change please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016)'
in the drive '/cdrom/' and press enter

Fetched 3150kB in 1m51s (28.3kB/s)
Selecting previously deselected package linux-libc-dev.
(Reading database ... 90091 files and directories currently installed.)
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.22-14.51_amd64.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.6.1-1ubuntu10_amd64.deb) ...
Selecting previously deselected package libstdc++6-4.1-dev.
Unpacking libstdc++6-4.1-dev (from .../libstdc++6-4.1-dev_4.1.2-16ubuntu2_amd64.deb) ...
Selecting previously deselected package g++-4.1.
Unpacking g++-4.1 (from .../g++-4.1_4.1.2-16ubuntu2_amd64.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4.1.2-9ubuntu2_amd64.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.3ubuntu1_amd64.deb) ...
Setting up linux-libc-dev (2.6.22-14.51) ...
Setting up libc6-dev (2.6.1-1ubuntu10) ...
Setting up libstdc++6-4.1-dev (4.1.2-16ubuntu2) ...
Setting up g++-4.1 (4.1.2-16ubuntu2) ...
Setting up g++ (44.1.2-9ubuntu2) ...

Setting up build-essential (11.3ubuntu1) ...
stephen@stephen-laptop~$ cd /home/stephen/rt*
stephen@stephen-laptop~/rt2570-cvs-2008020417$ cd Module
stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ make
make[1] Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtusb_main.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/mlme.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtusb_bulk.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/connect.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/sync.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtusb_init.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtmp_tkip.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/wpa.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtmp_wep.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtusb_info.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/assoc.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/auth.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/auth_rsp.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/md5.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtusb_io.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/sanity.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rtusb_data.o
CC [M] /home/stephen/rt2570-cvs-2008020417/Module/rt2x00debug.o
LD [M] /home/stephen/rt2570-cvs-2008020417/Module/rt2570.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/stephen/rt2570-cvs-2008020417/Module/rt2570.mod.o
LD [M] /home/stephen/rt2570-cvs-2008020417/Module/rt2570.ko
make[1] Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo make install
2.6 module install
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/stephen/rt2570-cvs-2008020417/Module modules_install
make[1] Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
INSTALL /home/stephen/rt2570-cvs-2008020417/Module/rt2570.ko
DEPMOD 2.6.22-14-generic
make[1] Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
/sbin/depmod -a
*** Update /etc/modprobe.d/ralink alias for rausb0
stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo gedit /etc/modprobe.d/blacklist
[sudo] password for stephen
stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo modprobe rt2570
[b3bs81oj9]stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo ifconfig rausb0 up
rausb0 ERROR while getting interface flags No such device[/b3bs81oj9]
stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo rutilt


Here is what I received after using the ifconfig and iwconfig commands.

stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo iwconfig
[sudo] password for stephen
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID""
ModeManaged Frequency2.412 GHz Access Point Not-Associated
Retry min limit7 RTS throff Fragment thr=2346 B
Encryption keyoff
Link Quality0 Signal level0 Noise level0
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0

stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo ifconfig
eth0 Link encapEthernet HWaddr 0040452BEE57
inet addr192.168.1.103 Bcast192.168.1.255 Mask255.255.255.0
inet6 addr fe8024045fffe2bee57/64 ScopeLink
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets4454 errors0 dropped0 overruns0 frame0
TX packets3787 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes5431413 (5.1 MB) TX bytes399984 (390.6 KB)
Interrupt22 Base address0xa000

lo Link encapLocal Loopback
inet addr127.0.0.1 Mask255.0.0.0
inet6 addr 1/128 ScopeHost
UP LOOPBACK RUNNING MTU16436 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen0
RX bytes0 (0.0 b) TX bytes0 (0.0 b)

wlan0 Link encapEthernet HWaddr 0013D3825FC3
UP BROADCAST MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes0 (0.0 b)

wmaster0 Link encapUNSPEC HWaddr 00-13-D3-82-5F-C3-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets0 errors0 dropped0 overruns0 frame0
TX packets0 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes0 (0.0 b) TX bytes0 (0.0 b)


stephen@stephen-laptop~/rt2570-cvs-2008020417/Module$ sudo rutilt

I am still having trouble getting this device to work. If it helps, I'm using the AMD64 version of Gutsy.

Please help, I do not want to have to install Windows and dual boot just so that I can use my wireless.

Your assistance is appreciated.

Starcrasher

06-02-2008 00:06:26

Hello saghaulor,

Have you think about blacklisting the driver shipped with Gutsy ?
I mean that the new rt2x00 driver seems to be loaded and used.
What makes me think about this is wmaster0 presence.

Look at the result of the command /sbin/lsmod | grep rt[/colorgbpk42rq] to be sure of that.

saghaulor

06-02-2008 03:01:52

Hello saghaulor,

Have you think about blacklisting the driver shipped with Gutsy ?
I mean that the new rt2x00 driver seems to be loaded and used.
What makes me think about this is wmaster0 presence.

Look at the result of the command /sbin/lsmod | grep rt[/color3mzeid92] to be sure of that.[/quote3mzeid92]

Here are my results.

stephen@stephen-laptop~$ /sbin/lsmod | grep rt
rt73usb 27136 0
rt2x00usb 13696 1 rt73usb
rt2x00lib 21760 2 rt73usb,rt2x00usb
rfkill 9616 1 rt2x00lib
input_polldev 6672 1 rt2x00lib
crc_itu_t 3456 1 rt2x00lib
rt2570 217920 0
parport_pc 41896 0
parport 44172 3 ppdev,parport_pc,lp
mac80211 196104 3 rt2x00usb,rt2x00lib,rc80211_simple
usbcore 161584 7 rt73usb,rt2x00usb,rt2570,usbhid,ehci_hcd,ohci_hcd
stephen@stephen-laptop~$


It seems that two separate drivers are loading, the rt73 and the rt2x00. But I am not certain about this as I am just beginning to understand how this all works.

Any ideas? And if I am to blacklist the Gutsy driver, what exactly am I blacklisting, namely, what is the Gutsy driver called?

saghaulor

06-02-2008 03:07:36

I read in the ubuntu forums that when using the "sudo lshw -C network" command, there should be a reference to the loaded driver for my card. However, as you will see below, there is not a reference to a driver for my card. I am then instructed to install the driver. I believe that I already have, however, I'm not sure why it is not showing up when I use the aforementioned command.

Here are my results.

stephen@stephen-laptop~$ sudo lshw -C network
*-network
description Wireless interface
physical id 1
logical name wlan0
serial 0013d3825fc3
capabilities ethernet physical wireless
configuration broadcast=yes multicast=yes wireless=IEEE 802.11g


Also, here is the link to the thread in Ubuntu forums where I read about the command and the mentioning of the driver reference.

http//ubuntuforums.org/showthread.php?t=684495

Starcrasher

07-02-2008 02:26:57

rt73usb, rt2x00usb, rt2x00lib are all part of the new rt2x00 driver (The one that is included in kernel 2.6.24 and so in Gutsy. It is sometimes called nextgen or in-kernel driver). That's what you have to blacklist.

rt73 (not present) is the rt2x00 legacy driver for rt2571 and rt2573 devices. The name of the interface for the rt73 legacy driver is wlan0.

rt2570 (which is loaded) is the rt2x00 legacy driver for rt2570 devices. The name of the interface for the rt2570 legacy driver is rausb0.
Note that the new driver for these devices is rt2500usb.

All the new drivers (including rt73usb and rt2500usb) has two interfaces wmaster0 and wlan0.

If you managed to have a connexion with this setup your dongle is probably a rt2571 or rt2573 based (since the rt73usb was used) and if you want to use a legacy driver, you should use the rt73 one.

Is this more clear for you now ?

saghaulor

07-02-2008 02:48:42

Your explanation is very helpful.

I eventually found a thread on Ubuntu forums that instructed on how to manually install drivers and configure my card. After following those steps, I have no problems connecting to my home network. Although I haven't tried to connect to alien networks as of yet to test whether it works on them as well.

Here is a link to the thread that helped me. (For other new linux users experiencing the same issues.)

http//ubuntuforums.org/showthread.php? ... light=rt73

Thanks for the help.