嵌入式爱好者

查看: 7414|回复: 6

USB摄像头段错误,请技术支持

[复制链接]

15

主题

29

帖子

53

积分

扫一扫,手机访问本帖
发表于 2013-2-4 20:46:37 | 显示全部楼层 |阅读模式
摄像头可以识别,但一调用test_usb_camera就段错误
[root@FORLINX6410]#
[root@FORLINX6410]# usb 1-1: new full speed USB device number 2 using s3c2410-oh
ci
usb 1-1: New USB device found, idVendor=0ac8, idProduct=301b
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: PC Camera
usb 1-1: Manufacturer: Vimicro Corp.
gspca: probing 0ac8:301b
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe sensor -> 0011
zc3xx: Find Sensor HV7131R
input: zc3xx as /devices/platform/s3c2410-ohci/usb1/1-1/input/input3
gspca: video2 created
[root@FORLINX6410]# cd /usr/bin
[root@FORLINX6410]# ./test_usb_camera
Unable to handle kernel NULL pointer dereference at virtual address 00000060
pgd = cbd40000
[00000060] *pgd=5bd4a831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in:
CPU: 0    Tainted: G        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 : cbd65d30  ip : cbd65d40  fp : cbd65d3c
r10: c0735088  r9 : 00000026  r8 : cc16e3a8
r7 : cbd23008  r6 : cc16e3a8  r5 : cbc9ab80  r4 : cbd23000
r3 : 00000003  r2 : c07b23ac  r1 : 00000000  r0 : cc16e3a8
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 00c5387d  Table: 5bd40008  DAC: 00000015
Process test_usb_camera (pid: 116, stack limit = 0xcbd64268)
Stack: (0xcbd65d30 to 0xcbd66000)
5d20:                                     cbd65d6c cbd65d40 c030a2c0 c02f9cd4
5d40: c030a298 cbd23000 cbc9ab80 cc16e3a8 cbd23008 cbc9ab80 00000026 cc16cc80
5d60: cbd65d8c cbd65d70 c02fa060 c030a2a4 00000000 00000000 cbc63780 cc16e3a8
5d80: cbd65dbc cbd65d90 c00ed5b0 c02f9fbc cbd65e2c 00000000 00000000 cbc9ab80
5da0: 00000000 cc16e3a8 c00ed490 cc16cc80 cbd65df4 cbd65dc0 c00e8d14 c00ed49c
5dc0: cc07bb80 cc40fb40 cc16e3a8 cbd65ed0 cbc9ab80 00000000 cbc9aa80 00000802
5de0: 00000026 00000000 cbd65e1c cbd65df8 c00e8f50 c00e8bb4 cbc9aa80 cbd65e8c
5e00: cc16e3a8 cbd65ed0 00000000 cbd65e8c cbd65e64 cbd65e20 c00f6488 c00e8ef4
5e20: cbd20005 c07a1d20 cbd65e64 cc40fb40 cc07bb80 cc16e3a8 cbd65e64 cbd65ed0
5e40: ffffff9c cbd65f60 cbd64000 cbd20000 cbd64000 cbd65e8c cbd65ec4 cbd65e68
5e60: c00f792c c00f630c cbd65e94 00000000 32a9f880 00000000 6e0e4883 bec35b60
5e80: 00000068 00000000 00000000 cc40fb40 cc16cc80 00000000 00000000 00000001
5ea0: cbd65f60 cbd65ed0 ffffff9c cbd20000 cbd64000 ffffff9c cbd65f54 cbd65ec8
5ec0: c00f7d04 c00f7874 00000041 00000000 cc40fb40 cc16cc80 d9d3cea0 00000006
5ee0: cbd20005 00000000 cc077b80 cc16e3a8 00000101 00000004 00000000 00000000
5f00: 00000000 00000000 00000004 cbd2d180 cbd2d188 cbd2d184 00000000 cbd64000
5f20: cbd65f54 00000803 00000000 00000000 00000001 00000001 00000802 00000000
5f40: 00000004 cbd20000 cbd65f94 cbd65f58 c00e8a78 c00f7cd8 00000000 00000000
5f60: 00000802 00000000 00000026 00000100 00000001 bec35e74 00067ecc 00000005
5f80: c0034ce8 00000000 cbd65fa4 cbd65f98 c00e8b84 c00e8988 00000000 cbd65fa8
5fa0: c0034b40 c00e8b6c 00000001 bec35e74 000681c8 00000802 00000000 00085c8c
5fc0: 00000001 bec35e74 00067ecc 00000005 bec35cfc 00000000 000874b8 0000000a
5fe0: 00067ed4 bec35bd0 000089b4 0001fe4c 40000010 000681c8 00000000 00000000
[<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 da227214a82491b9 ]---
Segmentation fault
[root@FORLINX6410]#
回复

使用道具 举报

15

主题

29

帖子

53

积分

 楼主| 发表于 2013-2-4 22:05:36 | 显示全部楼层
我换了2个中星微的摄像头,问题依旧,所以我感觉应该不是摄像头的问题。
该会员没有填写今日想说内容.
点评回复 支持 反对

使用道具 举报

15

主题

29

帖子

53

积分

 楼主| 发表于 2013-2-4 22:06:36 | 显示全部楼层
