LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-09-2014, 01:18 PM   #1
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Rep: Reputation: Disabled
Post Wifi RA3070 not loading


Hello everyone , i have currently some issues with one of my wireless usb cards .
The chipset of the usb card is ra3070 , and i am using a debian distribution called Kali .

this is what i got so far on the kernel messages when i plug the device :

Quote:
# dmesg -k
[ 335.806160] usb 5-6: USB disconnect, device number 10
[ 335.809969] ieee80211 phy5: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x3080 with error -19
[ 335.809980] ieee80211 phy5: rt2800usb_write_firmware: Error - Failed to write Firmware to device
[ 336.608018] ieee80211 phy5: rt2800_load_firmware: Error - PBF system register not ready
[ 351.784036] usb 5-6: new high-speed USB device number 11 using ehci-pci
[ 351.931742] usb 5-6: New USB device found, idVendor=148f, idProduct=3070
[ 351.931748] usb 5-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 351.931752] usb 5-6: Product: 802.11 n WLAN
[ 351.931756] usb 5-6: Manufacturer: Ralink
[ 351.931760] usb 5-6: SerialNumber: 1.0
[ 352.048033] usb 5-6: reset high-speed USB device number 11 using ehci-pci
[ 352.189002] ieee80211 phy6: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected
[ 352.243255] ieee80211 phy6: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 352.243679] ieee80211 phy6: Selected rate control algorithm 'minstrel_ht'
[ 352.270259] ieee80211 phy6: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 352.270298] rt2800usb 5-6:1.0: firmware: direct-loading firmware rt2870.bin
[ 352.270302] ieee80211 phy6: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.22
And on lsusb i got :
Quote:
Bus 005 Device 019: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
It looks to be that by distribution can not write the firmware on the device .

Quote:
# lsmod | grep rt28
rt2800usb 21813 0
rt2x00usb 17426 1 rt2800usb
rt2800lib 72679 1 rt2800usb
rt2x00lib 41387 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 427800 3 rt2x00lib,rt2x00usb,rt2800lib
crc_ccitt 12331 1 rt2800lib
usbcore 142158 6 uhci_hcd,rt2x00usb,rt2800usb,ehci_hcd,ehci_pci,usbhid
anyone here have an idea how to solve this issue ?
_I have installed the latest backports drivers at :
http://drvbp1.linux-foundation.org/~...tml/backports/
but the problem still stays .

Maybe before installing i have to do some modifications ?

Anyone here could give me an help on this subject ?
Thank you for your time .
 
Old 08-10-2014, 01:00 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,142
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
First place I'd go with your usb chip is


https://wiki.debian.org/rt2800usb

Quote:
Installation

Debian 7 "Wheezy"

Add a "non-free" component to /etc/apt/sources.list, for example:

# Debian 7 "Wheezy"
deb http://http.debian.net/debian/ wheezy main contrib non-free

Update the list of available packages and install the firmware-ralink package:

apt-get update && apt-get install firmware-ralink

Connect the device to your system.

The rt2800usb kernel module is automatically loaded for supported devices. Configure your wireless interface as appropriate.
Which should solve your

Quote:
It looks to be that by distribution can not write the firmware on the device .
Firmware page for Jessie if running Testing.

https://packages.debian.org/jessie/firmware-ralink

Wheezy

https://packages.debian.org/wheezy/firmware-ralink

If running Wheezy. Easiest way is to use the quote I gave to install the firmware using the sources.list edit in my quote.

Then use

Code:
ifconfig -a
to find your wireless interface.

Last edited by rokytnji; 08-10-2014 at 01:06 PM.
 
Old 08-10-2014, 03:59 PM   #3
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
thanks for your reply , but is not working either .
The most funny thing is that i have my laptop with also kali installed and it works perfectly there .
Is there anyway for me to look at some configuration on my laptop and compare with this desktop computer to try to find where is the problem ?

if you need more logs to help me identify the issue then let me know the commands and i will write them on the terminal and i will post here the results .

Edited post :
i forgot to post the logs .
It looks that firmware is up to the device but there is an error with the identify of the vendor code .

Quote:
dmesg -k
[ 2127.672055] usb 1-3: new high-speed USB device number 11 using ehci-pci
[ 2127.819823] usb 1-3: New USB device found, idVendor=148f, idProduct=3070
[ 2127.819830] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2127.819835] usb 1-3: Product: 802.11 n WLAN
[ 2127.819839] usb 1-3: Manufacturer: Ralink
[ 2127.819842] usb 1-3: SerialNumber: 1.0
[ 2127.936048] usb 1-3: reset high-speed USB device number 11 using ehci-pci
[ 2128.077082] ieee80211 phy5: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected
[ 2128.131457] ieee80211 phy5: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 2128.131929] ieee80211 phy5: Selected rate control algorithm 'minstrel_ht'
[ 2195.675107] ieee80211 phy5: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 2195.675190] rt2800usb 1-3:1.0: firmware: direct-loading firmware rt2870.bin
[ 2195.675199] ieee80211 phy5: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[ 2245.728215] ieee80211 phy5: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x6080 with error -110
Quote:
~# lsusb

Bus 001 Device 012: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

Last edited by pedropt; 08-10-2014 at 04:20 PM.
 
Old 08-10-2014, 10:01 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,142
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
Quote:
Is there anyway for me to look at some configuration on my laptop and compare with this desktop computer to try to find where is the problem ?
Might look in

Code:
cat /etc/resolv.conf
see if there is any difference.
 
Old 08-11-2014, 04:40 AM   #5
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
that command will show me the my network config , and the problem here is that vendor code does not match with last firmware code in debian .

One thing i notice is that my lan does not jam anymore when i connect the usb device , the reason of that is that i am replying this message with the device connected .

anyway , this next results from "cat /etc/resolv.conf" are perfectly normal because i use a static route hardware configurated ip before i get to my hardware firewall .
and this shows on both linux machines .

Quote:
# cat /etc/resolv.conf
domain 1.1.1.1
nameserver 1.1.1.1
 
Old 08-11-2014, 01:27 PM   #6
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,142
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
Quote:
the reason of that is that i am replying this message with the device connected
So it is working now?
 
Old 08-11-2014, 02:04 PM   #7
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
no , it is not working .
before i installed the ra-firmware , if i had the usb card connected the computer , it will stuck my network and i could not access the internet .
Yesterday when i installed the ra-firmware , the device did not work also but it did not stuck the network when i had it connected to the pc .

I am trying to solve this with making a clean install of backports without any patches .
I will post here the results .
Thanks
 
Old 08-11-2014, 02:29 PM   #8
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
well , i know how this will work .
I have o reinstall kali again .
I don't have more patience to be on this issue .
I believe that one big problem of linux is that anyone can build some script or software that fix 30% of the things or conflicts , but in other way it will mess with the other 70% of what is installed .
 
Old 08-11-2014, 02:45 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by rokytnji View Post
Easiest way is to use the quote I gave to install the firmware using the sources.list edit in my quote.
Warning: Do NOT do that!
While Kali is derived from Debian it is not binary compatible with Debian. Adding Debian repositories to Kali will destroy your installation!
 
Old 08-11-2014, 02:56 PM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
That firmware is already in the kernel.

http://cateee.net/lkddb/web-lkddb/RT2800USB.html
 
Old 08-11-2014, 05:49 PM   #11
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
I have re-installed kali again .
I installed the kernel 3.12 cd and wifi card starts to working but , ethernet was jammed !!!!
so i decided to update kali repositories and make a dist-upgrade to 3.14 .
Now , wireless card does not work , and every time i connect it to usb port it jams my lan and i can not get to internet until i unplug it from computer !!!!
So , the problem could not be the drivers or firmware , but it could be the communication device to usb card .
i looked dmesg log and i found a few errors , but none on the wifi card !!!
all errors were from apci communication device .
These are the errors i collected from dmesg witch i will start to search on the net for solutions , and i will send dmesg log to kali programmers so they can fix the issues on the next distribution update .

ACPI Errors along the way
Quote:
0.079164] acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[ 0.079246] acpi PNP0A08:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI]
[ 0.079346] acpi PNP0A08:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
0000:00:1f.0: Force enabled HPET at 0xfed00000
[ 0.081094] pci 0000:00:1f.0: address space collision: [io 0x0800-0x087f] conflicts with ACPI CPU throttle [??? 0x00000810-0x00000815 flags 0x80000000]
[ 0.081099] pci 0000:00:1f.0: quirk: [io 0x0480-0x04bf] claimed by ICH6 GPIO
[ 0.081103] pci 0000:00:1f.0: ICH7 LPC Generic IO decode 1 PIO at 0280 (mask 00ff)
ehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.488647] intel_idle: does not run on family 6 model 23
[ 6.383361] ACPI: Power Button [PWRF]
[ 7.139698] intel_rng: FWH not detected
[ 7.166299] i801_smbus 0000:00:1f.3: SMBus using PCI Interrupt
[ 7.283288] ACPI Warning: SystemIO range 0x00000828-0x0000082f conflicts with OpRegion 0x00000800-0x0000084f (\PMRG) (20131218/utaddress-258)
[ 7.283299] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 7.283303] ACPI Warning: SystemIO range 0x00000480-0x000004af conflicts with OpRegion 0x00000480-0x000004af (\GPRG) (20131218/utaddress-258)
[ 7.283306] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 7.283334] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 7.314325] leds_ss4200: no LED devices found
About the wireless card everything is fine on load but it does not work :
Quote:
7.909788] cfg80211: Calling CRDA to update world regulatory domain
[ 8.144026] usb 4-3: reset high-speed USB device number 2 using ehci-pci
[ 8.284983] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected
[ 8.339240] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 8.374918] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 8.375263] usbcore: registered new interface driver rt2800usb
[ 21.082267] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 21.203977] rt2800usb 4-3:1.0: firmware: direct-loading firmware rt2870.bin
[ 21.203989] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
Each time i understand less about linux lol .
now i have the vendor code issue after rebooting the computer :
Quote:
[ 103.833255] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 103.850525] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 103.850899] usbcore: registered new interface driver rt2800usb
[ 103.909392] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 103.937840] rt2800usb 5-6:1.0: firmware: direct-loading firmware rt2870.bin
[ 103.937850] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[ 117.372079] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x3080 with error -71
[ 127.792439] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x7014 with error -71
[ 138.298019] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x701c with error -71
I will install the original drivers from ralink at :
http://www.mediatek.com/en/downloads/

Last edited by pedropt; 08-11-2014 at 06:42 PM. Reason: state changed
 
Old 08-12-2014, 07:06 AM   #12
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
damn , even to install the original drivers is a mess .
I have managed to get the compiling almost complete , but i got this error witch a little or almost no solution was found on the internet

Quote:
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:1141:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:1142:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
make[4]: *** [/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.o] Error 1
make[3]: *** [_module_/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.14-kali1-686-pae’
make: *** [LINUX] Error 2
anyone knows here how to fix this error on compiling ?
Quote:
error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
 
Old 08-14-2014, 03:07 PM   #13
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
Finally i got the solution for this , and i get it to work .
At least the usb ra3070 is working now perfectly .

Intructions :
download driver http://www.mediatek.com/ to your Downloads folder
2. tar -xvf /root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2
3. cd DPO_RT5572_LinuxSTA_2.6.1.3_20121022
Edit the config.mk

leafpad /root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/config.mk
change to y these lines :
-HAS_WPA_SUPPLICANT=n
-HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

Save the file

4. download patch http://gridlox.net/diff/rt5592sta_fix_64bit_3.8.patch
5. sudo apt-get install patch
5. patch -p1 <rt5592sta_fix_64bit_3.8.patch (if asks directory press enter , "abort this patch" press Y and do enter )
7. make
8. sudo make install
9. connect your usb device to the computer

Note : it was made a patch to some files , it was just not made to this one : pci_main_dev.c
because this file does not exists on this package .
On the make process , some minor errors will appear , but it will compile at the end .
-Make sure you have your wifi card unplugged while you are doing the process .

Believe it or not , it worked that way for me , and i will do some tests .
If anything wrong happens , or stop to work , then i will post here the data .

Last edited by pedropt; 08-14-2014 at 04:00 PM.
 
Old 08-14-2014, 03:43 PM   #14
pedropt
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 345

Original Poster
Rep: Reputation: Disabled
News again .
As soon as i rebooted the computer the device stop working .
However , i had to put some drivers on the blacklist of kali to make it work again .
i blacklisted these drivers on /etc/modprobe.d/kali-blacklist.conf:
blacklist rt2x00lib
blacklist rt2x00usb
blacklist rt2800lib
blacklist rt2800pci
blacklist rt2x00pci


and i left alone these drivers for loading :
rt2860sta
rt3090sta

I rebooted again after the changes , and device is working perfectly .

Notes : connect only the device to computer after the loading of the OS .

Last edited by pedropt; 08-14-2014 at 04:17 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wifi rt8192e not loading module on startup?? aircftech Linux - Networking 1 02-18-2011 04:53 PM
Cannot stop ndiswrapper from loading ath5k with WPN311 Wifi PCI ljones0 Slackware 6 01-24-2009 07:39 AM
What is the fastest loading OS which supports WIFI? could be very simple OS master4g Linux - Laptop and Netbook 5 10-25-2007 04:14 PM
problems loading driver for USB wifi stick arielsegal Linux - Wireless Networking 0 08-01-2007 09:55 AM
Problem loading cisco WIFI utility? frankie_fix Linux - Software 1 02-15-2005 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration