Ralink RT3070 WiFi USB dongle problem.


25 posts
by donaldp » Sun Jan 27, 2013 1:51 pm
Hi I've got a USB WiFi dongle that is not working with my clean Raspbian wheezy install.

lsusb returns:
Code: Select all
Bus 001 Device 010: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

lsmod returns:
Code: Select all
Module                  Size  Used by
snd_bcm2835            12808  1
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  7 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
evdev                   8682  4
rt2800usb              13009  0
rt2800lib              47242  1 rt2800usb
crc_ccitt               1465  1 rt2800lib
rt2x00usb              11075  1 rt2800usb
rt2x00lib              41057  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              236178  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              171957  2 mac80211,rt2x00lib

However, dmesg returns the following errrors:
Code: Select all
[  285.143065] usb 1-1.3.1: new high-speed USB device number 10 using dwc_otg
[  285.261142] usb 1-1.3.1: New USB device found, idVendor=148f, idProduct=3070
[  285.261175] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  285.261195] usb 1-1.3.1: Product: 802.11 n WLAN
[  285.261208] usb 1-1.3.1: Manufacturer: Ralink
[  285.261220] usb 1-1.3.1: SerialNumber: 1.0
[  285.353095] usb 1-1.3.1: reset high-speed USB device number 10 using dwc_otg
[  285.494113] phy1 -> rt2800_init_eeprom: Error - Invalid RF chipset 0x3070 detected.
[  285.494143] phy1 -> rt2x00lib_probe_dev: Error - Failed to allocate device.

Does anyone have any idea how or if this can be fixed.
I've got the dongle working OK in my Windows XP PC.

Thanks.
Posts: 6
Joined: Sun Jan 27, 2013 1:14 pm
by Spid » Sun Jan 27, 2013 1:55 pm
Have you fully updated Raspbian since undertaking a fresh install with the 16-12-2012 .IMG ?
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm
by donaldp » Sun Jan 27, 2013 2:05 pm
sudo apt-get update?

Yes, I've done this.
Posts: 6
Joined: Sun Jan 27, 2013 1:14 pm
by Spid » Sun Jan 27, 2013 3:35 pm
At command prompt press enter after each entry and follow prompts

sudo su

apt-get update

apt-get dist-upgrade

sync

reboot
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm
by donaldp » Sun Jan 27, 2013 4:38 pm
Hi Spid
Thanks for the suggestion.

I've now done this, but the errors remain the same.
Posts: 6
Joined: Sun Jan 27, 2013 1:14 pm
by TeddyB » Sun Jan 27, 2013 6:53 pm
Hi Donald,

I've got the same problem as you I think. The dongle came with a set of drivers on a CD including a Linux driver, but I got as far as copying this to my RPi, unpackaging it with tar -xf [the filename], but then there are some instructions in the ReadMe file that do not make sense to me. Anyone who can help with a walkthrough of getting this set up would be hugely thanked!
Posts: 1
Joined: Sun Jan 27, 2013 6:33 pm
by Spid » Sun Jan 27, 2013 8:24 pm
TeddyB wrote:Hi Donald,

I've got the same problem as you I think. The dongle came with a set of drivers on a CD including a Linux driver, but I got as far as copying this to my RPi, unpackaging it with tar -xf [the filename], but then there are some instructions in the ReadMe file that do not make sense to me. Anyone who can help with a walkthrough of getting this set up would be hugely thanked!


They are likely Linux X86 Firmware on CD, you need ARMv6 Firmware, by the way did you undertake a system update ?
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm
by Codge » Sun Jan 27, 2013 8:58 pm
You might want to check this thread...

http://ubuntuforums.org/showthread.php? ... =148f:3070

Regards,
Steve.
Posts: 3
Joined: Wed Feb 01, 2012 10:52 am
by donaldp » Mon Jan 28, 2013 12:15 pm
You might want to check this thread...

http://ubuntuforums.org/showthread.php? ... =148f:3070

Regards,
Steve.


Hi Steve
I was already aware of that thread, but that appears to be a different issue. I've not compiled a new module from the Ralink supplied source so I do not have the rt2800sta module to blackllist. Blacklisting the rt2800usb module simple causes no drivers to be attempted to be loaded.

The rt2800usb module reports that it supports the id 148f:3070, but throws an error when loading.
So
modinfo rt2800usb | grep 3070
does give:
alias: usb:v148Fp3070d*dc*dsc*dp*ic*isc*ip*

I suspect that the error message "Invalid RF chipset 0x3070 detected" means that the dongle is returning some information that the driver does not like or understand.

Something similar to this rather old thread.
http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?f=5&t=5781

I think that the easiest way forward is to buy a new wifi dongle that is known to work with the raspberry pi and wheezy. I just though someone might have a simple solution.

Thanks anyway.

I will post here if I do find a solution.

Just adding that this was a cheap ebay dongle...
http://www.ebay.co.uk/itm/230907284032?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
Posts: 6
Joined: Sun Jan 27, 2013 1:14 pm
by donaldp » Wed Jan 30, 2013 12:36 pm
Just to say that I've got the WiFi dongle working on a Linux box running Scientific Linux 6.3.
I compiled the code on the CD that come with the dongle and after some fiddling got it to work. There is still a slight issue in that it does not always automatically pick up it's IP address from the DHCP server... however....
I've come to the conclusion that it isn't worth my time and effort trying to compile the driver on the pi. I've ordered a new "out of the box" compatible WiFi adapter.
Posts: 6
Joined: Sun Jan 27, 2013 1:14 pm
by paulvanbavel » Wed Jan 30, 2013 1:01 pm
Hi,
I have the same issue, also with an ebay bought wlan usb adaptor.
I opened up the adaptor and the chip inside is marked as RT5370.

Somehow it identifies itself as 0x3070 (Invalid RF chipset 0x3070 detected).
Maybe someone with more insight in the driver can do something with this info.

I have a picture of the inside of the device, but don't know how to post the image here.


Paul van Bavel
Posts: 1
Joined: Wed Jan 30, 2013 12:47 pm
by texy » Wed Jan 30, 2013 1:08 pm
Hi Paul,
welcome to the forum. You can attach a photo with your post, but it needs to be 'zipped' in order for it to be accepted. The usual method would be to use an online photo storage method (I use photobucket) and link to that - it will then be embedded into your post.

Regards,
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2410
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by Codge » Wed Jan 30, 2013 9:20 pm
Hi again chaps.

Just to let you know that I bought one of these in August, which works out of the box with Wheezy:-

http://www.amazon.co.uk/WIRELESS-ADAPTE ... 248&sr=8-1

but it sticks out too far and I was worried about snapping it or the USB port on my Pi, so I bought one of those rinky dinky Edimax ones. It only protrudes about 7-8mm from my case.

http://www.amazon.co.uk/Edimax-EW-7811U ... 532&sr=1-1

The case is from Cyntech and fits like a glove.

http://shop.cyntech.co.uk/products/berryblack

Good luck all.
Steve ;o)

Edit to add: P.S. Anybody want a tobacco tin with some Pi friendly holes in it? Free!
Posts: 3
Joined: Wed Feb 01, 2012 10:52 am
by Spid » Wed Jan 30, 2013 11:29 pm
Codge wrote:Hi again chaps.

Just to let you know that I bought one of these in August, which works out of the box with Wheezy:-

http://www.amazon.co.uk/WIRELESS-ADAPTE ... 248&sr=8-1

but it sticks out too far and I was worried about snapping it or the USB port on my Pi, so I bought one of those rinky dinky Edimax ones. It only protrudes about 7-8mm from my case.

http://www.amazon.co.uk/Edimax-EW-7811U ... 532&sr=1-1

The case is from Cyntech and fits like a glove.

http://shop.cyntech.co.uk/products/berryblack

Good luck all.
Steve ;o)

Edit to add: P.S. Anybody want a tobacco tin with some Pi friendly holes in it? Free!


Maybe http://www.ebay.co.uk/itm/New-Rasberry- ... 0826199518
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm
by donaldp » Sun Feb 03, 2013 7:56 pm
Just to let you know that my new USB Wifi dongle is working out the box using the vanilla wheezy image (2012-12-16). Posting this with it.
http://www.ebay.co.uk/itm/USB-Wireless-b-g-n-WiFi-Dongle-Adapter-150-MPs-for-Raspberry-Pi-/121054297329
More than 3 times the price from ebay than the original but it does work with the Pi.
Posts: 6
Joined: Sun Jan 27, 2013 1:14 pm
by leomanic » Fri Mar 15, 2013 5:48 pm
Just wanted to let you know that I have the exact same problem with a dongle bought on dealextreme.

It's the Leguang LG-N18, $6.80 on dx.com,
http://dx.com/p/leguang-lg-n18-150mbps- ... -5v-121069

Alas, it was too good (or cheap) to be true.

It does appear to be a R-Pi-only problem though. I wish I knew something more about these drivers, seems easy to add the response of this dongle to the list of responses for the 3070 chipset...

cheers,
Lennard

ps. I believe this dongle sucks quite a bit of juice, because the rpi reboots the moment I plug it in. With a powered usb-hub the rpi stays fine..
Posts: 6
Joined: Sun Oct 28, 2012 5:04 pm
by geekamole » Sun May 12, 2013 9:13 pm
I had the same problem with my dongle (however not on a Raspberry Pi), but I resolved and documented it:

http://www.geekamole.com/2013/rt2800usb ... too-linux/

This does require compiling your own kernel, though (or at least the rt2800lib module). Thanks for the tip that it is actually a 5370 chip.
Posts: 1
Joined: Sun May 12, 2013 9:04 pm
by dpenezic » Tue Jul 23, 2013 10:17 am
Hi,
I successfully implement patch like was describe on http://www.geekamole.com/2013/rt2800usb-fix-for-ralinkmediatek-3070-gentoo-linux/.

In attachment is kernel driver files with README where to install it for your convinced. Hope that will help some users. Also i hope RPi team will consider to add that patch in ne version of kernel drivers and support cheap Chine USB wireless adapters.

Best regards,
Dubravko Penezic

!!! IMPORTANT INFORMATION !!! Do not use those files with new 2013-09-25-wheezy-raspbian image, developer include patch in source code (Thanks).
Attachments
rt3070-rt5370-patch-kernel-driver.tar.gz
modified kernel drivers modules for rt3070-rt5370
(37.46 KiB) Downloaded 3608 times
Last edited by dpenezic on Wed Oct 09, 2013 3:06 pm, edited 1 time in total.
Posts: 81
Joined: Sat Dec 22, 2012 2:36 pm
by davidhbrown » Thu Jul 25, 2013 5:12 am
dpenezic wrote:Hi, I successfully implement patch...

Thank you so much for sharing your work! It am now able to use the one I bought!

(8"MicroUSB Wireless Adapter w/ Antenna / #2126 LK-2126 -- purchased on eBay for about $12; seller had claimed it was plug-and-play under Raspberry... and now he's correct (for my one modified card))
Posts: 3
Joined: Thu Jun 21, 2012 10:58 am
by lucasmun09 » Sat Jul 27, 2013 11:23 pm
davidhbrown wrote:
dpenezic wrote:Hi, I successfully implement patch...

Thank you so much for sharing your work! It am now able to use the one I bought!

(8"MicroUSB Wireless Adapter w/ Antenna / #2126 LK-2126 -- purchased on eBay for about $12; seller had claimed it was plug-and-play under Raspberry... and now he's correct (for my one modified card))



Thank you so much! I am going to write a tutorial on how to install this on Raspberry PI!!!!! Is it ok for you? If it's not, I wont.... I will be using your files that you posted above :D
Posts: 41
Joined: Thu Apr 04, 2013 11:26 pm
by dpenezic » Sun Jul 28, 2013 7:47 am
Thank you so much! I am going to write a tutorial on how to install this on Raspberry PI!!!!! Is it ok for you? If it's not, I wont.... I will be using your files that you posted above :D


Yes, you may use file for tutorial. Tutorial will help other people too.
However please note that files will for sure work only with particular kernel version. It may work also with other version of kernel, but driver need to be compiled with right version of kernel source (i have few of low cost USB Wirelest stick, so I will for sure update driver in future if wouldnt be included in standard kernel tree).

Dubravko
Posts: 81
Joined: Sat Dec 22, 2012 2:36 pm
by lucasmun09 » Mon Jul 29, 2013 3:44 pm
dpenezic wrote:
Thank you so much! I am going to write a tutorial on how to install this on Raspberry PI!!!!! Is it ok for you? If it's not, I wont.... I will be using your files that you posted above :D


Yes, you may use file for tutorial. Tutorial will help other people too.
However please note that files will for sure work only with particular kernel version. It may work also with other version of kernel, but driver need to be compiled with right version of kernel source (i have few of low cost USB Wirelest stick, so I will for sure update driver in future if wouldnt be included in standard kernel tree).

Dubravko

I have created the tutorial here! Thanks for letting me use your files :D
viewtopic.php?f=28&t=51234
Posts: 41
Joined: Thu Apr 04, 2013 11:26 pm
by vinnitu » Thu Oct 03, 2013 8:37 pm
Today I follow to instuction in this post but nothing ((((

I upgrade my weeze, replaced .ko files from archive and copied fimware bins. + reboot
But I see such error in logs

$dmesg | grep rt2
rt2800lib: disagrees about version of symbol module_layout

Maybe it is can be recompiled?

Help please.
Posts: 2
Joined: Thu Oct 03, 2013 8:32 pm
by vinnitu » Fri Oct 04, 2013 6:55 am
rpi-update - solve my problem
Posts: 2
Joined: Thu Oct 03, 2013 8:32 pm
by krakpot » Fri Nov 15, 2013 8:04 pm
I had the same issue with the same dongle bought off of eBay. Just like the previous poster, vinnitu, mentioned it started working by doing:
Code: Select all
1. sudo rpi-update
2. sudo reboot


After the reboot:
Code: Select all
pi@raspberrypi ~ $ dmesg|grep rt2
[    7.436038] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[    7.628447] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 3070 detected
[    8.081285] usbcore: registered new interface driver rt2800usb
[   22.278240] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   22.285845] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29

pi@raspberrypi ~ $ iwconfig
wlan0     IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.10.18+ #596 PREEMPT Fri Nov 15 13:57:24 GMT 2013 armv6l GNU/Linux


Thanks for your help!
Posts: 1
Joined: Fri Nov 15, 2013 7:58 pm