Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old May 11th, 2009   #1
radixor
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 40
Ubuntu 9.04 Jaunty Jackalope
[RESOLVED] Wireless issues with WUSB54GC v3

[SEE BELOW FOR RESOLUTION TO GETTING THIS TO WORK]

Hi, I just upgraded my ubuntu from 7.04 -> 9.04 after a short hiatus from Ubuntu to SuSE10. I have purchased yesterday a LinkSys WUSB54GC wireless adapter and plugged it into my usb port. It did not work. However, lsusb showed that my linksys card was recognized.

LinkSys cards use the rtxxxxx chips, so I wanted to see what version of rt I should have. I checked the cd and found that there's an adapter called rt2870.inf, so I figured that I am rt2870. (Can someone here confirm this?) I decided to follow the steps here: http://ubuntuforums.org/showthread.php?t=960642

I used this .tar.gz file:
04/24/2009 2.1.1.0
RT2870USB(RT2870/RT2770) http://www.ralinktech.com.tw/data/dr...A_V2.1.1.0.tgz

I built the driver, did an insmod st2870sta.ko, then i put rt2870sta in /etc/modules

Somewhere along the steps in that tutorial, my light turned green! Which is a huge step towards connectivity..

When I do a iwconfig, I see my adapter, as well as when I do a ifconfig.
When I did a /etc/init.d/networking restart, I see that there is no dhcp server, as we're making DHCPREQUESTs, but I receive no DHCPOFFERS. I can not see my wireless network, nor can I see any of my neighbors.

I have pretty much lost a good 10+ hours on this, any ideas on what do?
Thanks!

Last edited by radixor; June 18th, 2009 at 02:13 PM.. Reason: Resolved issue
radixor is offline   Reply With Quote
Old May 12th, 2009   #2
radixor
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 40
Ubuntu 9.04 Jaunty Jackalope
Re: Wireless issues with WUSB54GC v3

Quote:
NEW LINK TO DOWNLOAD WUSB54GC v3 DRIVERS (1.4.0.0) http://bit.ly/4pPyzx


Please see above link for working file

Guys, here's a step-by-step process on how to resolve this issue on Ubuntu 9.04:

The drivers that work with WUSB54GC v3 ARE NOT THE 2.1.1.0 on the RALINK site.
They are the http://www.ralink.com.tw/data/driver....4.0.0.tar.bz2

BEFORE EXECUTING ANY OF THESE STEPS, PLEASE DO A
Code:
 sudo -i
Step 1.
Code:
 wget http://www.ralink.com.tw/data/drivers/2008_0925_RT2870_Linux_STA_v1.4.0.0.tar.bz2
Step 2.
Code:
 tar xjf 2008_0925_RT2870_Linux_STA_v1.4.0.0.tar.bz2
Step 3.
Code:
 cd 2008_0925_RT2870_Linux_STA_v1.4.0.0
Step 4.
replace the file located in include/rt2870.h with rt2870.h from the attached rt2870.h.tar.gz

Step 5.
Execute
Code:
 perl -p -i.old -e 's/(HAS*WPA*SUPPLICANT*=)n/{$1}y/g' os/linux/config.mk
Step 6.
Code:
 make && make install
Step 7.
Make sure that /lib/modules/`uname -r`/updates/ exists! If this directory does not exist, then create it.

After you've ensured that it does exist, then run:
Code:
 cp -p /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2870sta.ko /lib/modules/`uname -r`/updates/
Step 8.
Code:
 depmod -a
Step 9.
Code:
 gedit /etc/Wireless/RT2870STA/RT2870STA.dat
Change the following (obviously depends on your connection):
  • SSID=<YOUR-SSID>
    Channel=<YOUR-CHANNEL>
    AuthMode=WPA
    EncrypType=TKIP
    WPAPSK=<YOUR-PASS-KEY-HERE>
AuthMode, EncrypType can be any of the values you see below.
For WEP, you would have AuthMode=WEPAUTO and EncrypType=WEP
For WPA, you would have AuthMode=WPA and EncrypType=TKIP (** your values here may differ **)
Code:
@> AuthMode=value
        value
                OPEN        For open system 
                SHARED      For shared key system   
                WEPAUTO     Auto switch between OPEN and SHARED
                WPAPSK      For WPA pre-shared key  (Infra)
                WPA2PSK     For WPA2 pre-shared key (Infra)
                WPANONE     For WPA pre-shared key  (Adhoc)
                WPA         Use WPA-Supplicant
                WPA2        Use WPA-Supplicant

@> EncrypType=value
        value
                NONE        For AuthMode=OPEN                    
                WEP         For AuthMode=OPEN or AuthMode=SHARED 
                TKIP        For AuthMode=WPAPSK or WPA2PSK                    
                AES         For AuthMode=WPAPSK or WPA2PSK
Step 10.
Code:
 echo "alias ra0 rt2870sta" >> /etc/modules
Step 11.
Code:
 
echo "ifconfig ra0 inet up" >> /etc/init.d/rc.local
Step 12.
Reboot

Step 13.
If you're not connected to the internet by now, there is ONE more step to take but you have TWO CHOICES:

Step 13a.
Something that I learned that activated my network-manager was this:
Code:
sudo vi /etc/NetworkManager/nm-system-settings.conf
Change "managed=false" to "managed=true"
Code:
sudo killall nm-system-settings
This should pop up and you should see all your wireless networks!

