Kernel Oops when enableing rt2800usb driver

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

qxie777

11-03-2013 20:07:57

Hello,

I have 2.6.39 Linux and a Tenda W311M USB wireless stick. I can load rt2800usb driver successfully, but when I tried to enable the driver driver by "echo 148F 5370 | tee /sys/bus/usb/drivers/rt2800usb/new_id", I got the following kernel error. My questions are
1. Is "echo 148F 5370 | tee /sys/bus/usb/drivers/rt2800usb/new_id" the right way to enable the driver? Is there any alternative?
2. What is the error about and how can I resolve it?

Thanks in advance.
Harry

Dmesg output

[ 106.930000] usb 1-1.2 default language 0x0409
[ 106.930000] usb 1-1.2 udev 3, busnum 1, minor = 2
[ 106.930000] usb 1-1.2 New USB device found, idVendor=148f, idProduct=5370
[ 106.940000] usb 1-1.2 New USB device strings Mfr=1, Product=2, SerialNumber=3
[ 106.950000] usb 1-1.2 Product 802.11 n WLAN
[ 106.950000] usb 1-1.2 Manufacturer Ralink
[ 106.960000] usb 1-1.2 SerialNumber 1.0
[ 106.960000] usb 1-1.2 usb_probe_device
[ 106.960000] usb 1-1.2 configuration #1 chosen from 1 choice
[ 106.960000] usb 1-1.2 adding 1-1.21.0 (config #1, interface 0)
[ 106.970000] drivers/usb/core/inode.c creating file '003'
[ 143.140000] cfg80211 Calling CRDA to update world regulatory domain
[ 144.770000] usbcore registered new interface driver rt2800usb
[ 169.740000] rt2800usb 1-1.21.0 usb_probe_interface
[ 169.740000] rt2800usb 1-1.21.0 usb_probe_interface - got id
[ 169.740000] Unable to handle kernel NULL pointer dereference at virtual address 00000034[/color3t0fl42a]
[ 169.750000] pgd = c7070000
[ 169.750000] [00000034] *pgd=27b4a831, *pte=00000000, *ppte=00000000
[ 169.760000] Internal error Oops 17 [#1][/color3t0fl42a]
[ 169.760000] last sysfs file /sys/bus/usb/drivers/rt2800usb/new_id
[ 169.760000] Modules linked in rt2800usb rt2800lib crc_ccitt rt2x00usb rt2x00lib mac80211 cfg80211
[ 169.760000] CPU 0 Not tainted (2.6.39 #3)
[ 169.760000] PC is at rt2x00usb_probe+0x18/0x180 [rt2x00usb]
[ 169.760000] LR is at kobject_get+0x14/0x1c
[ 169.760000] pc [<bf076104>] lr [<c01266c4>] psr 20000013
[ 169.760000] sp c7bdfeb0 ip 00004529 fp 400be000
[ 169.760000] r10 c7bdff80 r9 c708b5f8 r8 c7b8ebc0
[ 169.760000] r7 00000000 r6 c7b8ebc0 r5 c7b5d000 r4 c7b8ebe0
[ 169.760000] r3 0000000a r2 20000013 r1 c727ae68 r0 c7b5d000
[ 169.760000] Flags nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 169.760000] Control 0005317f Table 27070000 DAC 00000015
[ 169.760000] Process tee (pid 597, stack limit = 0xc7bde270)
[ 169.760000] Stack (0xc7bdfeb0 to 0xc7be0000)
[ 169.760000] fea0 c7b8ebe0 c7b5d000 c7b8ebc0 bf096054
[ 169.760000] fec0 c727ae68 c708b5f8 c7bdff80 c019b048 c7b8ebe0 c7b8ebe0 bf096054 c7039f20
[ 169.760000] fee0 c027a2dc c0159d20 c7b8ebe0 c7b8ec14 bf096054 c0159e3c 00000000 c0159ddc
[ 169.760000] ff00 bf096054 c01595c4 c78589d8 c7005990 bf09604c bf096054 0000000a c019b6d8
[ 169.760000] ff20 00005370 0000148f 0000000a c707c5d8 c708b5e0 c0158a78 0000000a c00cd9c8
[ 169.760000] ff40 c7047f40 0000000a 000afa18 c7bdff80 000afa18 c7bde000 00000000 c008bea8
[ 169.760000] ff60 c7047f40 000afa18 00000000 00000000 c7047f40 0000000a 000afa18 c008bfdc
[ 169.760000] ff80 00000000 00000000 0000000a 00000000 0000000a 000b2018 000afa18 00000004
[ 169.760000] ffa0 c0029024 c0028ea0 0000000a 000b2018 00000003 000afa18 0000000a 00000000
[ 169.760000] ffc0 0000000a 000b2018 000afa18 00000004 0000000a 000afa18 000c6fa8 400be000
[ 169.760000] ffe0 00000000 bed3cb08 401ea154 4023df6c 60000010 00000003 ffbaec9d fdefb96f
[ 169.760000] [<bf076104>] (rt2x00usb_probe+0x18/0x180 [rt2x00usb]) from [<c019b048>] (usb_probe_interface+0xec/0x13c)
[ 169.760000] [<c019b048>] (usb_probe_interface+0xec/0x13c) from [<c0159d20>] (driver_probe_device+0xb0/0x16c)
[ 169.760000] [<c0159d20>] (driver_probe_device+0xb0/0x16c) from [<c0159e3c>] (__driver_attach+0x60/0x84)
[ 169.760000] [<c0159e3c>] (__driver_attach+0x60/0x84) from [<c01595c4>] (bus_for_each_dev+0x44/0x74)
[ 169.760000] [<c01595c4>] (bus_for_each_dev+0x44/0x74) from [<c019b6d8>] (usb_store_new_id+0xa4/0xd0)
[ 169.760000] [<c019b6d8>] (usb_store_new_id+0xa4/0xd0) from [<c0158a78>] (drv_attr_store+0x24/0x28)
[ 169.760000] [<c0158a78>] (drv_attr_store+0x24/0x28) from [<c00cd9c8>] (sysfs_write_file+0x108/0x140)
[ 169.760000] [<c00cd9c8>] (sysfs_write_file+0x108/0x140) from [<c008bea8>] (vfs_write+0xac/0x134)
[ 169.760000] [<c008bea8>] (vfs_write+0xac/0x134) from [<c008bfdc>] (sys_write+0x3c/0x68)
[ 169.760000] [<c008bfdc>] (sys_write+0x3c/0x68) from [<c0028ea0>] (ret_fast_syscall+0x0/0x2c)
[ 169.760000] Code e5900020 e5917010 e2400068 eb446adf (e5971034)
[ 170.030000] ---[ end trace 3e672e265cbc215c ]---