免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2325 | 回复: 3
打印 上一主题 下一主题

USB device驱动加载不成功 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-07-13 11:23 |只看该作者 |倒序浏览
cpu:s3c2416
kernel:2.6.21
在加载USB DEVICE驱动g_file_storage.ko出错,消息如下:
[root@urbetter /driver_test]# insmod g_file_storage.ko file=fat32.img stall=0 re
movable=1
usb_gadget_register_driver: g_file_storage
s3c_alloc_request: c0448ecc
s3c_alloc_buffer (c0448ecc, 256, 20
s3c_alloc_buffer (c0448f3c, 16384, 20
s3c_alloc_buffer (c0448f3c, 16384, 20
g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /driver_test/fat32.img
Registered S3C gadget driver 'g_file_storage'
udc_enable: c0448d60
Unable to handle kernel paging request at virtual address 49800014
pgd = c390c000
[49800014] *pgd=00000000
Internal error: Oops: 805 [#1]
Modules linked in: g_file_storage
CPU: 0
PC is at reconfig_usbd+0x14/0x60
LR is at usb_gadget_register_driver+0x1c8/0x22c
pc : [<c01d774c>]    lr : [<c01d90d0>]    Not tainted
sp : c38c5ea8  ip : c38c5eb8  fp : c38c5eb4
r10: c481e000  r9 : 00000026  r8 : 00000000
r7 : c0448d80  r6 : c0448d60  r5 : f0200000  r4 : f0000000
r3 : 00000004  r2 : 49800000  r1 : 00000001  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 5317F
Table: 3390C000  DAC: 00000015
Process insmod (pid: 845, stack limit = 0xc38c425
Stack: (0xc38c5ea8 to 0xc38c6000)
5ea0:                   c38c5edc c38c5eb8 c01d90d0 c01d7748 c38c5ee4 c3917600
5ec0: c3917610 bf005d00 c39179f0 00000026 c38c5ef4 c38c5ee0 bf007064 c01d8f18
5ee0: c39179c4 c3917800 c38c5fa4 c38c5ef8 c0072b48 bf007010 00000000 c38c5f08
5f00: c00ab770 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5f20: 00000000 00000000 00000000 00000000 00000000 0000000a c4853a38 c3fe01e0
5f40: 00000000 c4844978 c4844608 00000009 00000000 0000010b 0000010b c484428e
5f60: c48449c8 bf005d0c c48449a0 00000024 00000000 00000000 c38d3da0 4001df68
5f80: 000b50d8 bed9bd34 00000080 c003ae28 c38c4000 00000000 00000000 c38c5fa8
5fa0: c003ac80 c0071920 4001df68 000b50d8 40239008 000363b8 000b50d8 00000000
5fc0: 4001df68 000b50d8 bed9bd34 00000080 bed9bd24 bed9bd28 00000001 00000000
5fe0: 00000069 bed9b9f4 0001778c 401d3c24 60000010 40239008 00000000 00000000
Backtrace:
[<c01d7738>] (reconfig_usbd+0x0/0x60) from [<c01d90d0>] (usb_gadget_register_driver+0x1c8/0x22c)
[<c01d8f08>] (usb_gadget_register_driver+0x0/0x22c) from [<bf007064>] (fsg_init+0x64/0x98 [g_file_storage])
r8 = 00000026  r7 = C39179F0  r6 = BF005D00  r5 = C3917610
r4 = C3917600
[<bf007000>] (fsg_init+0x0/0x98 [g_file_storage]) from [<c0072b48>] (sys_init_module+0x1238/0x12f0)
r5 = C3917800  r4 = C39179C4
[<c0071910>] (sys_init_module+0x0/0x12f0) from [<c003ac80>] (ret_fast_syscall+0x0/0x2c)
Code: e92dd800 e24cb004 e59f2044 e3a03004 (e5823014)
Segmentation fault
请问这个怎么回事,坐等高手指教。

论坛徽章:
0
2 [报告]
发表于 2013-07-15 16:59 |只看该作者
通过objdump反汇编定位到错误

论坛徽章:
0
3 [报告]
发表于 2013-07-17 20:39 |只看该作者
俺是路过看看滴!

论坛徽章:
3
卯兔
日期:2013-08-26 22:14:57未羊
日期:2013-09-08 19:16:05未羊
日期:2014-10-23 10:34:12
4 [报告]
发表于 2013-07-21 23:28 |只看该作者
Unable to handle kernel paging request at virtual address 49800014

这个地址是用户态地址,LZ这个错误的原因应该是在内核直接操作用户态内存地址,而操作时该内存地址所在page刚好处于缺页状态,导致内核异常挂死
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP