主题 : USB文件传输出现这个错误,请高手帮我看看 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 34579
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
综合积分: 36 分
注册时间: 2010-12-17
最后登录: 2013-05-28
楼主  发表于: 2012-07-19 11:27

 USB文件传输出现这个错误,请高手帮我看看

我现在正在做一个在WindowsPC上通过USB口向我的2440板传文件,类似于升级,特别小的文件(20k左右)可以正常传输到我的板上,比较大的(300k左右)也可以,就是那种40k左右的文件传输发生错误,板上的文件显示只有32768字节。
Unable to handle kernel paging request at virtual addr
ess bf005000
pgd = c0004000
[bf005000] *pgd=33a51011, *pte=00000000, *ppte=00000000
Internal error: Oops: 807 [#1]
Modules linked in: g_zero
CPU: 0    Not tainted  (2.6.29.4-stanic #427)
PC is at memcpy+0x30/0x29c
LR is at 0x1c49642a
pc : [<c0115730>]    lr : [<1c49642a>]    psr: 20000093
sp : c02d7df4  ip : ef348c14  fp : c02d7e24
r10: 000001c8  r9 : 00000002  r8 : 92346147
r7 : 069fa39f  r6 : 5e7a75cd  r5 : 037ff06c  r4 : e10f5b1e
r3 : 972ef0ad  r2 : 00002f6e  r1 : c3ae06c0  r0 : bf004ffc
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: c000717f  Table: 33b04000  DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc02d6268)
Stack: (0xc02d7df4 to 0xc02d8000)
7de0:                                              c3907a88 00000000 c3907840
7e00: c02f3130 bf00495c c3a44e00 bf000b64 c3907a88 c02f3148 c02d7e4c c02d7e28
7e20: bf000c78 bf000ac0 00000001 77000000 c3907a80 c02f3130 00000000 00000002
7e40: c02d7e6c c02d7e50 c01a9904 bf000bb8 0000000e 0000000e c3907a80 00000002
7e60: c02d7e9c c02d7e70 c01aa798 c01a98bc 00000001 00000002 c3907a80 c02f30c0
7e80: c032b238 00000001 c032b238 00000093 c02d7edc c02d7ea0 c01aada0 c01aa6d4
7ea0: 00000000 00000004 00825b40 00000000 00000001 c38ad4c0 00000000 00000000
7ec0: 00000029 300197ec 41129200 300197b8 c02d7efc c02d7ee0 c0069594 c01aab30
7ee0: c02dfc1c c38ad4c0 00000029 c031af78 c02d7f1c c02d7f00 c006a8ac c0069560
7f00: 00000029 c0325188 00000000 c02f72e4 c02d7f3c c02d7f20 c0030044 c006a818
7f20: ffffffff f4000000 02000000 c02f72e4 c02d7f94 c02d7f40 c0030a44 c0030010
7f40: f4100000 00000032 f4100000 60000013 c0031edc c02d6000 c0031edc c02f72e4
7f60: 300197ec 41129200 300197b8 c02d7f94 c02d7f98 c02d7f88 c00324f8 c0031f3c
7f80: 60000013 ffffffff c02d7fb4 c02d7f98 c00324f8 c0031eec c031b30c c02f72a0
7fa0: c001a000 c02da438 c02d7fc4 c02d7fb8 c021c36c c00324bc c02d7ff4 c02d7fc8
7fc0: c0008918 c021c320 c0008470 00000000 00000000 c001ad38 00000000 c0007175
7fe0: c02f73bc c001ad34 00000000 c02d7ff8 30008034 c0008740 00000000 00000000
Backtrace:
[<bf000ab0>] (check_read_data+0x0/0xf8 [g_zero]) from [<bf000c78>] (source_sink_
complete+0xd0/0x120 [g_zero])
r5:c02f3148 r4:c3907a88
[<bf000ba8>] (source_sink_complete+0x0/0x120 [g_zero]) from [<c01a9904>] (s3c241
0_udc_done+0x58/0x6c)
r7:00000002 r6:00000000 r5:c02f3130 r4:c3907a80
[<c01a98ac>] (s3c2410_udc_done+0x0/0x6c) from [<c01aa798>] (s3c2410_udc_read_fif
o+0xd4/0x20c)
r7:00000002 r6:c3907a80 r5:0000000e r4:0000000e
[<c01aa6c4>] (s3c2410_udc_read_fifo+0x0/0x20c) from [<c01aada0>] (s3c2410_udc_ir
q+0x280/0x7b4)
[<c01aab20>] (s3c2410_udc_irq+0x0/0x7b4) from [<c0069594>] (handle_IRQ_event+0x4
4/0x80)
[<c0069550>] (handle_IRQ_event+0x0/0x80) from [<c006a8ac>] (handle_edge_irq+0xa4
/0x160)
r7:c031af78 r6:00000029 r5:c38ad4c0 r4:c02dfc1c
[<c006a808>] (handle_edge_irq+0x0/0x160) from [<c0030044>] (__exception_text_sta
rt+0x44/0x70)
r7:c02f72e4 r6:00000000 r5:c0325188 r4:00000029
[<c0030000>] (__exception_text_start+0x0/0x70) from [<c0030a44>] (__irq_svc+0x24
/0xa0)
Exception stack(0xc02d7f40 to 0xc02d7f88)
7f40: f4100000 00000032 f4100000 60000013 c0031edc c02d6000 c0031edc c02f72e4
7f60: 300197ec 41129200 300197b8 c02d7f94 c02d7f98 c02d7f88 c00324f8 c0031f3c
7f80: 60000013 ffffffff
r7:c02f72e4 r6:02000000 r5:f4000000 r4:ffffffff
[<c0031edc>] (default_idle+0x0/0xac) from [<c00324f8>] (cpu_idle+0x4c/0x68)
[<c00324ac>] (cpu_idle+0x0/0x68) from [<c021c36c>] (rest_init+0x5c/0x70)
r7:c02da438 r6:c001a000 r5:c02f72a0 r4:c031b30c
[<c021c310>] (rest_init+0x0/0x70) from [<c0008918>] (start_kernel+0x1e8/0x248)
[<c0008730>] (start_kernel+0x0/0x248) from [<30008034>] (0x30008034)
r6:c001ad34 r5:c02f73bc r4:c0007175
Code: e92d01e0 ba000003 e8b151f8 e2522020 (e8a051f8)
Code: e92d01e0 ba000003 e8b151f8 e2522020 (e8a051f8)

请高手帮我看看为什么?我的邮箱modelsim_tyc@163.com
描述:驱动文件
附件: 驱动文件.rar (65 K) 下载次数:6
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-07-19 13:10
PC is at memcpy+0x30/0x29c
...
Backtrace:
[<bf000ab0>] (check_read_data+0x0/0xf8 [g_zero]) from [<bf000c78>] (source_sink_
complete+0xd0/0x120 [g_zero])

看上去问题是出在check_read_data()里调用memcpy()的地方。指针跑飞了?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."