中星微厂说他们的USB摄像头没有问题,有问题要我问飞凌公司
中星微厂说他们的USB摄像头没有问题,有问题要我问飞凌公司新买的OK6410板,使用中星微 ZC301P USB linux 摄像头,出现段错误
跟踪代码,一执行fd = open ("/dev/video2", , O_RDWR| O_NONBLOCK, 0);就出现如下段错误
# ./test_usb_camera2
******************************XX
v4l2_openid=2
Unable to handle kernel NULL pointer dereference at virtual address 00000060
pgd = cbd7c000
*pgd=5bd7b831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#3]
Modules linked in:
CPU: 0 Tainted: G D W (3.0.1 #439)
PC is at video_devdata+0x18/0x30
LR is at dev_open+0x28/0x194
pc : [<c02f9ce0>] lr : [<c030a2c0>] psr: 60000013
sp : cbd67d30ip : cbd67d40fp : cbd67d3c
r10: c0735088r9 : 00000024r8 : cc1729c0
r7 : cbd20008r6 : cc1729c0r5 : cbc57c80r4 : cbd20000
r3 : 00000003r2 : c07b23acr1 : 00000000r0 : cc1729c0
Flags: nZCvIRQs onFIQs onMode SVC_32ISA ARMSegment user
Control: 00c5387dTable: 5bd7c008DAC: 00000015
Process test_usb_camera (pid: 141, stack limit = 0xcbd66268)
Stack: (0xcbd67d30 to 0xcbd68000)
7d20: cbd67d6c cbd67d40 c030a2c0 c02f9cd4
7d40: c030a298 cbd20000 cbc57c80 cc1729c0 cbd20008 cbc57c80 00000024 cc171880
7d60: cbd67d8c cbd67d70 c02fa060 c030a2a4 00000000 00000000 cbc54240 cc1729c0
7d80: cbd67dbc cbd67d90 c00ed5b0 c02f9fbc cbd67e2c cbd67ed8 cbd67ed0 cbc57c80
7da0: 00000000 cc1729c0 c00ed490 cc171880 cbd67df4 cbd67dc0 c00e8d14 c00ed49c
7dc0: cc07bb80 cc40fb40 cc1729c0 cbd67ed0 cbc57c80 00000000 cbc57d00 00000000
7de0: 00000024 00000000 cbd67e1c cbd67df8 c00e8f50 c00e8bb4 cbc57d00 cbd67e8c
7e00: cc1729c0 cbd67ed0 00000000 cbd67e8c cbd67e64 cbd67e20 c00f6488 c00e8ef4
7e20: cbcd9005 c07a1d20 cbd67e64 cc40fb40 cc07bb80 cc1729c0 cbd67e64 cbd67ed0
7e40: ffffff9c cbd67f60 cbd66000 cbcd9000 cbd66000 cbd67e8c cbd67ec4 cbd67e68
7e60: c00f792c c00f630c cbd67e94 60000013 cc705fe0 0000000a cc6c9c00 4008400a
7e80: cbd66000 0000000a cbd67eb4 cc40fb40 cc171880 00000000 00000000 00000001
7ea0: cbd67f60 cbd67ed0 ffffff9c cbcd9000 cbd66000 ffffff9c cbd67f54 cbd67ec8
7ec0: c00f7d04 c00f7874 00000041 c007363c cc40fb40 cc171880 d9d3cea0 00000006
7ee0: cbcd9005 00000000 cc077c00 cc1729c0 00000101 00000004 00000000 00000000
7f00: 00000000 00000000 00000003 cbd0d6c0 cbd0d6c8 cbd0d6c4 00000000 cbd66000
7f20: cbd67f54 00000001 00000000 00000000 00000001 00000001 00000000 00000000
7f40: 00000003 cbcd9000 cbd67f94 cbd67f58 c00e8a78 c00f7cd8 40084000 0000000a
7f60: 00000000 00000000 00000024 00000100 0000b9d0 00000000 0000b988 00000005
7f80: c0034ce8 00000000 cbd67fa4 cbd67f98 c00e8b84 c00e8988 00000000 cbd67fa8
7fa0: c0034b40 c00e8b6c 0000b9d0 00000000 000695e8 00000000 0008811c 00000001
7fc0: 0000b9d0 00000000 0000b988 00000005 00000000 006eff80 006eff80 00000000
7fe0: 00000000 beb95aa8 0000a35c 0001aa6c 60000010 000695e8 5fffe821 5fffec21
[<c02f9ce0>] (video_devdata+0x18/0x30) from [<c030a2c0>] (dev_open+0x28/0x194)
[<c030a2c0>] (dev_open+0x28/0x194) from [<c02fa060>] (v4l2_open+0xb0/0xd8)
[<c02fa060>] (v4l2_open+0xb0/0xd8) from [<c00ed5b0>] (chrdev_open+0x120/0x1a4)
[<c00ed5b0>] (chrdev_open+0x120/0x1a4) from [<c00e8d14>] (__dentry_open+0x16c/0x
2c4)
[<c00e8d14>] (__dentry_open+0x16c/0x2c4) from [<c00e8f50>] (nameidata_to_filp+0x
68/0x70)
[<c00e8f50>] (nameidata_to_filp+0x68/0x70) from [<c00f6488>] (do_last+0x188/0x6b
0)
[<c00f6488>] (do_last+0x188/0x6b0) from [<c00f792c>] (path_openat+0xc4/0x3a4)
[<c00f792c>] (path_openat+0xc4/0x3a4) from [<c00f7d04>] (do_filp_open+0x38/0x8c)
[<c00f7d04>] (do_filp_open+0x38/0x8c) from [<c00e8a78>] (do_sys_open+0xfc/0x1d0)
[<c00e8a78>] (do_sys_open+0xfc/0x1d0) from [<c00e8b84>] (sys_open+0x24/0x28)
[<c00e8b84>] (sys_open+0x24/0x28) from [<c0034b40>] (ret_fast_syscall+0x0/0x30)
Code: e24cb004 e590200c e5921020 e59f2010 (e5913060)
---[ end trace da227214a82491bb ]---
Segmentation fault
#
床是不会歪的,能不能睡好看床铺{:soso_e151:} 楼主你的驱动是不是正常,还有就是测试程序你使用的不对啊,飞凌有新的usb摄像头的测试程序,楼主看看最新的测试程序你能不能用,如果你没有的话,可以从论坛上发布最新版的光盘资料里面有的 我下载的是最新的,然后用里面的测试程序就报断错误。我在网上有个网友发了一个测试程序给我,也是段错误。2份代码,错误原因一样,都是open的时候就报段错误。
再具体一些:1)我用你们飞凌的测试程序,报断错误;2)我找到你们最新的测试程序源代码,编译后,也是段错误。3)有个网友发了一个在他那里OK的测试程序给我,也是段错误。 luvcview 你用的是这个测试软件吗?看过他的使用说明吗?
页:
[1]