rt2570 module crashes on Ubunu 8.04 ppc

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4952

thetravellor

17-08-2008 03:50:31

The standard rt2500usb drivers as loaded by the kernel for my Asus WL-167g (on all recent PPC Linuxes). The interface loads, can sort of associate, but cannot get an ip address, even with WEP turned off (let alone WPA)

In response I am trying to install the serialmonkey rt2570 module. This is the CVS daily version of the serialmonkey module code for the rt2570, it compiles cleanly and installs, but crashes on modprobe.

I am working on an iMac G5 (ppc 64). Have given up trying to get the Airport to work (fwcutter driver dies, ndiswrapper incompatible with PPC platform). Now I am trying to get a ralink based ASUS WL-167g to work

This is the device

[codessbdxqrl]Bus 003 Device 002: ID 0b05:1706 ASUSTek Computer, Inc. WL-167G 802.11g Adapter [ralink]
[/codessbdxqrl]

Linux version Ubuntu 8.04

[codessbdxqrl]Linux blackbox 2.6.24-19-powerpc64-smp #1 SMP Fri Jul 11 23:39:57 UTC 2008 ppc64 GNU/Linux
[/codessbdxqrl]

output of dmesg

[codessbdxqrl]

[ 27.528562] rt2570: init
[ 27.528734] rt2570: idVendor = 0xb05, idProduct = 0x1706
[ 31.836459] Unable to handle kernel paging request for unknown fault
[ 31.836759] Faulting instruction address: 0xc000000000420a20
[ 31.837004] Oops: Kernel access of bad area, sig: 7 [#1]
[ 31.837233] SMP NR_CPUS=32 NUMA PowerMac
[ 31.837418] Modules linked in: arc4 snd_aoa_i2sbus snd_aoa_soundbus snd_pcm snd_page_alloc snd_timer snd soundcore joydev ecb blkcipher rt2570 b43 mac80211 cfg80211 input_polldev rfkill led_class af_packet uninorth_agp agpgart evdev ext3 jbd mbcache sg sd_mod usbhid hid generic ata_generic ehci_hcd sata_svw ohci1394 ide_cd cdrom ohci_hcd ieee1394 libata scsi_mod usbcore sungem sungem_phy ssb windfarm_smu_sensors windfarm_smu_controls windfarm_pm81 windfarm_smu_sat windfarm_pid windfarm_max6690_sensor windfarm_lm75_sensor windfarm_cpufreq_clamp windfarm_core fuse
[ 31.839994] NIP: c000000000420a20 LR: d000000000397128 CTR: c0000000004209e0
[ 31.840297] REGS: c00000002a2bb1f0 TRAP: 0600 Not tainted (2.6.24-19-powerpc64-smp)
[ 31.840635] MSR: 9000000000009032 <EE,ME,IR,DR> CR: 24024442 XER: 00000000
[ 31.840995] DAR: c00000002d190511, DSISR: 0000000000200000
[ 31.841230] TASK = c00000002a2b2890[2977] 'modprobe' THREAD: c00000002a2b8000 CPU: 0
[ 31.841569] GPR00: 0000000080000000 c00000002a2bb470 c00000000067acc0 c00000002d190511
[ 31.841951] GPR04: 0000000000000000 0000000000000000 c00000002d90b960 00005a0000000000
[ 31.842333] GPR08: 0000000000000000 0000000000000000 0000000000000000 c0000000004209e0
[ 31.842714] GPR12: d0000000003bbb48 c0000000005cc100 d0000000002f9a98 d0000000002f9ad8
[ 31.843096] GPR16: 0000000000000000 0000000000000411 0000000000000411 d0000000003c62c0
[ 31.843478] GPR20: 0000000000000000 0000000000000025 d0000000002f909b c0000000006392b8
[ 31.843860] GPR24: c00000002d180000 c00000002d190511 0000000000000000 0000000000000000
[ 31.844241] GPR28: c00000002d190515 0000000000000001 d0000000003dbaf0 c00000002d190511
[ 31.844632] NIP [c000000000420a20] ._spin_lock_irqsave+0x40/0xd0
[ 31.844907] LR [d000000000397128] .MlmeQueueInit+0x48/0xf0 [rt2570]
[ 31.845218] Call Trace:
[ 31.845323] [c00000002a2bb470] [0000000010000000] 0x10000000 (unreliable)
[ 31.845640] [c00000002a2bb500] [d000000000397128] .MlmeQueueInit+0x48/0xf0 [rt2570]
[ 31.845997] [c00000002a2bb5b0] [d00000000039a068] .MlmeInit+0x48/0x190 [rt2570]
[ 31.846340] [c00000002a2bb660] [d000000000393d54] .usb_rtusb_probe+0x394/0x470 [rt2570]
[ 31.846710] [c00000002a2bb720] [d0000000000de1fc] .usb_probe_interface+0x12c/0x220 [usbcore]
[ 31.847132] [c00000002a2bb7d0] [c00000000031d054] .driver_probe_device+0x104/0x280
[ 31.847477] [c00000002a2bb870] [c00000000031d48c] .__driver_attach+0x10c/0x150
[ 31.847803] [c00000002a2bb900] [c00000000031bce8] .bus_for_each_dev+0x88/0xe0
[ 31.848128] [c00000002a2bb9c0] [c00000000031cda8] .driver_attach+0x28/0x40
[ 31.848440] [c00000002a2bba40] [c00000000031c2e4] .bus_add_driver+0xd4/0x280
[ 31.848761] [c00000002a2bbae0] [c00000000031d864] .driver_register+0x64/0xc0
[ 31.849080] [c00000002a2bbb60] [d0000000000dda34] .usb_register_driver+0xd4/0x1a0 [usbcore]
[ 31.849474] [c00000002a2bbc10] [d0000000003bba10] .init_module+0x30/0x3ca8 [rt2570]
[ 31.849836] [c00000002a2bbc90] [c0000000000b6acc] .sys_init_module+0x20c/0x1aa0
[ 31.850170] [c00000002a2bbe30] [c000000000008734] syscall_exit+0x0/0x40
[ 31.850473] Instruction dump:
[ 31.850610] 7c7f1b78 f8010010 f821ff71 39200000 8bad01da 992d01da 38000000 980d01dc
[ 31.851006] 800d0008 7d20f828 2c090000 40820010 <7c00f92d> 40a2fff0 4c00012c 2fa90000
[ 31.856365] ---[ end trace c1c826be990d5b80 ]---

[/codessbdxqrl]

I have also tried by installing an rt2570 package from the ubuntu repositories, that doesnt even compile

It is present in the apt repositories, but will not compile using the "debian" way...

The particular ubuntu package is rt2570-source

[codessbdxqrl]sudo module-assistant build rt2570
[/codessbdxqrl]

[codessbdxqrl]? # Build modules ?
? /usr/bin/make KERNDIR=/usr/src/linux PATCHLEVEL=6 ?
? make[2]: Entering directory `/usr/src/modules/rt2570' ?
? make[3]: Entering directory ?
? `/usr/src/linux-headers-2.6.24-19-powerpc64-smp' ?
? CC [M] /usr/src/modules/rt2570/rtusb_main.o ?
? /usr/src/modules/rt2570/rtusb_main.c: In function ‘usb_rtusb_probe’: ?
? /usr/src/modules/rt2570/rtusb_main.c:1904: error: implicit declaration ?
? of function ‘SET_MODULE_OWNER’ ?
? /usr/src/modules/rt2570/rtusb_main.c:1924: error: ‘struct net_device’ ?
? has no member named ‘weight’ ?
? make[4]: *** [/usr/src/modules/rt2570/rtusb_main.o] Error 1 ?
? make[3]: *** [_module_/usr/src/modules/rt2570] Error 2 ?
? make[3]: Leaving directory ?
? `/usr/src/linux-headers-2.6.24-19-powerpc64-smp' [/codessbdxqrl]

I also tried a standard "make" but this bombed with the same errors

[codessbdxqrl]make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-powerpc64-smp'
CC [M] /usr/src/modules/rt2570/rtusb_main.o
/usr/src/modules/rt2570/rtusb_main.c: In function ‘usb_rtusb_probe’:
/usr/src/modules/rt2570/rtusb_main.c:1904: error: implicit declaration of function ‘SET_MODULE_OWNER’
/usr/src/modules/rt2570/rtusb_main.c:1924: error: ‘struct net_device’ has no member named ‘weight’
make[2]: *** [/usr/src/modules/rt2570/rtusb_main.o] Error 1
make[1]: *** [_module_/usr/src/modules/rt2570] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-powerpc64-smp'
rt2570.ko failed to build!
make: *** [module] Error 1
[/codessbdxqrl]

I would be very greatful for some help. I noted I posted on here about two years ago about the same USB dongle.....it wasnt working then either.

Vern

18-08-2008 01:10:03

Hi thetravellor,

Could you download from CVS, build with debug enabled, and then attach a gzipped copy of /var/log/kern.log to a posting here? If you can, just include the interval beginning with modprobe, and ending when things go south.

Thanks,

thetravellor

18-08-2008 08:35:13

mainly fyi

/etc/modprobe.d/blacklist

[code39gtt9vu]
# use the rt2570 driver instead
blacklist rt2x00lib
blacklist rt2500usb
blacklist rt2x00usb
[/code39gtt9vu]

the module is still in memory, despite the kernel oops
[code39gtt9vu]
user@blackbox:/var/log$ lsmod | grep rt
parport 66248 2 ppdev,lp
rt2570 360784 2
uninorth_agp 20104 1
agpgart 60420 1 uninorth_agp
usbcore 242648 5 rt2570,usbhid,ehci_hcd,ohci_hcd
[/code39gtt9vu]


kern.log section

[code39gtt9vu]
Aug 18 18:30:23 blackbox kernel: [ 23.384492] b43-phy0 debug: Found PHY: Analog 2, Type 2, Revision 2
Aug 18 18:30:23 blackbox kernel: [ 23.384519] b43-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2050, Revision 2
Aug 18 18:30:23 blackbox kernel: [ 23.473727] phy0: Selected rate control algorithm 'simple'
Aug 18 18:30:23 blackbox kernel: [ 25.142392] rt2570: init
Aug 18 18:30:23 blackbox kernel: [ 25.142518] rt2570: idVendor = 0xb05, idProduct = 0x1706
Aug 18 18:30:23 blackbox kernel: [ 25.964540] Unable to handle kernel paging request for unknown fault
Aug 18 18:30:23 blackbox kernel: [ 25.964840] Faulting instruction address: 0xc000000000420a20
Aug 18 18:30:23 blackbox kernel: [ 25.965085] Oops: Kernel access of bad area, sig: 7 [#1]
Aug 18 18:30:23 blackbox kernel: [ 25.965313] SMP NR_CPUS=32 NUMA PowerMac
Aug 18 18:30:23 blackbox kernel: [ 25.965497] Modules linked in: arc4 ecb blkcipher snd_aoa_i2sbus snd_aoa_soundbus snd_pcm snd_page_alloc snd_timer snd soundcore rt2570 b43 mac80211 cfg80211 usbhid input_polldev rfkill hid led_class af_packet uninorth_agp agpgart evdev ext3 jbd mbcache sg sd_mod generic ata_generic sata_svw ohci1394 ehci_hcd ide_cd cdrom ohci_hcd ieee1394 libata scsi_mod usbcore ssb sungem sungem_phy windfarm_smu_sensors windfarm_smu_controls windfarm_pm81 windfarm_smu_sat windfarm_pid windfarm_max6690_sensor windfarm_lm75_sensor windfarm_cpufreq_clamp windfarm_core fuse
Aug 18 18:30:23 blackbox kernel: [ 25.968039] NIP: c000000000420a20 LR: d0000000003fae48 CTR: c0000000004209e0
Aug 18 18:30:23 blackbox kernel: [ 25.968342] REGS: c00000002dce31d0 TRAP: 0600 Not tainted (2.6.24-19-powerpc64-smp)
Aug 18 18:30:23 blackbox kernel: [ 25.968681] MSR: 9000000000009032 <EE,ME,IR,DR> CR: 24024442 XER: 00000000
Aug 18 18:30:23 blackbox kernel: [ 25.969040] DAR: c00000002d190511, DSISR: 0000000040000000
Aug 18 18:30:23 blackbox kernel: [ 25.969276] TASK = c00000002d1e5120[2898] 'modprobe' THREAD: c00000002dce0000 CPU: 0
Aug 18 18:30:23 blackbox kernel: [ 25.969615] GPR00: 0000000080000000 c00000002dce3450 c00000000067acc0 c00000002d190511
Aug 18 18:30:23 blackbox kernel: [ 25.969996] GPR04: c00000002dce35d0 0000000000000000 c00000002b723960 0000560000000004
Aug 18 18:30:23 blackbox kernel: [ 25.970378] GPR08: 0000000000000000 0000000000000000 0000000000000000 c0000000004209e0
Aug 18 18:30:23 blackbox kernel: [ 25.970759] GPR12: d000000000424fd8 c0000000005cc100 d0000000003cba70 d0000000003cbab0
Aug 18 18:30:23 blackbox kernel: [ 25.971140] GPR16: 0000000000000000 000000000000044f 000000000000044f d000000000438a70
Aug 18 18:30:23 blackbox kernel: [ 25.971523] GPR20: 0000000000000000 0000000000000025 d0000000003cb073 d000000000428c18
Aug 18 18:30:23 blackbox kernel: [ 25.971905] GPR24: c00000002d180000 c00000002d190511 0000000000000000 0000000000000000
Aug 18 18:30:23 blackbox kernel: [ 25.972287] GPR28: c00000002d190515 0000000000000001 d00000000044edf8 c00000002d190511
Aug 18 18:30:23 blackbox kernel: [ 25.972678] NIP [c000000000420a20] ._spin_lock_irqsave+0x40/0xd0
Aug 18 18:30:23 blackbox kernel: [ 25.972952] LR [d0000000003fae48] .MlmeQueueInit+0x48/0xf0 [rt2570]
Aug 18 18:30:23 blackbox kernel: [ 25.973265] Call Trace:
Aug 18 18:30:23 blackbox kernel: [ 25.973371] [c00000002dce3450] [0000000010000000] 0x10000000 (unreliable)
Aug 18 18:30:23 blackbox kernel: [ 25.973687] [c00000002dce34e0] [d0000000003fae48] .MlmeQueueInit+0x48/0xf0 [rt2570]
Aug 18 18:30:23 blackbox kernel: [ 25.974045] [c00000002dce3590] [d0000000003fe2ac] .MlmeInit+0x5c/0x1b0 [rt2570]
Aug 18 18:30:23 blackbox kernel: [ 25.974389] [c00000002dce3640] [d0000000003f71ec] .usb_rtusb_probe+0x3fc/0x500 [rt2570]
Aug 18 18:30:23 blackbox kernel: [ 25.974759] [c00000002dce3710] [d0000000000f61fc] .usb_probe_interface+0x12c/0x220 [usbcore]
Aug 18 18:30:23 blackbox kernel: [ 25.975182] [c00000002dce37c0] [c00000000031d054] .driver_probe_device+0x104/0x280
Aug 18 18:30:23 blackbox kernel: [ 25.975526] [c00000002dce3860] [c00000000031d48c] .__driver_attach+0x10c/0x150
Aug 18 18:30:23 blackbox kernel: [ 25.975852] [c00000002dce38f0] [c00000000031bce8] .bus_for_each_dev+0x88/0xe0
Aug 18 18:30:23 blackbox kernel: [ 25.976176] [c00000002dce39b0] [c00000000031cda8] .driver_attach+0x28/0x40
Aug 18 18:30:23 blackbox kernel: [ 25.976489] [c00000002dce3a30] [c00000000031c2e4] .bus_add_driver+0xd4/0x280
Aug 18 18:30:23 blackbox kernel: [ 25.976809] [c00000002dce3ad0] [c00000000031d864] .driver_register+0x64/0xc0
Aug 18 18:30:23 blackbox kernel: [ 25.977128] [c00000002dce3b50] [d0000000000f5a34] .usb_register_driver+0xd4/0x1a0 [usbcore]
Aug 18 18:30:23 blackbox kernel: [ 25.977521] [c00000002dce3c00] [d000000000424e4c] .init_module+0x4c/0x3da8 [rt2570]
Aug 18 18:30:23 blackbox kernel: [ 25.977885] [c00000002dce3c90] [c0000000000b6acc] .sys_init_module+0x20c/0x1aa0
Aug 18 18:30:23 blackbox kernel: [ 25.978218] [c00000002dce3e30] [c000000000008734] syscall_exit+0x0/0x40
Aug 18 18:30:23 blackbox kernel: [ 25.978521] Instruction dump:
Aug 18 18:30:23 blackbox kernel: [ 25.978657] 7c7f1b78 f8010010 f821ff71 39200000 8bad01da 992d01da 38000000 980d01dc
Aug 18 18:30:23 blackbox kernel: [ 25.979054] 800d0008 7d20f828 2c090000 40820010 <7c00f92d> 40a2fff0 4c00012c 2fa90000
Aug 18 18:30:23 blackbox kernel: [ 25.984411] ---[ end trace 0bba833d7724ad8f ]---
Aug 18 18:30:23 blackbox kernel: [ 29.585396] snd-aoa-fabric-layout: found bus with layout 45
[/code39gtt9vu]

Vern

19-08-2008 16:18:47

Basically, using your log paste-in as an example[code1w1qxjfo]egrep 'Aug 18 18:3' /var/log/kern.log|gzip >kern.log.gz[/code1w1qxjfo]then attach that to your posting.

Thanks,