It is currently Tue May 21, 2013 3:41 am

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: (Solved)RT2070 usb wireless adapter problem
PostPosted: Fri Apr 29, 2011 3:19 pm 
Zenwalker
Zenwalker

Joined: Sat Apr 23, 2011 5:49 am
Posts: 8
Hi, sorry for disturbing all of you. I have problem with my TP-LINK TL WN321G. When i do lsusb it shows that my chipset is rt2070, when i plugged the usb wireless adapter, the driver that loaded is rt2870sta but it can't scan any network in my house.

In puppy linux forum i found this:
http://murga-linux.com/puppy/viewtopic. ... 2&start=45

It says that rt2070 driver has been merged with rt3572 driver, so i downloaded the rt3572 driver from this link:
http://www.ralinktech.com/license_us.ph ... M1RVVFOD1D

I've installed the driver with make and make install command and loaded them with modprobe rt3572sta and blacklist rt2870sta in blacklist.conf but it still can't scan any network in my house eventhough my laptop just 1 meter away from my router and i've restarted my laptop. I also have added rtusb_dev_id.c file with:
{USB_DEVICE(0x148F,0x2070)}, /* Ralink */
under #ifdef RT2870 before compiling the driver

but it still can't scan any network in my wicd. So if any of you has a successful configuration with this chipset please let me know how to enable it. I've been googling and found that this chipset has a serious problem in many linux distro.

A ubuntu user has successfully enabled it but he uses the driver for older kernel, my kernel is 2.6.37.4 and i can't compile his driver and get an error message when using make command.

Thank you :)


Last edited by cuen on Sat Apr 30, 2011 2:23 pm, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: RT2070 usb wireless adapter problem
PostPosted: Fri Apr 29, 2011 7:28 pm 
Global Moderator
Global Moderator
User avatar

Joined: Mon Apr 10, 2006 12:43 pm
Posts: 4727
Location: Ath (Belgium)
Did you follow this topic ? http://forums.fedoraforum.org/showthread.php?t=244215
Did you install the kernelsource to build the module ?



Bip


 Profile Send private message  
 
 Post subject: Re: RT2070 usb wireless adapter problem
PostPosted: Sat Apr 30, 2011 5:31 am 
Global Moderator
Global Moderator
User avatar

Joined: Sat Aug 05, 2006 9:38 am
Posts: 4561
this driver is present on the kernel source, but, it's no actived on zenwalk kernel .config

# CONFIG_RT2800PCI_RT30XX is not set

# CONFIG_RT2800USB_RT30XX is not set


 Profile Send private message  
 
 Post subject: Re: RT2070 usb wireless adapter problem
PostPosted: Sat Apr 30, 2011 5:52 am 
Zenwalker
Zenwalker

Joined: Sat Apr 23, 2011 5:49 am
Posts: 8
Thank you moderator bipbip and gmg for your concern. Last night I tried to do with this 2 links:
http://xlcwu.wordpress.com/2010/07/09/b ... ucid-lynx/
http://www.linuxforums.org/forum/wirele ... olved.html

And here I am, successfully configuring it, I use rt3070 latest driver not rt3572. I wanna share this with the other forum members hopefully it will help people out there who have rt2070 wireless chipset and can't figure it out how to make it working.

Step1:
I installed the kernel source package from search facility in http://packages.zenwalk.org/
after installed the kernel source, I open /etc/modprobe.d/blacklist.conf as root and add this following line:
blacklist rt2870sta
this will prevent rt2870sta for loading when I plug in the usb wireless adapter

Step2:
I downloaded the latest rt3070 driver from this:
http://www.ralinktech.com/license_us.ph ... 09Qw%3D%3D
and from the directory where i save this package i run the terminal and type:
tar xf 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO.tar.bz2

Step3:
I go to the directory 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO and go to ./common directory and search for rtusb_dev_id.c, add the following line:
{USB_DEVICE(0x148F,0x2070)}, /* Ralink 2070 */
under:
#ifdef RT3070

Step4:
Back again to directory 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO and go to directory ./os/linux edit config.mk file like this:
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Still in ./os/linux I also edit usb_main_dev.c, I added the following line:
MODULE_LICENSE("GPL");
under:
MODULE_DESCRIPTION("RT2870 Wireless Lan Linux Driver");
It located at upper portion of the file.

Step5:
back again to directory 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO and open the terminal from there:
cp RT2870STA.dat RT3070STA.dat
su root
make
make install
modprobe rt3070sta
<exit the terminal,plug in the usb wireless adapter and reboot>

Step6:
after reboot I open the terminal:
su root
iwconfig <search for my wireless interface and it is ra0>
ifconfig ra0 up
ifconfig <just to make sure that ra0 has been up>
<exit the terminal>

Final step:
Then i open wicd network manager, and edit the preferences.
At "General settings" tab I type ra0 in text box "Wireless interface"
And exit the preferences, voila It successfully scan my network, edit the network properties, giving the right passphrase and successfully connected to the router and i can browse the internet.

Hopefully it will work with others who have rt2070 wireless chipset. Have a nice day \D/


 Profile Send private message  
 
 Post subject: Re: RT2070 usb wireless adapter problem
PostPosted: Sat Apr 30, 2011 7:32 am 
Global Moderator
Global Moderator
User avatar

Joined: Mon Apr 10, 2006 12:43 pm
Posts: 4727
Location: Ath (Belgium)
Good and clean explanation.
You can maybe open a new topic here viewforum.php?f=9
and copy your tips :)

Bip


 Profile Send private message  
 
 Post subject: Re: (Solved)RT2070 usb wireless adapter problem
PostPosted: Fri May 06, 2011 9:25 am 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Wed Jul 29, 2009 7:17 pm
Posts: 319
Location: Netherlands
Thank you Cuen for your howto on the rt2070. I followed it to the letter, I hope, but I still had no connection. I still had to paste a rt3070.bin file into the firmware file to make it work. Before that, in my desperation I also followed Franco's advice to install an new kernel, but that didn't help. I am learning a lot though... l!!!
After all this I got the 'bad password' message from Wicd, but that is solved also in the ' bad password' topic.

Again, Cuen, thanks!

Blackbird


 Profile Send private message  
 
 Post subject: Re: (Solved)RT2070 usb wireless adapter problem
PostPosted: Sat May 07, 2011 4:40 am 
Zenwalker
Zenwalker

Joined: Sat Apr 23, 2011 5:49 am
Posts: 8
Thanks Blackbird, it's nice to hear that my configuration helps you. Anyway, I also have the same problem like you but if I retry to connect maybe 3 to 5 times eventually my usb wireless adapter successfully get the ip address.
Please let me know where to get the rt3070.bin and where should I put this file? Thank you Blackbird :)


 Profile Send private message  
 
 Post subject: Re: (Solved)RT2070 usb wireless adapter problem
PostPosted: Sat May 07, 2011 2:15 pm 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Wed Jul 29, 2009 7:17 pm
Posts: 319
Location: Netherlands
Hello Cuen,
I went looking for the rt3070.bin file because of a message from dmesg, searching the internet I found a lot of mentioning that is was missing from the firmware package. So I found it here: http://packages.debian.org/sid/all/firmware-ralink/download
It's a debian site but it was for all platforms. You download the file, extract it, extract the data.tar.gz, in there is a folder data/lib/firmware. In there is the rt3070.bin file. I copied it, as root, into /lib/firmware and after that and a reboot the light of the adapter started flashing. The only problem is today I'm back to the 'bad password' thing, so I'll try Bipbip's suggestion in the 'bad password' topic of using networkmanager.
Another thing, yesterday I tried Zenlive, and here it just works, just like that! And there was no sign of a rt3070.bin file in the /lib/firmware, so perhaps it is not needed after all. I am getting quite confused..... ::)
Next week I'll do a fresh install and start over, perhaps I've made a muddle of things.

Blackbird


 Profile Send private message  
 
 Post subject: Re: (Solved)RT2070 usb wireless adapter problem
PostPosted: Tue May 24, 2011 4:51 am 
Zenwalker
Zenwalker

Joined: Sat Apr 23, 2011 5:49 am
Posts: 8
Thanks Blackbird, I've extracted the packages and copied the rt3070bin to the location that you mention but still the led won't blinking. Anyway now i can connect to my wifi at the first attempt, i don't need to retry it for 3-5 times, maybe it's because i change my rt3070sta.dat configuration, so i assign my password directly through this file but also to wicd. Thanks for your support hopefully the next zenwalk version will be compatible with this chipset. Have a nice day :)


 Profile Send private message  
 
 Post subject: Re: (Solved)RT2070 usb wireless adapter problem
PostPosted: Tue May 24, 2011 6:12 am 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Wed Jul 29, 2009 7:17 pm
Posts: 319
Location: Netherlands
Hi ,
In the meantime I've installed Zenwalk 7 on my notebook and got the rt2070 working following your instructions and using my 3070bin file, only I had to blacklist the rt73usb and not the rt2870sta before it worked.
Although I am sometimes disappointed when things don't work out-of-the-box, I must say I am having much fun finding out how to get things going, it's a nice way to learn things. But of course, at some point you do want a result. In this case I waited with replacing Zen 6.4 with Zen 7 on the notebook until I new how to get the wireless working....
Well, I am glad it now works (flawlessly), it has a much better signal strength than the Realtek 8191 I had been using before. I installed that one first (which is an even greater challenge), used Wicd which accepted the password, and after that I could just switch the adapters and no more 'bad passwords' . On the 'test' computer I had to replace Wicd with Networkmanager to get rid of the 'bad password' thing. It seems once its working, its OK....

Again thanks Cuen for your nice 'howto',
Blackbird


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 
cron