最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[tmp]kerne oops when test USB

tmp_todo crifan 1682浏览 0评论

?# ls
dwc_otg.ko         g_file_storage.ko g_zero.ko          gadgetfs.ko
# mount /dev/mtdblock4 /mnt/usb_msc/
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
yaffs: auto selecting yaffs2
yaffs_read_super: isCheckpointed 0
# ysnc
-sh: ysnc: not found
# sync
save exit: isCheckpointed 1
save exit: isCheckpointed 1
# cd /mnt/usb_msc/
# ls
lost+found
# dd if=/dev/zero of=dosfs bs=1M count=0 seek=200
0+0 records in
0+0 records out
# cd /test/usb/
# ls
dwc_otg.ko         g_file_storage.ko g_zero.ko          gadgetfs.ko
# insmod dwc_otg.ko
dwc_otg: version 2.60a 05-JUN-2009
AHBValid bit set to 4 after 0 msec
AHBValid bit set to 4 after 1 msec
Connected
dwc_otg: Detected: Synopsys DWC OTG 2.60a Core
dwc_otg: Dedicated Tx FIFOs mode
# insmod gadgetfs.ko
gadgetfs: USB Gadget filesystem, version 24 Aug 2004
# insmod g_file_storage.ko file=/mnt/usb_msc/dosfs stall=0 removable=1
g_file_storage gadget: File-backed Storage Gadget, version: 7 August 2007
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /mnt/usb_msc/dosfs
#
# dwc_otg: SRP: Device mode
dwc_otg: USB RESET
dwc_otg:

         CANNOT handle > 1 setup packet in DMA mode

dwc_otg: USB RESET
dwc_otg:

         CANNOT handle > 1 setup packet in DMA mode

……

dwc_otg:

         CANNOT handle > 1 setup packet in DMA mode

g_file_storage gadget: high speed config #1
dwc_otg:

         CANNOT handle > 1 setup packet in DMA mode

dwc_otg:

         CANNOT handle > 1 setup packet in DMA mode

———————————————————————————————————————–

第一种oops:

BUG: soft lockup – CPU#0 stuck for 61s! [file-storage-ga:948]
Modules linked in: g_file_storage gadgetfs dwc_otg