If this works, SKIP STEP 13B.
If you want to use the command-line, use the below step.

Step 13b.
Using wpa_supplicant to connect!
Read this great tutorial/walk-through here:
http://ubuntuforums.org/showthread.php?t=263136


-------------------------------------------------------------

PLEASE NOTE THAT THE WIRELESS ADAPTER DOES NOT BLINK OR LIGHT UP GREEN BUT IT STILL WORKS. TO TEST THIS YOU CAN TYPE
Code:
iwlist ra0 scan
and it will show all the wireless networks nearby.


Please leave some feedback or your comments.

Thanks,
radixor.

P.S. I will write a small python script to automate this ordeal...
Attached Files
File Type: gz rt2870.h.tar.gz (8.5 KB, 787 views)

Last edited by radixor; October 20th, 2009 at 08:09 PM.. Reason: perl code fix..
radixor is offline   Reply With Quote
Old May 12th, 2009   #3
smacattack
Just Give Me the Beans!
 
Join Date: Oct 2007
Location: Canada
Beans: 77
Ubuntu Jaunty Jackalope (testing)
Re: Wireless issues with WUSB54GC v3

Sorry for the noob question, but how can I find my SSID, channel, and all that? I tried the rest of the instructions there to no avail so I'm hoping that's all I need to fix. Thanks so much for the help...
smacattack is offline   Reply With Quote
Old May 12th, 2009   #4
radixor
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 40
Ubuntu 9.04 Jaunty Jackalope
Re: Wireless issues with WUSB54GC v3

Quote:
Originally Posted by smacattack View Post
Sorry for the noob question, but how can I find my SSID, channel, and all that? I tried the rest of the instructions there to no avail so I'm hoping that's all I need to fix. Thanks so much for the help...
No problems! Your SSID, channels, etc are all configured on your wireless router.

However, I can only answer based on your answers of this question:

Is your router already setup and running?
If yes, then type in:
Code:
 iwlist <%DEVICE%> scan
where your <%DEVICE%> is your device port (usually ra0), e.g. (
Code:
 iwlist ra0 scan
)

If no, then your wireless will usually have defaults, which you will find easily again by typing in
Code:
 iwlist ra0 scan
radixor is offline   Reply With Quote
Old May 12th, 2009   #5
gordonjay
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 3
Re: Wireless issues with WUSB54GC v3

i googled this same problem 2 days ago, but didn't find anything that solved it. thanks!!!

did v3 of this device just come out or something? i am total MS-fed n00b
gordonjay is offline   Reply With Quote
Old May 12th, 2009   #6
radixor
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 40
Ubuntu 9.04 Jaunty Jackalope
Re: Wireless issues with WUSB54GC v3

Quote:
Originally Posted by gordonjay View Post
i googled this same problem 2 days ago, but didn't find anything that solved it. thanks!!!

did v3 of this device just come out or something? i am total MS-fed n00b
Hi, I have no idea if this came out recently, from what I can tell, the rt2870 2.1.1.0 drivers which were dated 04/14/2009 from ralink.com's website did NOT have the usb serial in the header files! Which means that it might've come out within the last few months.

I checked LinkSys, v3 is definitely the newest version. However, the 1.4.4.0 drivers WORK ABSOLUTELY PERFECTLY. I am hoping for a better driver to emerge soon from RaLink (one that makes the green light work). I might have to even read the source code to see what the problems would be and compile my own driver.

Will keep you guys posted.
radixor is offline   Reply With Quote
Old May 12th, 2009   #7
smacattack
Just Give Me the Beans!
 
Join Date: Oct 2007
Location: Canada
Beans: 77
Ubuntu Jaunty Jackalope (testing)
Re: Wireless issues with WUSB54GC v3

radixor: I'll check the router through another computer on the network. I haven't got anything set up on this computer so I can't scan anything from here. I'm hopeful this will work for me so thanks so much!

gordonjay: ya v3 just came out recently
smacattack is offline   Reply With Quote
Old May 12th, 2009   #8
gordonjay
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 3
Re: Wireless issues with WUSB54GC v3

so i made it to step 7: cp -p /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2870sta.ko /lib/modules/`name -r`/updates

but i got this error: -bash: name: command not found

past experiences with errors in setting up things in Linux persuade me to stay where i am at. i Googled "-bash: name: command not found"+Ubuntu+9.04 but only got 2 results, both of which were technical enough to make my head explode.
gordonjay is offline   Reply With Quote
Old May 12th, 2009   #9
radixor
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 40
Ubuntu 9.04 Jaunty Jackalope
Re: Wireless issues with WUSB54GC v3

Quote:
Originally Posted by gordonjay View Post
so i made it to step 7: cp -p /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2870sta.ko /lib/modules/`name -r`/updates

but i got this error: -bash: name: command not found

past experiences with errors in setting up things in Linux persuade me to stay where i am at. i Googled "-bash: name: command not found"+Ubuntu+9.04 but only got 2 results, both of which were technical enough to make my head explode.
Sorry! Looks like I had a typo!!

use this:

Code:
cp -p /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2870sta.ko /lib/modules/`uname -r`/updates
radixor is offline   Reply With Quote
Old May 12th, 2009   #10
gordonjay
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 3
Re: Wireless issues with WUSB54GC v3

you rule!
gordonjay is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:27 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry