Wireless Linksys wUSB56G v4. on Serialmonkey drivers - YES!

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

VitalBodies

22-05-2008 18:45:37

EDIT I got my usb wlan going. [/colorbesuezf9]
EDITUPDATE This adapter works "out of the box" easy using Ubuntu Ibex. I prefer the Edimax Hi-Gain adapter...[/colorbesuezf9]
Since I waited at 5 days and never did get help.
In the mean time...

I built this page explaining how to setup and use a USB Wireless Linksys wUSB56G v4. D
And show the problems one can run into using the instructions that are provided IF you are new to Linux and if you are using UbuntuStudio. ?

And Thank you SerialMonkey for providing us drivers![/colorbesuezf9]

[imgbesuezf9]http://www.linksys.com/servlet/Satellite?blobcol=urldata&blobheadername1=Content-Type&blobheadername2=Content-Disposition&blobheadervalue1=image%2Fjpeg&blobheadervalue2=inline%3B+filename%3Dwusb54g%252C0.jpg&blobkey=id&blobtable=MungoBlobs&blobwhere=1193773660326&ssbinary=true[/imgbesuezf9]

For our example we will be setting this up in Ubuntu 8.04 64-bit edition.

[bbesuezf9]The Basics[/bbesuezf9]
1) Question Should this adapter have just worked out of the box so to speak?
Answer I never did get an answer to this question and would still like to know.
2) Question Does this this device need the rt2750 (USB) Legacy driver?
Answer Apparently yes.
3) Question Is this is driver is included in the Ubuntu 8.04 Hardy Heron distribution or do we need to download from rt2x00.serialmonkey.com?
Answer serialmonkey.com

[bbesuezf9]TROUBLESHOOTING STEPS[/bbesuezf9]
Is the hardware seen by the OS and is the driver loaded? Using the terminal check with this command lshw -C network

The example below shows that wlan device is seen but you will notice that nothing is mentioned about a driver thus no driver is loaded.
[codebesuezf9]lshw -C network
*-network
description: Wireless interface
physical id: 4
logical name: wlan1
serial: 00:12:17:83:ff:47
capabilities: ethernet physical wireless
configuration: broadcast=yes multicast=yes wireless=IEEE 802.11g[/codebesuezf9]



Here is how I got the wusb56gv4 working

[bbesuezf9]SHORTENED INSTRUCTIONS[/bbesuezf9]
Download to desktop [urlbesuezf9]http://rt2x00.serialmonkey.com/rt2570-cvs-daily.tar.gz[/urlbesuezf9]
Extract the driver (right click on its icon on your desktop and select "Extract Here.")
sudo apt-get install build-essential
cd ~/Desktop/rt2570-cvs-[bbesuezf9]2008052414[/bbesuezf9]/Module [bbesuezf9](must = Folder Name)[/bbesuezf9]
make
sudo make install
sudo gedit /etc/modprobe.d/blacklist
#Added these entries to the blacklist to replace rt2500usb with rt2570usb
blacklist rt2500usb
blacklist RT2500USB

sudo modprobe rt2570
sudo ifconfig rausb0 up
REBOOTED then set networking to manual (used my routers setting SSID etc) rather than roaming and REBOOTED
sudo ifconfig rausb0 up
REBOOTED
Connected!

NOTES
lshw -C network
Gets this
*-network
description Wireless interface
physical id 1
logical name rausb0
serial 00121783ff47
capabilities ethernet physical wireless
configuration broadcast=yes ip=192.168.1.102 multicast=yes wireless=RT2500USB WLAN

Somehow I would have expected wireless=RT2570USB WLAN???

[bbesuezf9]CREDITS[/bbesuezf9]
[urlbesuezf9]http://ubuntuforums.org/showthread.php?t=797823[/urlbesuezf9]
Do not attempt what is written in that post until you get to at least the 3rd page.

[urlbesuezf9]http://ubuntuforums.org/showthread.php?t=739139[/urlbesuezf9] Post#8


[bbesuezf9]ADDITIONAL SUGGESTIONS[/bbesuezf9]
Often in order to get support the support people will ask certain basic questions. But if you are new how do you even answer these?

Tell them how you connect and what you know about your connection

[quotebesuezf9]I connect using WiFi and use automatic DHCP which is working as I can connect using second card or different computer.
Thus we know the ISP, the modem and the router are working fine. [/quotebesuezf9]

Sometimes they might need to know about your computer and much of this you can find online
[quotebesuezf9]COMPUTER Core 2 Quad Q6600 Dell Inspiron 530
Hardware Specs [urlbesuezf9]http://support.dell.com/support/edocs/systems/inspd530/EN/OM/appendix.htm#wp1123070[/urlbesuezf9]
Chipset ICH9 and Intel G33[/quotebesuezf9]

They will often ask what system you are running and you can find this in Ubuntu
SYSTEM > ADMINISTRATION > SYSTEM MONITOR
[quotebesuezf9]Gnome 2.22.1
Ubuntu Hardy 8.04 (I am running the 64-bit version)
Kernel Linux 2.6.24-16-rt[/quotebesuezf9]

For networking many people us Network Settings and you can find that here
The card shows up in the System > Administration > Network > Network Settings dialog box.
[quotebesuezf9]The card shows up in the System > Administration > Network > Network Settings dialog box.
I got the impression that means the driver is loaded, is that correct? I now feel that the driver is not loaded based on the [ibesuezf9]lshw -C network[/ibesuezf9] command info.
If I try to enable the card in the Network Setting dialog box I have to manually type in an SSID as none of the Wifi SSIDs show up the way they should and do on the other card that works. [/quotebesuezf9]

For the program RutilT you can find that using the Add/Remove feature of Ubuntu and do a search for RutilT.
[quotebesuezf9]If I use RutilT and SCAN under Site Survey the RutilT program never comes out of trying to scan. The program may be locked up. [/quotebesuezf9]


You might need to mention any additional hardware that might be conflicting
[quotebesuezf9]I have two wlan cards installed so I can get onto the net.
The other card is wlan0 Atheros based and is working so I can write this[/quotebesuezf9]
[codebesuezf9]ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:15:af:1a:ee:2d
inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:afff:fe1a:ee2d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61746 errors:0 dropped:0 overruns:0 frame:0
TX packets:51836 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76927966 (73.3 MB) TX bytes:6137208 (5.8 MB)
Interrupt:19 Memory:fdef0000-fdf00000[/codebesuezf9]

[quotebesuezf9]I did try to un-enable wlan0 when testing wlan1 and I also tried un-enabling the 3d party proprietary drivers for the Atheros including the HAL. [/quotebesuezf9]

Give the technical information they need about your network device by using the [ibesuezf9]ifconfig wlan1[/ibesuezf9] command in the terminal. Replace wlan1 with your device name
[quotebesuezf9]This is the wlan1 Linksys wUSB56G v4 I am trying to use [/quotebesuezf9]
[codebesuezf9]ifconfig wlan1
wlan1 Link encap:Ethernet HWaddr 00:12:17:83:ff:47
inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:168 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39916 (38.9 KB) TX bytes:5250 (5.1 KB)[/codebesuezf9]

Using the [ibesuezf9]dmesg[/ibesuezf9] command can also provide additional information
[codebesuezf9]dmesg
[10757.975809] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[10758.859066] wlan1: Initial auth_alg=0
[10758.859071] wlan1: authenticate with AP 00:13:10:94:be:7c
[10758.860699] wlan1: RX authentication from 00:13:10:94:be:7c (alg=0 transaction=2 status=0)
[10758.860702] wlan1: authenticated
[10758.860704] wlan1: associate with AP 00:13:10:94:be:7c
[10758.862814] wlan1: RX AssocResp from 00:13:10:94:be:7c (capab=0x401 status=0 aid=8)
[10758.862817] wlan1: associated
[10758.868472] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[10769.727936] wlan1: no IPv6 routers present
[10830.657012] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[12452.875615] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)[/codebesuezf9]

Using the [ibesuezf9]lspci[/ibesuezf9] command can also provide additional information
[codebesuezf9] lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82562V-2 10/100 Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc RV535 [Radeon X1650 Series] (rev 9e)
01:00.1 Display controller: ATI Technologies Inc RV535 [Radeon X1650 Series] (rev 9e)
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)[/codebesuezf9]

They might want to see what your network interfaces settings are so use this command [ibesuezf9]sudo gedit /etc/network/interfaces[/ibesuezf9]
[codebesuezf9]
sudo gedit /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback


iface wlan1 inet dhcp
wireless-essid ohnet52

auto wlan1

iface wlan0 inet dhcp
wireless-essid ohnet52

auto wlan0[/codebesuezf9]
[ibesuezf9]iwconfig[/ibesuezf9] provides information about your wireless connection
[codebesuezf9]iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan1 IEEE 802.11g ESSID:"ohnet52"
Mode:Managed Frequency:2.412 GHz Access Point: 00:13:10:94:BE:7C
Bit Rate=9 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Link Quality=28/100 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

wlan0 IEEE 802.11g ESSID:"ohnet52"
Mode:Managed Frequency:2.412 GHz Access Point: 00:13:10:94:BE:7C
Bit Rate=54 Mb/s
Power Management:off
Link Quality:43/100 Signal level:-68 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:4350 Invalid misc:18176 Missed beacon:0[/codebesuezf9]




[bbesuezf9]Side Notes [/bbesuezf9]
I saw the card here so I bought it [urlbesuezf9]https://www.fsf.org/resources/hw/net/wireless/cards.html[/urlbesuezf9]

[bbesuezf9]Reference Links [/bbesuezf9]
Ubuntu [urlbesuezf9]https://help.ubuntu.com/community/WifiDocs/Driver/RalinkRT2500?highlight=(rt2500)[/urlbesuezf9]
Its Broke [urlbesuezf9]http://rt2x00.serialmonkey.com/wiki/index.php?title=It%27s_Broke[/urlbesuezf9]
Manufacturer product page [urlbesuezf9]http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1115416827517&pagename=Linksys%2FCommon%2FVisitorWrapper[/urlbesuezf9]

[bbesuezf9]Helpful hint[/bbesuezf9] Your wiki navigation bar is not working correctly - like Downloads does not go to the Downloads page you have to SEARCH for the Downloads page to find it...

[bbesuezf9]WHAT DID NOT WORK[/bbesuezf9]
Download the driver from [urlbesuezf9]http://rt2x00.serialmonkey.com/wiki/index.php?title=Downloads[/urlbesuezf9]
I downloaded the rt2750 (USB) Legacy driver but I could not seem to get [ibesuezf9]make[/ibesuezf9] to work
[codebesuezf9]$ cd rt2570-cvs-2008052201/Module
vital@net:~/rt2570-cvs-2008052201/Module$ make
make: *** /lib/modules/2.6.24-16-rt/build: No such file or directory. Stop.
rt2570.ko failed to build!
make: *** [module] Error 1
vital@net:~/rt2570-cvs-2008052201/Module$ sudo make install
[sudo] password for vital:
make[1]: Entering directory `/home/vital/rt2570-cvs-2008052201/Module'
make: Entering an unknown directory
make: *** /lib/modules/2.6.24-16-rt/build: No such file or directory. Stop.
make: Leaving an unknown directory
rt2570.ko failed to build!
make[1]: *** [module] Error 1
make[1]: Leaving directory `/home/vital/rt2570-cvs-2008052201/Module'
make: *** [modules_install] Error 2
vital@net:~/rt2570-cvs-2008052201/Module$ modprobe rt2570 ifname=wlan%d
FATAL: Module rt2570 not found.[/codebesuezf9]

I used these instructions from the README FILE
[quotebesuezf9]Installation instructions for the rt2570 Module

======================================================================
Build Instructions
====================
For 2.4 or 2.6 series kernel

a. $tar -xvzf rt2570-x.x.x.tar.gz
go to "./rt2570-x.x.x/Module" directory.

b. $make # compile driver source code

c. $make install # (as root) installs kernel module driver
[/quotebesuezf9]

Notice I had to change the x.x.x to what I actually downloaded.
[codebesuezf9]$ tar -xvzf rt2570-cvs-daily.tar.gz[/codebesuezf9]



[bbesuezf9]According to the SerialMonkey FAQ [/bbesuezf9]
Located here [urlbesuezf9]http://rt2x00.serialmonkey.com/wiki/index.php?title=FAQ[/urlbesuezf9]
[bbesuezf9]Q. Why do I get lots of errors when trying to compile ?[/bbesuezf9]
A. Probably because you haven't got your kernel sources configured correctly. Ensure that you have the sources in the expected locations (/usr/src/linux-2.x.x) and that you have a symlink from /lib/modules/2.x.x/build to that source folder)
NOTE To learn more about the ln command type this command at in the terminal
[codebesuezf9]ln --help[/codebesuezf9]

Would this be the correct command
[codebesuezf9]cd /lib/modules/2.x.x/build
sudo ln -s . /usr/src/linux-2.x.x[/codebesuezf9]

I used PLACES > COMPUTER > FILE SYSTEM to figure out what should replace .x.x by navigating to each directory (/lib/modules/) ( /usr/src/) mentioned.

On Ubuntu 8.04 this would be
[codebesuezf9]cd /lib/modules/2.6.24-16-rt/build
sudo ln -s . /usr/src/linux-headers-2.6.24-16[/codebesuezf9]

The command gave me back this message
[codebesuezf9]ln: creating symbolic link `/usr/src/linux-headers-2.6.24-16/.': File exists[/codebesuezf9]

Try this set of commands
[codebesuezf9]$cd rt2570-cvs-2008052201/Module
$make[/codebesuezf9]
I got this
[codebesuezf9]make: *** /lib/modules/2.6.24-16-rt/build: No such file or directory. Stop.
rt2570.ko failed to build!
make: *** [module] Error 1[/codebesuezf9]
So what does this tell us?

This says we used the directories.
So instead of this
[codebesuezf9]cd /lib/modules/2.6.24-16-rt/build
sudo ln -s . /usr/src/linux-headers-2.6.24-16[/codebesuezf9]
Let? try this
[codebesuezf9]cd /lib/modules/2.6.24-16-generic/build
sudo ln -s . /usr/src/linux-headers-2.6.24-16-generic[/codebesuezf9]

So giving this another try
[codebesuezf9]$ cd rt2570-cvs-2008052201/Module
~/rt2570-cvs-2008052201/Module$ make
make: *** /lib/modules/2.6.24-16-rt/build: No such file or directory. Stop.
rt2570.ko failed to build!
make: *** [module] Error 1[/codebesuezf9]

By now you are most likely frustrated.
So what are we trying to accomplish?
The problem, it seems, is I was using UbuntuStudio rather than Ubuntu.
This prevented a number of things from installing or running correctly. I switched to Ubuntu 64-bit and all when well...

I do NOT know why the default rt2500usb driver does not work right.
I could connect but the connection while always connected would be fast then painfully slow. Mostly slow... I would like to use the default drive if I can. [/colorbesuezf9]
The problem is that the UbuntuStudio Kernel is different so the normal suggested steps do not work...