Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 .
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
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 .
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
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 .
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!
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
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’
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 .
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.