USB摄像头段错误,请技术支持
摄像头可以识别,但一调用test_usb_camera就段错误#
# 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
# cd /usr/bin
# ./test_usb_camera
Unable to handle kernel NULL pointer dereference at virtual address 00000060
pgd = cbd40000
*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 : cbd65d30ip : cbd65d40fp : cbd65d3c
r10: c0735088r9 : 00000026r8 : cc16e3a8
r7 : cbd23008r6 : cc16e3a8r5 : cbc9ab80r4 : cbd23000
r3 : 00000003r2 : c07b23acr1 : 00000000r0 : cc16e3a8
Flags: nZCvIRQs onFIQs onMode SVC_32ISA ARMSegment user
Control: 00c5387dTable: 5bd40008DAC: 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
#
我换了2个中星微的摄像头,问题依旧,所以我感觉应该不是摄像头的问题。 奇怪的是,我发现cat一下,也报段错误
# cat /dev/video2
Unable to handle kernel NULL pointer dereference at virtual address 00000060
pgd = cbd78000
*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 : cbd25d30ip : cbd25d40fp : cbd25d3c
r10: c0735088r9 : 00000024r8 : cc0f3618
r7 : cbd2b008r6 : cc0f3618r5 : cbced780r4 : cbd2b000
r3 : 00000003r2 : c07b23acr1 : 00000000r0 : cc0f3618
Flags: nZCvIRQs onFIQs onMode SVC_32ISA ARMSegment user
Control: 00c5387dTable: 5bd78008DAC: 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
这个问题就是没人技术支持呢 可能是不支持楼主手中的usb摄像头型号
目前能支持一般的uvc摄像头 飞凌-fatfish 发表于 2013-2-8 14:12
可能是不支持楼主手中的usb摄像头型号
目前能支持一般的uvc摄像头
不是这个原因,是3.0.1内核有bug,不知道你们是怎么调的,就把3.0.1源码给放出来了 您好,usb摄像头您可以使用luvcview测试程序来进行测试,手册上有相关的说明,光盘里边有该程序的源码。
页:
[1]