Pid: 948, comm:      file-storage-ga
CPU: 0    Not tainted (2.6.28.4-as353x-patch-svn1598-dirty #131)
PC is at page_waitqueue+0x0/0x74
LR is at unlock_page+0x30/0x40
pc : [<c0066d18>]    lr : [<c0067abc>]    psr: 80000013
sp : c3011bd8 ip : c3011bec fp : c3011be8
r10: c3010000 r9 : c3423b4c r8 : 00000000
r7 : 00000365 r6 : 00000365 r5 : c3423b4c r4 : c04040e0
r3 : 0000022c r2 : 80000013 r1 : 80000093 r0 : c04040e0
Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: 43b28000 DAC: 00000017
[<c0025dc0>] (show_regs+0x0/0x4c) from [<c006241c>] (softlockup_tick+0xe8/0x154)
r4:02625a41
[<c0062334>] (softlockup_tick+0x0/0x154) from [<c0048680>] (run_local_timers+0x1c/0x20)
[<c0048664>] (run_local_timers+0x0/0x20) from [<c00486fc>] (update_process_times+0x2c/0x5c)
[<c00486d0>] (update_process_times+0x0/0x5c) from [<c00283ec>] (timer_tick+0xe8/0x10c)
r5:00000000 r4:c0376840
[<c0028304>] (timer_tick+0x0/0x10c) from [<c002dfbc>] (as353x_timer_interrupt+0x1c/0x28)
r5:00000000 r4:00000001
[<c002dfa0>] (as353x_timer_interrupt+0x0/0x28) from [<c0062890>] (handle_IRQ_event+0x44/0x84)
r4:c0351544
[<c006284c>] (handle_IRQ_event+0x0/0x84) from [<c0064444>] (handle_level_irq+0x78/0xf8)
r7:c0356034 r6:00000000 r5:0000002d r4:c0356ac0
[<c00643cc>] (handle_level_irq+0x0/0xf8) from [<c002df6c>] (vicp_handle_irq+0x70/0xa4)
r5:c0356ac0 r4:0000002d
[<c002defc>] (vicp_handle_irq+0x0/0xa4) from [<c0024058>] (__exception_text_start+0x58/0x8c)
r7:00000365 r6:00000000 r5:c037a938 r4:00000007
[<c0024000>] (__exception_text_start+0x0/0x8c) from [<c0024a44>] (__irq_svc+0x24/0x80)
Exception stack(0xc3011b90 to 0xc3011bd8)
1b80:                                     c04040e0 80000093 80000013 0000022c
1ba0: c04040e0 c3423b4c 00000365 00000365 00000000 c3423b4c c3010000 c3011be8
1bc0: c3011bec c3011bd8 c0067abc c0066d18 80000013 ffffffff                  
r6:00000001 r5:fe450000 r4:ffffffff
[<c0067a8c>] (unlock_page+0x0/0x40) from [<c0067b3c>] (find_lock_page+0x70/0x7c)
r4:c04040e0
[<c0067acc>] (find_lock_page+0x0/0x7c) from [<c0067e34>] (grab_cache_page_write_begin+0x2c/0xa0)
r6:c3423b4c r5:00365000 r4:00000365
[<c0067e08>] (grab_cache_page_write_begin+0x0/0xa0) from [<c01373e4>] (yaffs_write_begin+0x28/0x16c)
[<c01373bc>] (yaffs_write_begin+0x0/0x16c) from [<c0068424>] (generic_file_buffered_write+0x124/0x330)
r8:00000000 r7:00001000 r6:00000000 r5:00365000 r4:00000000
[<c0068304>] (generic_file_buffered_write+0x4/0x330) from [<c0068b9c>] (__generic_file_aio_write_nolock+0x2ec/0x4b4)
[<c00688b0>] (__generic_file_aio_write_nolock+0x0/0x4b4) from [<c0069068>] (generic_file_aio_write+0x84/0xf8)
[<c0068fe8>] (generic_file_aio_write+0x4/0xf8) from [<c008eb70>] (do_sync_write+0xcc/0x11c)
[<c008eaa4>] (do_sync_write+0x0/0x11c) from [<c008f4a0>] (vfs_write+0xb8/0x150)
r7:00004000 r6:c3011e98 r5:c3b64000 r4:c3976c60
[<c008f3e8>] (vfs_write+0x0/0x150) from [<bf023d90>] (do_write+0x2e4/0x534 [g_file_storage])
r7:0036c800 r6:c39d6438 r5:00004000 r4:00000000
[<bf023aac>] (do_write+0x0/0x534 [g_file_storage]) from [<bf024570>] (do_scsi_command+0x590/0xe2c [g_file_storage])
[<bf023fe0>] (do_scsi_command+0x0/0xe2c [g_file_storage]) from [<bf0256cc>] (fsg_main_thread+0x818/0xb70 [g_file_storage])
[<bf024eb4>] (fsg_main_thread+0x0/0xb70 [g_file_storage]) from [<c0052be0>] (kthread+0x50/0x7c)
[<c0052b90>] (kthread+0x0/0x7c) from [<c0041328>] (do_exit+0x0/0x7a0)
r5:00000000 r4:00000000

———————————————————————————————————————–

第二种oops:

Unable to handle kernel NULL pointer dereference at virtual address 00000034
pgd = c3b28000
[00000034] *pgd=43aeb031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#2]
Modules linked in: g_file_storage gadgetfs dwc_otg
CPU: 0    Tainted: G      D     (2.6.28.4-as353x-patch-svn1598-dirty #131)
PC is at prepare_signal+0x14/0x18c
LR is at send_signal+0x24/0x1ec
pc : [<c00497b4>]    lr : [<c0049e80>]    psr: 80000093
sp : c3b25e20 ip : c3b25e44 fp : c3b25e40
r10: ffa91000 r9 : 00000000 r8 : c3871960
r7 : 00000000 r6 : 00000002 r5 : c3871960 r4 : 80000093
r3 : 00000000 r2 : c3871960 r1 : c3871960 r0 : 0000000a
Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: 43b28000 DAC: 00000015
Process klogd (pid: 915, stack limit = 0xc3b24260)
Stack: (0xc3b25e20 to 0xc3b26000)
5e20: 80000093 00000000 00000002 0000000a c3871960 c3b25e6c c3b25e44 c0049e80
5e40: c00497b0 80000093 00000000 c3b25ed4 00000000 00000000 c3b24000 ffa91000
5e60: c3b25e7c c3b25e70 c004a05c c0049e6c c3b25e90 c3b25e80 c004a1d4 c004a058
5e80: 60000013 c3b25ea4 c3b25e94 bf0228d4 c004a1bc c39d61e0 c3b25ec8 c3b25ea8
5ea0: bf0261cc bf02289c 00000000 c3b25ed4 c3afd000 c3afd164 c3ad8440 c3b25f00
5ec0: c3b25ecc bf006fb0 bf025eb8 00000000 00000000 00010900 00000000 00000000
5ee0: c3afd000 00000001 00000008 c3ada1e0 4006145c c3b25f48 c3b25f04 bf008298
5f00: bf006c7c 00000000 00000008 00000000 c3b25f1c c00a3e90 c0169808 00000023
5f20: c3bd26c0 00000000 0000000e 00000000 40065068 c3b24000 4006145c c3b25f58
5f40: c3b25f4c bf004fe0 bf007b00 c3b25f78 c3b25f5c c0062890 bf004fdc c035637c
5f60: 0000000e 00000000 00000004 c3b25f90 c3b25f7c c0064444 c006285c 0000000e
5f80: c037a938 c3b25fac c3b25f94 c0024058 c00643dc ffffffff fe450000 00000001
5fa0: 00000000 c3b25fb0 c0024c20 c0024010 00000000 be9a37c0 0000003c 0000004d
5fc0: be9a37b8 be9a37c0 40060e6c 00000004 40065068 00000001 4006145c 4006145c
5fe0: 40055659 be9a379c 4002a500 4002a54c 20000010 ffffffff 00000000 00000000
Backtrace:
[<c00497a0>] (prepare_signal+0x0/0x18c) from [<c0049e80>] (send_signal+0x24/0x1ec)
r8:c3871960 r7:0000000a r6:00000002 r5:00000000 r4:80000093
[<c0049e5c>] (send_signal+0x0/0x1ec) from [<c004a05c>] (specific_send_sig_info+0x14/0x18)
[<c004a048>] (specific_send_sig_info+0x0/0x18) from [<c004a1d4>] (send_sig_info+0x28/0x40)
[<c004a1ac>] (send_sig_info+0x0/0x40) from [<bf0228d4>] (raise_exception+0x48/0x50 [g_file_storage])
r4:60000013
[<bf02288c>] (raise_exception+0x0/0x50 [g_file_storage]) from [<bf0261cc>] (fsg_setup+0x324/0x3b8 [g_file_storage])
r4:c39d61e0
[<bf025ea8>] (fsg_setup+0x0/0x3b8 [g_file_storage]) from [<bf006fb0>] (handle_ep0+0x344/0x9fc [dwc_otg])
r8:c3ad8440 r7:c3afd164 r6:c3afd000 r5:c3b25ed4 r4:00000000
[<bf006c6c>] (handle_ep0+0x0/0x9fc [dwc_otg]) from [<bf008298>] (dwc_otg_pcd_handle_intr+0x7a8/0xa48 [dwc_otg])
[<bf007af0>] (dwc_otg_pcd_handle_intr+0x0/0xa48 [dwc_otg]) from [<bf004fe0>] (dwc_otg_pcd_irq+0x14/0x20 [dwc_otg])
[<bf004fcc>] (dwc_otg_pcd_irq+0x0/0x20 [dwc_otg]) from [<c0062890>] (handle_IRQ_event+0x44/0x84)
[<c006284c>] (handle_IRQ_event+0x0/0x84) from [<c0064444>] (handle_level_irq+0x78/0xf8)
r7:00000004 r6:00000000 r5:0000000e r4:c035637c
[<c00643cc>] (handle_level_irq+0x0/0xf8) from [<c0024058>] (__exception_text_start+0x58/0x8c)
r5:c037a938 r4:0000000e
[<c0024000>] (__exception_text_start+0x0/0x8c) from [<c0024c20>] (__irq_usr+0x40/0xa0)
Exception stack(0xc3b25fb0 to 0xc3b25ff8)
5fa0:                                     00000000 be9a37c0 0000003c 0000004d
5fc0: be9a37b8 be9a37c0 40060e6c 00000004 40065068 00000001 4006145c 4006145c
5fe0: 40055659 be9a379c 4002a500 4002a54c 20000010 ffffffff                  
r6:00000001 r5:fe450000 r4:ffffffff
Code: e92dd9f0 e24cb004 e5917238 e1a05001 (e5973034)
Kernel panic – not syncing: Fatal exception in interrupt

———————————————————————————————————————–

第三种oops:

Unable to handle kernel NULL pointer dereference at virtual address 0000001f
pgd = c3b10000
[0000001f] *pgd=43aeb031, *pte=00000000, *ppte=00000000
Internal error: Oops: 1 [#1]
Modules linked in: g_file_storage gadgetfs dwc_otg
CPU: 0    Not tainted (2.6.28.4-as353x-patch-svn1598-dirty #131)
PC is at get_index+0x20/0x5c
LR is at prio_tree_next+0x104/0x188
pc : [<c016b964>]    lr : [<c016c118>]    psr: 20000093
sp : c3c15c14 ip : c3c15c24 fp : c3c15c20
r10: 0000c7ff r9 : 00000010 r8 : c035bc98
r7 : c3c15c28 r6 : c3c15c24 r5 : c342001c r4 : c3c15c64
r3 : c3c15c24 r2 : c3c15c28 r1 : ffffffdb r0 : c342001c
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: 43b10000 DAC: 00000017
Process file-storage-ga (pid: 936, stack limit = 0xc3c14260)
Stack: (0xc3c15c14 to 0xc3c16000)
5c00:                                              c3c15c50 c3c15c24 c016c118
5c20: c016b954 c3b481f0 c3010000 00001000 c3983000 00000000 c39bf660 c3c15c64
5c40: 00002a88 c3c15c60 c3c15c54 c0075464 c016c024 c3c15c9c c3c15c64 c002ae4c
5c60: c0075420 00000000 00000000 00000000 00000000 c342001c 00002a88 00002a88
5c80: 00000000 c03ec200 c3b481f0 c3983000 c3c15cc4 c3c15ca0 c01372b8 c002adb0
5ca0: 00001000 c03ec200 c3976de0 c035bc98 00000010 00002a88 c3c15ce0 c3c15cc8
5cc0: c013737c c01371ec c03ec200 00000001 c342410c c3c15d24 c3c15ce4 c0070210
5ce0: c013735c c3c15cf4 c3976de0 c3424108 00000010 c0399218 c03ec238 c3976e24
5d00: c3976e24 00000020 00002a84 c3424108 00000000 c3976de0 c3c15d50 c3c15d28
5d20: c0070474 c006ffc8 00000010 c3976e24 c3424108 c3976de0 c3424108 00002a84
5d40: c3976de0 c3c15d74 c3c15d54 c0070590 c0070394 00002a84 00000004 00000000
5d60: c03ec300 00000000 c3c15df0 c3c15d78 c00695b8 c00704fc 00002a84 00000004
5d80: c3c15e44 00000000 00000000 c3c15dfc 00000000 00000000 00002a88 c3976e24
5da0: c3424070 c3c15e80 00000000 00002a83 00000001 00000000 00004000 c3c04000
5dc0: 00000000 00004000 c3c15e80 c3c15dfc c3976de0 c3c15ef8 02a84000 00000000
5de0: c3b3c600 c3c15ea4 c3c15df8 c008ec8c c0069368 02a84000 00000000 c3c15e08
5e00: c0069c00 00000000 00000001 ffffffff c3976de0 00000000 00000000 00000000
5e20: 00000000 c38939c0 00000000 00000000 c00714ac c38939c0 c0053108 c3c15e3c
5e40: c3c15e3c 02a84000 00000000 00000000 00000000 00000000 c03ec340 00004000
5e60: c03ec1c0 c03ec1a0 c03ec240 c03ec220 00000000 00000000 c03ec280 00000001
5e80: c3c04000 00004000 c3976de0 c3c04000 c3c15ef8 00004000 c3c15ec8 c3c15ea8
5ea0: c008f5ec c008ebd0 00000000 00000000 00000000 c39ac4e0 c39ac558 c3c15f28
5ec0: c3c15ecc bf024bac c008f548 00000001 bf0269bc c3c14000 c39ac4e4 0003c000
5ee0: c39ac558 00015400 00000000 c39ac4e0 c39ac4e0 00004000 02a84000 00000000
5f00: 00000001 c39ac558 c39ac4e0 c3adf220 c3c14000 bf028c30 c3c04000 c3c15fdc
5f20: c3c15f2c bf0256cc bf023ff0 c39ac55c c3c15f68 0000000a 00000000 00000000
5f40: 00000000 00000000 c03705c4 c03705c4 00000000 c3c15f78 c3c15f88 c3c15f68
5f60: c00571e4 c0031a6c c381a01c c38939c0 00000017 ffffffff c3c15f94 c3c15f88
5f80: c00241fc c002a794 c3c15ff4 c3c15f98 c0024b40 c00241f4 c39ac4e0 00000000
5fa0: c03767b0 c3c14000 c39ac4e0 bf024eb4 00000000 c39ac4e0 bf024eb4 00000000
5fc0: 00000000 00000000 00000000 00000000 c3c15ff4 c3c15fe0 c0052be0 bf024ec4
5fe0: 00000000 00000000 00000000 c3c15ff8 c0041328 c0052ba0 17e80000 00000000
Backtrace:
[<c016b944>] (get_index+0x0/0x5c) from [<c016c118>] (prio_tree_next+0x104/0x188)
[<c016c014>] (prio_tree_next+0x0/0x188) from [<c0075464>] (vma_prio_tree_next+0x54/0x74)
r7:00002a88 r6:c3c15c64 r5:c39bf660 r4:00000000
[<c0075410>] (vma_prio_tree_next+0x0/0x74) from [<c002ae4c>] (flush_dcache_page+0xac/0x158)
[<c002ada0>] (flush_dcache_page+0x0/0x158) from [<c01372b8>] (yaffs_readpage_nolock+0xdc/0x170)
r7:c3983000 r6:c3b481f0 r5:c03ec200 r4:00000000
[<c01371dc>] (yaffs_readpage_nolock+0x0/0x170) from [<c013737c>] (yaffs_readpage+0x30/0x70)
r8:00002a88 r7:00000010 r6:c035bc98 r5:c3976de0 r4:c03ec200
[<c013734c>] (yaffs_readpage+0x0/0x70) from [<c0070210>] (__do_page_cache_readahead+0x258/0x268)
r6:c342410c r5:00000001 r4:c03ec200
[<c006ffb8>] (__do_page_cache_readahead+0x0/0x268) from [<c0070474>] (ondemand_readahead+0xf0/0x168)
[<c0070384>] (ondemand_readahead+0x0/0x168) from [<c0070590>] (page_cache_async_readahead+0xa4/0xac)
[<c00704ec>] (page_cache_async_readahead+0x0/0xac) from [<c00695b8>] (generic_file_aio_read+0x264/0x700)
r6:00000000 r5:c03ec300 r4:00000000
[<c0069358>] (generic_file_aio_read+0x4/0x700) from [<c008ec8c>] (do_sync_read+0xcc/0x11c)
[<c008ebc0>] (do_sync_read+0x0/0x11c) from [<c008f5ec>] (vfs_read+0xb4/0x14c)
r7:00004000 r6:c3c15ef8 r5:c3c04000 r4:c3976de0
[<c008f538>] (vfs_read+0x0/0x14c) from [<bf024bac>] (do_scsi_command+0xbcc/0xe2c [g_file_storage])
r7:c39ac558 r6:c39ac4e0 r5:00000000 r4:00000000
[<bf023fe0>] (do_scsi_command+0x0/0xe2c [g_file_storage]) from [<bf0256cc>] (fsg_main_thread+0x818/0xb70 [g_file_storage])
[<bf024eb4>] (fsg_main_thread+0x0/0xb70 [g_file_storage]) from [<c0052be0>] (kthread+0x50/0x7c)
[<c0052b90>] (kthread+0x0/0x7c) from [<c0041328>] (do_exit+0x0/0x7a0)
r5:00000000 r4:00000000
Code: e35c0000 e1a0c003 0a00000a e2411024 (e5913044)
—[ end trace 5099589d7a39284e ]—

转载请注明:在路上 » [tmp]kerne oops when test USB

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
80 queries in 0.168 seconds, using 22.03MB memory