奇怪的是,我发现cat一下,也报段错误
[root@FORLINX6410]# cat /dev/video2
Unable to handle kernel NULL pointer dereference at virtual address 00000060
pgd = cbd78000
[00000060] *pgd=5bd46831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in:
CPU: 0    Tainted: G        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 : cbd25d30  ip : cbd25d40  fp : cbd25d3c
r10: c0735088  r9 : 00000024  r8 : cc0f3618
r7 : cbd2b008  r6 : cc0f3618  r5 : cbced780  r4 : cbd2b000
r3 : 00000003  r2 : c07b23ac  r1 : 00000000  r0 : cc0f3618
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 00c5387d  Table: 5bd78008  DAC: 00000015
Process cat (pid: 136, stack limit = 0xcbd24268)
Stack: (0xcbd25d30 to 0xcbd26000)
5d20:                                     cbd25d6c cbd25d40 c030a2c0 c02f9cd4
5d40: c030a298 cbd2b000 cbced780 cc0f3618 cbd2b008 cbced780 00000024 cc077b00
5d60: cbd25d8c cbd25d70 c02fa060 c030a2a4 00000000 00000000 cc712900 cc0f3618
5d80: cbd25dbc cbd25d90 c00ed5b0 c02f9fbc cbd25e2c 00000000 cbd25ed0 cbced780
5da0: 00000000 cc0f3618 c00ed490 cc077b00 cbd25df4 cbd25dc0 c00e8d14 c00ed49c
5dc0: cc07ae00 cc40fb40 cc0f3618 cbd25ed0 cbced780 00000000 cbced100 00020000
5de0: 00000024 00000000 cbd25e1c cbd25df8 c00e8f50 c00e8bb4 cbced100 cbd25e8c
5e00: cc0f3618 cbd25ed0 00000000 cbd25e8c cbd25e64 cbd25e20 c00f6488 c00e8ef4
5e20: cbd29005 c07a1d20 cbd25e64 cc40fb40 cc07ae00 cc0f3618 cbd25e64 cbd25ed0
5e40: ffffff9c cbd25f60 cbd24000 cbd29000 cbd24000 cbd25e8c cbd25ec4 cbd25e68
5e60: c00f792c c00f630c cbd25e94 4006f000 cbc5f000 cc079950 00000000 80000007
5e80: cbd0d240 00000200 cbc5f000 cc40fb40 cc077b00 00000000 00000000 00000001
5ea0: cbd25f60 cbd25ed0 ffffff9c cbd29000 cbd24000 ffffff9c cbd25f54 cbd25ec8
5ec0: c00f7d04 c00f7874 00000041 dccba23b cc40fb40 cc077b00 d9d3cea0 00000006
5ee0: cbd29005 00000000 cc077e00 cc0f3618 00000101 00000004 00000000 00000000
5f00: 00000000 00000000 00000003 cbd49240 cbd49248 cbd49244 00000000 cbd24000
5f20: cbd25f54 00020001 00000000 00000000 00000001 00000001 00020000 00000000
5f40: 00000003 cbd29000 cbd25f94 cbd25f58 c00e8a78 c00f7cd8 cbd25fa4 cbd25f68
5f60: 00020000 00000000 00000024 00000100 00000000 00000000 beaa8f6f 00000005
5f80: c0034ce8 00000000 cbd25fa4 cbd25f98 c00e8b84 c00e8988 00000000 cbd25fa8
5fa0: c0034b40 c00e8b6c 00000000 00000000 beaa8f6f 00020000 00000000 000030dc
5fc0: 00000000 00000000 beaa8f6f 00000005 00000000 00000000 40070000 00000002
5fe0: 4022f8e0 beaa8ca0 0000f808 4022f930 60000010 beaa8f6f 00000000 00000000
[<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 da227214a82491b9 ]---
Segmentation fault
[root@FORLINX6410]
该会员没有填写今日想说内容.
点评回复 支持 反对

使用道具 举报

15

主题

29

帖子

53

积分

 楼主| 发表于 2013-2-8 13:11:11 | 显示全部楼层
这个问题就是没人技术支持呢
该会员没有填写今日想说内容.
点评回复 支持 反对

使用道具 举报

29

主题

9048

帖子

5593

积分

发表于 2013-2-8 14:12:36 | 显示全部楼层
可能是不支持楼主手中的usb摄像头型号
目前能支持一般的uvc摄像头

点评

不是这个原因,是3.0.1内核有bug,不知道你们是怎么调的,就把3.0.1源码给放出来了  详情 回复 发表于 2016-5-3 14:33
该会员没有填写今日想说内容.
点评回复 支持 反对

使用道具 举报

1

主题

5

帖子

10

积分

发表于 2016-5-3 14:33:00 | 显示全部楼层
飞凌-fatfish 发表于 2013-2-8 14:12
可能是不支持楼主手中的usb摄像头型号
目前能支持一般的uvc摄像头

不是这个原因,是3.0.1内核有bug,不知道你们是怎么调的,就把3.0.1源码给放出来了
点评回复 支持 反对

使用道具 举报

153

主题

3910

帖子

4207

积分

AM5718通行证AM335x通行证i.MX6UL通行证i.MX RT通行证i.MX6Q通行证XX18通行证TCU通行证FCU1401通行证FCU1301通行证FCU11xx通行证

发表于 2016-5-3 15:19:16 | 显示全部楼层
您好,usb摄像头您可以使用luvcview测试程序来进行测试,手册上有相关的说明,光盘里边有该程序的源码。
技术支持电话:0312-3119192
技术支持邮箱:Linux@forlinx.com
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 19:28

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表