Linux.com

Home Linux Community Forums Hardware Drivers Mounting USB wireless adapter and hard drive

Mounting USB wireless adapter and hard drive

Link to this post 21 May 10

OK getting closer..


jim@debian:~$ su -
Password:
debian:~# locate rt73
/etc/Wireless/RT73STA/rt73.bin
/etc/Wireless/RT73STA/rt73sta.dat
/etc/udev/rules.d/50-ralink-rt73.rules
/usr/share/doc/ralink-rt73
/usr/share/doc/ralink-rt73-source
/usr/share/modass/overrides/ralink-rt73-source
/usr/src/ralink-rt73.tar.gz
/var/lib/dpkg/info/ralink-rt73-source.list
/var/lib/dpkg/info/ralink-rt73-source.md5sums
/var/lib/dpkg/info/ralink-rt73.conffiles
/var/lib/dpkg/info/ralink-rt73.list
/var/lib/dpkg/info/ralink-rt73.md5sums
debian:~#

It seems to be able to find the networks in iwlist wlan0 scan, but when I unplug the cable no connection, does not show up in the NETWORK MANAGER


debian:~# locate rt73usb.ko
debian:~# modprobe rt73usb
FATAL: Could not open '/lib/modules/2.6.26-2-686/kernel/drivers/net/wireless/rt2x00/rt73usb.ko': No such file or directory

debian:~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=12 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

debian:~# ifconfig wlan0 up
debian:~# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:24:01:72:92:29
ESSID:"Hey"
Mode:Master
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=50/100 Signal level=-56 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=00000000c7f9c180
Cell 02 - Address: 00:1B:11:A3:B8:D4
ESSID:"GA_CASA"
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=46/100 Signal level=-80 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=000000397d3af179
Cell 03 - Address: 00:15:D0:40:CC:55
ESSID:"Domingo"
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=46/100 Signal level=-82 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=000004403a295043

debian:~#
debian:/lib/modules/2.6.26-2-686/kernel/drivers/net/wireless/rt2x00# ls
rt2400pci.ko rt2500usb.ko rt2x00pci.ko rt61pci.ko
rt2500pci.ko rt2x00lib.ko rt2x00usb.ko

At one time I did have a rt73usb.ko in the :/lib/modules/2.6.26-2-686/kernel/drivers/net/wireless/rt2x00 directory but no more..

I have tried everything and cannot get any install or package to put the rt73usb.ko into the kernal directory....

Link to this post 21 May 10

The driver rt73usb was present on my system... But anyway, it's not important anymore. Now that iwlist scan is working, it means that your Linux machine is autoloading some working kernel module, and your wireless adapter is now working! In other words, just ignore everything I said about /etc/modules, modprobe and rt73usb, and lets move on to configuring your adapter :D

Try giving yourself the permissions to configure network interfaces:

su -
usermod -G netdev jim
Then reboot, and try starting network manager again :)

Link to this post 22 May 10

Well, I am screwed here... I tried to clean this up as it was now sort of working and now I have nothing at all and cannot for the life of me get it back. I have no clue what I had loaded that made this sort of work.
USB sees it but it is red, what ever that means.. I know for sure it means it is not working.



debian:~# iwlist
Usage: iwlist [interface] scanning [essid NNN] [last]
[interface] frequency
[interface] channel
[interface] bitrate
[interface] rate
[interface] encryption
[interface] keys
[interface] power
[interface] txpower
[interface] retry
[interface] ap
[interface] accesspoints
[interface] peers
[interface] event
[interface] auth
[interface] wpakeys
[interface] genie
[interface] modulation
debian:~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

debian:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:a5:c3:c4:fa
inet addr:192.168.0.190 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::202:a5ff:fec3:c4fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1517 errors:0 dropped:0 overruns:0 frame:0
TX packets:1079 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:479521 (468.2 KiB) TX bytes:187326 (182.9 KiB)

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:319 errors:0 dropped:0 overruns:0 frame:0
TX packets:319 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:151541 (147.9 KiB) TX bytes:151541 (147.9 KiB)

debian:~#

Now I am getting frustrated I really do not know what I did to make this stop working.....

Link to this post 22 May 10

debian:~# lsusb
Bus 003 Device 006: ID 13b1:0020 Linksys WUSB54GC 802.11g Adapter [ralink rt73]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 093a:2510 Pixart Imaging, Inc. Hama Optical Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
debian:~#

Appears I have lost my firmware


debian:/etc/network# dmesg |grep -i firmware
[ 1.059057] pci 0000:02:08.0: Firmware left e100 interrupts enabled; disabling
[ 21.980824] IBM TrackPoint firmware: 0x0b, buttons: 2/3

Link to this post 23 May 10

According to lsusb, the kernel knows there is something there - but ifconfig doesn't show wlan0 any more, meaning that the device is not recognized as a network device. For some reason, the system is no longer loading the driver necessary for the adapter to work.

Before you got the wireless working, was p54usb the only driver that you loaded manually, or did you try to follow some guides to use e.g. the rt2x00 drivers? If the latter, can you provide links to those guides? And when you were cleaning up, do you remember if you uninstalled any packages? Or perhaps modified/removed any files?

Can you also double-check that rt73usb is still missing:

find /lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt2x00/ -iname *.ko
According to packages.debian.org, the latest package for the Linux kernel in the Debian Stable repositories should also provide the kernel module rt73usb.

Link to this post 23 May 10

Jabir,
OK, thanks so much for hanging in there with me.
I finally had to go back to step one, I reinstalled DEBIAN Lenny 5.0 with the USB wireless adapter plugged in. I am actually sending this through the wireless connection. I really have no idea how this is working.
But when I was done with the install it still did not work, although the rt73usb.ko was back.
I had to ndiswrapper the rt73.inf file to get the rt73.bin file installed into the /lib/firmware folder.
I then rebooted and it could see the adapter, I then followed you direction


su -
usermod -G netdev jim

Again rebooted and the adapter started blinking and working.

However the wireless-network manager still does not see it even though it is working.
[file name=Screenshot_Wireless_Networks.png size=22789]http://www.linux.com/media/kunena/attachments/legacy/files/Screenshot_Wireless_Networks.png[/file]


debian:~# dmesg |grep -i firmware
[ 0.961409] pci 0000:02:08.0: Firmware left e100 interrupts enabled; disabling
[ 21.032063] firmware: requesting rt73.bin
[ 21.253850] IBM TrackPoint firmware: 0x0b, buttons: 2/3

What can I post here to help others since this is working, any other folder contents?
Not ever sure I can get this going again if it stops tomorrow.. LOL
Again thanks
Jim

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board