View previous topic :: View next topic |
Author |
Message |
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 4:50 pm Post subject: Troubleshooting usb wifi - ralink 3572 chipset - |
|
|
Troubleshooting usb wifi - ralink 3572 chipset -
It works well in Porteus. Here are the related modules Porteus uses.
Code: | # lsmod | grep rt
rt2800usb 13873 0
rt2x00usb 6701 1 rt2800usb
rt2800lib 40543 1 rt2800usb
rt2x00lib 27500 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 168115 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 127472 2 mac80211,rt2x00lib
crc_ccitt 1236 1 rt2800lib
led_class 2120 1 rt2x00lib
agpgart 21265 3 drm,intel_agp,intel_gtt
parport_pc 24738 0
parport 25141 2 ppdev,parport_pc |
I added them:
Quote: | File: /etc/conf.d/modules
modules="rt2800usb rt2x00usb rt2800lib rt2x00lib mac80211 cfg80211 crc_ccitt led_class" |
And for the kernel:
Quote: | <M> Ralink driver support --->
--- Ralink driver support │ │
│ │ < > Ralink rt2400 (PCI/PCMCIA) support │ │
│ │ < > Ralink rt2500 (PCI/PCMCIA) support │ │
│ │ < > Ralink rt2501/rt61 (PCI/PCMCIA) support │ │
│ │ < > Ralink rt27xx/rt28xx/rt30xx (PCI/PCIe/PCMCIA) support │ │
│ │ < > Ralink rt2500 (USB) support │ │
│ │ < > Ralink rt2501/rt73 (USB) support │ │
│ │ <M> Ralink rt27xx/rt28xx/rt30xx (USB) support │ │
│ │ [ ] rt2800usb - Include support for rt33xx devices │ │
│ │ [*] rt2800usb - Include support for rt35xx devices (EXPERIMEN│ │
│ │ [ ] rt2800usb - Include support for rt53xx devices (EXPERIMEN│ │
│ │ [*] rt2800usb - Include support for unknown (USB) devices │ │
│ │ [ ] Ralink debug output
|
Quote: | --- Networking support
--- Wireless │ │
│ │ <M> cfg80211 - wireless configuration API │ │
│ │ [ ] nl80211 testmode command │ │
│ │ [ ] enable developer warnings │ │
│ │ [ ] cfg80211 regulatory debugging │ │
│ │ [ ] enable powersave by default │ │
│ │ [ ] cfg80211 DebugFS entries │ │
│ │ [ ] cfg80211 wireless extensions compatibility │ │
│ │ < > Common routines for IEEE802.11 drivers │ │
│ │ <M> Generic IEEE 802.11 Networking Stack (mac80211) │ │
│ │ Default rate control algorithm (Minstrel) ---> │ │
│ │ [ ] Enable mac80211 mesh networking (pre-802.11s) support │ │
│ │ [*] Enable LED triggers │ │
│ │ [ ] Export mac80211 internals in DebugFS │ │
│ │ [ ] Trace all mac80211 debug messages │ │
Library routines --->│ │ [ ] Select mac80211 debugging features ---
|
Quote: | Library routines --->
{M} CRC-CCITT functions │ │
│ │ -*- CRC16 functions │ │
│ │ < > CRC calculation for the T10 Data Integrity Field │ │
│ │ < > CRC ITU-T V.41 functions │ │
│ │ -*- CRC32/CRC32c functions │ │
│ │ [ ] CRC32 perform self test on init │ │
│ │ CRC32 implementation (Slice by 8 bytes) ---> │ │
│ │ < > CRC7 functions │ │
│ │ < > CRC32c (Castagnoli, et al) Cyclic Redundancy-Check │ │
│ │ < > CRC8 function │ │
│ │ -*- XZ decompression support │ │
│ │ < > XZ decompressor tester │ │
│ │ -*- Averaging functions │ │
│ │ < > CORDIC algorithm │ │
│ │ [ ] JEDEC DDR data |
ifconfig shows wlan0 but iwlist says the interface doesn't support scanning |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54119 Location: 56N 3W
|
Posted: Sat Mar 23, 2013 5:01 pm Post subject: |
|
|
koopdi,
What do you have in /lib/firmware ?
If its empty, you need to Code: | emerge linux-firmware |
dmesg may also help - as the ralink driver loads it will request firmware.
dmesg normally says what file name it needs and if it was found or not. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 5:11 pm Post subject: |
|
|
I have emerged linux-firmware.
I will reboot into gentoo and check dmesg...
Quote: | lib/firmware$ ls
3com/ iwlwifi-5000-1.ucode
GPL-3 iwlwifi-5000-2.ucode
LICENCE.Marvell iwlwifi-5000-5.ucode
LICENCE.OLPC iwlwifi-5150-2.ucode
LICENCE.agere iwlwifi-6000-4.ucode
LICENCE.atheros_firmware iwlwifi-6000g2a-5.ucode
LICENCE.broadcom_bcm43xx iwlwifi-6000g2a-6.ucode
LICENCE.chelsio_firmware iwlwifi-6000g2b-5.ucode
LICENCE.ene_firmware iwlwifi-6000g2b-6.ucode
LICENCE.i2400m iwlwifi-6050-4.ucode
LICENCE.iwlwifi_firmware iwlwifi-6050-5.ucode
LICENCE.mwl8335 kaweth/
LICENCE.myri10ge_firmware keyspan/
LICENCE.phanfw keyspan_pda/
LICENCE.qla2xxx korg/
LICENCE.ralink-firmware.txt lbtf_usb.bin
LICENCE.rtlwifi_firmware.txt lgs8g75.fw
LICENCE.tda7706-firmware.txt libertas/
LICENCE.ti-connectivity matrox/
LICENCE.ueagle-atm4-firmware mrvl/
LICENCE.via_vt6656 mts_cdma.fw
LICENCE.xc5000 mts_edge.fw
LICENSE.dib0700 mts_gsm.fw
LICENSE.radeon mts_mt9234mu.fw
Makefile mts_mt9234zba.fw
README mwl8k/
RTL8192E/ myri10ge_eth_z8e.dat
TDA7706_OM_v2.5.1_boot.txt myri10ge_ethp_z8e.dat
TDA7706_OM_v3.0.2_boot.txt myri10ge_rss_eth_z8e.dat
WHENCE myri10ge_rss_ethp_z8e.dat
acenic/ myricom/
adaptec/ ositech/
advansys/ phanfw.bin
agere_ap_fw.bin ql2100_fw.bin
agere_sta_fw.bin ql2200_fw.bin
ar3k/ ql2300_fw.bin
ar7010.fw ql2322_fw.bin
ar7010_1_1.fw ql2400_fw.bin
ar9170-1.fw ql2500_fw.bin
ar9170-2.fw qlogic/
ar9271.fw r128/
ath3k-1.fw radeon/
ath6k/ rt2561.bin
atmsar11.fw rt2561s.bin
av7110/ rt2661.bin
bnx2/ rt2860.bin
bnx2x/ rt2870.bin
bnx2x-e1-4.8.53.0.fw rt3070.bin@
bnx2x-e1-5.2.13.0.fw rt3071.bin
bnx2x-e1-5.2.7.0.fw rt3090.bin@
bnx2x-e1h-4.8.53.0.fw rt3290.bin
bnx2x-e1h-5.2.13.0.fw rt73.bin
bnx2x-e1h-5.2.7.0.fw rtl_nic/
brcm/ rtlwifi/
cis/ s2250.fw
configure s2250_loader.fw
cpia2/ sb16/
cxgb3/ slicoss/
cxgb4/ sun/
dabusb/ sxg/
dsp56k/ tehuti/
dvb-fe-xc5000-1.6.114.fw ti-connectivity/
dvb-usb-dib0700-1.20.fw ti_3410.fw
dvb-usb-terratec-h5-drxk.fw ti_5052.fw
e100/ tigon/
edgeport/ tlg2300_firmware.bin
emi26/ tr_smctr.bin
emi62/ ttusb-budget/
ene-ub6250/ ueagle-atm/
ess/ usbdux/
f2255usb.bin usbdux_firmware.bin
htc_7010.fw usbduxfast_firmware.bin
htc_9271.fw usbduxsigma_firmware.bin
i2400m-fw-usb-1.4.sbcf v4l-cx231xx-avcore-01.fw
i2400m-fw-usb-1.5.sbcf v4l-cx23418-apu.fw
i6050-fw-usb-1.5.sbcf v4l-cx23418-cpu.fw
intelliport2.bin v4l-cx23418-dig.fw
isci/ v4l-cx23885-avcore-01.fw
iwlwifi-100-5.ucode v4l-cx23885-enc.fw
iwlwifi-1000-3.ucode v4l-cx25840.fw
iwlwifi-1000-5.ucode vicam/
iwlwifi-105-6.ucode vntwusb.fw
iwlwifi-135-6.ucode vxge/
iwlwifi-2000-6.ucode whiteheat.fw
iwlwifi-2030-6.ucode whiteheat_loader.fw
iwlwifi-3945-2.ucode yam/
iwlwifi-4965-2.ucode yamaha/ |
|
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 5:42 pm Post subject: |
|
|
aaand the dmesg...
http://pastebin.com/UhrgHPCr
Quote: | [ 2.666286] usb 2-1.8: default language 0x0409
[ 2.672657] usb 2-1.8: udev 5, busnum 2, minor = 132
[ 2.672659] usb 2-1.8: New USB device found, idVendor=148f, idProduct=3572
[ 2.672660] usb 2-1.8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.672661] usb 2-1.8: Product: 802.11 n WLAN
[ 2.672662] usb 2-1.8: Manufacturer: Ralink
[ 2.672663] usb 2-1.8: SerialNumber: 1.0
[ 2.672790] usb 2-1.8: usb_probe_device
[ 2.672793] usb 2-1.8: configuration #1 chosen from 1 choice
[ 2.672906] usb 2-1.8: adding 2-1.8:1.0 (config #1, interface 0) |
Quote: |
[ 14.369803] rt2800usb 2-1.8:1.0: usb_probe_interface
[ 14.369808] rt2800usb 2-1.8:1.0: usb_probe_interface - got id |
Quote: |
[ 14.554744] Registered led device: rt2800usb-phy0::radio
[ 14.554750] Registered led device: rt2800usb-phy0::assoc
[ 14.554756] Registered led device: rt2800usb-phy0::quality
[ 14.554764] usbcore: registered new interface driver rt2800usb |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54119 Location: 56N 3W
|
Posted: Sat Mar 23, 2013 5:58 pm Post subject: |
|
|
koopdi,
Your kernel and the modules you are providing for it have mismatching version magic. They means they may not work correctly if at all.
Code: | [ 3.829754] nfs: version magic '3.7.10-gentoo SMP mod_unload modversions ' should be '3.7.10-gentoo SMP mod_unload ' | says the module was unloaded.
The fix is straightforward.
Code: | cd /usr/src/linux
make clean |
now rebuild and reinstall your kernel in the normal way, then reboot into it.
Check the version magic issues have gone from dmesg
Check your wifi again.
There is no sign of any firmware being requested or being loaded but your kernel is broken just now, so all bets are off .... _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 6:32 pm Post subject: |
|
|
Code: | cd /usr/src/linux
make clean
make && make modules_install
cp arch/x86/boot/bzImage /boot/bzImage.efi
|
~reboot with new kernel~
dmesg:
http://pastebin.com/Gfp2GDA2
Still mismatched, it seems |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54119 Location: 56N 3W
|
Posted: Sat Mar 23, 2013 6:41 pm Post subject: |
|
|
koopdi,
Your running kernel is
Code: | [ 0.000000] Linux version 3.7.10-gentoo (root@spacerig) (gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2) ) #4 SMP Fri Mar 22 16:09:17 PDT 2013 |
Note the #4 SMP Fri Mar 22 16:09:17 PDT 2013. Thats yesterday. Its about noon on Saturday where you are and that date/time is the build time of the running kernel.
Did you need a before the cp command?
It looks like you are not using the kernel you just made. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 7:22 pm Post subject: |
|
|
I think my date was set wrong. I reset the date and took it from the top, just to be sure.
Code: | cd /usr/src/linux
make clean
make && make modules_install
mount /dev/sda1 /boot
cp arch/x86/boot/bzImage /boot/bzImage.efi |
~reboot with new kernel~
dmesg:
http://pastebin.com/EyLk4hew
This is a fresh install. I don't understand how version magic mismatch happened. I have only installed one set of sources. I did try building with both genkernel, pappy's seeds, and just menuconfig.
My last build attempt was simply configured with menuconfig. The initramfs was built using genkernel. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 7:57 pm Post subject: |
|
|
Tried removing the initrd=/initramfs param from the startup script. That got rid of the magic errors and the system starts way faster now. Still can't scan wlan0 though.
http://pastebin.com/t70Lp4n7
Quote: |
2.411561] usb 2-1.8: udev 5, busnum 2, minor = 132
[ 2.411566] usb 2-1.8: New USB device found, idVendor=148f, idProduct=3572
[ 2.411569] usb 2-1.8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.411571] usb 2-1.8: Product: 802.11 n WLAN
[ 2.411574] usb 2-1.8: Manufacturer: Ralink
[ 2.411576] usb 2-1.8: SerialNumber: 1.0
[ 2.411680] usb 2-1.8: usb_probe_device
[ 2.411683] usb 2-1.8: configuration #1 chosen from 1 choice
[ 2.411806] usb 2-1.8: adding 2-1.8:1.0 (config #1, interface 0)
[ 2.413088] rt2800usb 2-1.8:1.0: usb_probe_interface
[ 2.413095] rt2800usb 2-1.8:1.0: usb_probe_interface - got id
[ 2.424676] hub 2-1:1.0: port 8 not reset yet, waiting 10ms
[ 2.486641] usb 2-1.8: reset high-speed USB device number 5 using ehci_hcd
[ 2.499632] hub 2-1:1.0: port 8 not reset yet, waiting 10ms
[ 2.597865] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 2.597961] Registered led device: rt2800usb-phy0::radio
[ 2.597967] Registered led device: rt2800usb-phy0::assoc
[ 2.597972] Registered led device: rt2800usb-phy0::quality |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54119 Location: 56N 3W
|
Posted: Sat Mar 23, 2013 8:14 pm Post subject: |
|
|
koopdi,
Ah, you have kernel modules in your initrd that have version magic that does not match the kernel.
If you an initrd that contains kernel modules, you need to rebuild the initrd every time you rebuild the kernel, unless you are very very careful.
The initrd is kernel specific too.
Now that the version magic errors are dealt with, we can be sure that your kernel is sound.
Try Then try scanning.
If it fails, there may be something useful at the end of dmesg. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 8:35 pm Post subject: |
|
|
Still the same.
Of course, the card works well in linux!
I am posting from porteus using it now.
There is hope. ^_^
http://pastebin.com/VuR00isV |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54119 Location: 56N 3W
|
Posted: Sat Mar 23, 2013 8:39 pm Post subject: |
|
|
koopdi,
Look at dmesg in porteus,
What does it say about wlan0 and firmware - post it if you wish.
Comparing something that works with something that doesn't is a good way to debug things. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 8:54 pm Post subject: |
|
|
dmesg:
http://pastebin.com/454eSxVn
Code: | guest@porteus:~$ dmesg | grep rt2
[ 11.209290] Registered led device: rt2800usb-phy0::radio
[ 11.209297] Registered led device: rt2800usb-phy0::assoc
[ 11.209304] Registered led device: rt2800usb-phy0::quality
[ 11.209315] usbcore: registered new interface driver rt2800usb |
I don't know if it makes sense to compare these as a diff but here goes.
diff dmesg.txt (porteus) /.../dmesg.txt (gentoo):
http://pastebin.com/aF7bZQ7a |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sat Mar 23, 2013 8:58 pm Post subject: |
|
|
/etc/conf.d/net (gentoo)
Quote: | modules="wpa_supplicant"
wpa_supplicant_wlan0="rt2800usb"
config_wlan0="dhcp" |
|
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sun Mar 24, 2013 12:47 am Post subject: |
|
|
Okay, I figured it out...I think.
< Linux version 3.7.8-porteus
> Linux version 3.7.10-gentoo
Is it worth trying 3.7.8 instead of 3.7.10? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54119 Location: 56N 3W
|
Posted: Sun Mar 24, 2013 6:38 pm Post subject: |
|
|
koopdi,
Do you have a /etc/init.d/net.wlan0 in Gentoo?
It should be a symlink to /etc/inid.d/net.lo, just like net.eth0 is.
There is no firmware loaded for your wlan0 in either dmesg, which is very rare for USB devices but it does make life easier. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sun Mar 24, 2013 11:52 pm Post subject: |
|
|
Compiled latest gentoo-sources-3.8.4,
linked .../net.lo to net.wlan0,
running
.../net.wlan0 start
gives some more errors.
Quote: |
...
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCSIWRANGE]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCSIWAP]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument
...
* WARNING: net.wlan0 has started, but is inactive |
I typed that by hand so it may not be exact. Is there a way to capture that console output to a file? Using #.../net.wlan0 start > file.txt captures the non-error messages.
Quote: |
#iwconfig wlan0
wlan0 no wireless extensions. |
Edit: Here's the dmesg;
http://pastebin.com/qH1VCk47
The card works fine in knoppix too. What gives? #hair-pull |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Mar 25, 2013 1:02 am Post subject: |
|
|
koopdi wrote: | Code: | ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCSIWRANGE]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCSIWAP]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument |
|
koopdi ... I imagine this is due to having the following in /etc/conf.d/net
koopdi wrote: | Code: | wpa_supplicant_wlan0="rt2800usb" |
|
With this you are providing wpa_supplicant with an 'Invalid argument' as there is no such option/parameter. I imagine this card is supported by MAC80211 so provide wpa_supplicant with the 'netlink' driver:
/etc/conf.d/net
Code: | wpa_supplicant_wlan0="-Dnl80211" |
koopdi wrote: | Code: | # iwconfig wlan0
wlan0 no wireless extensions. |
|
This is a sign that CONFIG_CFG80211_WEXT is not enabled in the kernel.
Code: | # awk '/(WEXT|(CFG|NL)80211)/' .config |
HTH & best ... khay |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Mon Mar 25, 2013 1:29 am Post subject: |
|
|
Aha! I remember that option. CONFIG_CFG80211_WEXT I looked at the help and it said something like "Enable this option if you need old userspace for wireless extensions with cfg80211-based drivers."
Apparently I /do/ need old userspace extensions. It threw me off.
It works almost now.
wpa_supplicant works with wext or -Dwext but it isn't connecting to me network.
It says "skip - non-WPA network not allowed." |
|
Back to top |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Mon Mar 25, 2013 1:37 am Post subject: |
|
|
So I matched the encryption method. It works.
Now I can proceed with my install.
THANK YOU BOTH!
<3 |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Mar 25, 2013 2:57 pm Post subject: |
|
|
koopdi wrote: | Apparently I /do/ need old userspace extensions. |
koopdi ... probably you don't, but for tools that use the depreciated WEXT, like those provided by net-wireless/wireless-tool (iwconfig, iwlist, etc), then you need the emulation for them to work, net-wireless/iw uses MAC80211, but you'd have to get used to different syntax (iw is similar in syntax to iproute2)
So, the above 'iwconfig' would be:
Code: | # iw dev wlan0 link |
or the equivelant of 'iwlist wlan0 scan'
Code: | # iw dev wlan0 scan |
best ... khay |
|
Back to top |
|
|
|