• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 摄像头问题请教!! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
楼主  发表于: 2013-01-11 20:56

 摄像头问题请教!!

   想问下,桌面Linux能够驱动的摄像头,移植到板子上(6410)是不是都可以驱动。???
我这里使用的摄像头是松翰的,usb摄像头是USB\VID_0C45&PID_6340,桌面Linux完全可以,但是移植到板子上不可以,我看了下桌面Linux使用的是UVC驱动,我板子上也使用的是UVC驱动,但是不可以!!!有人遇到啊??
    诚恳版主帮我解答!!!谢谢!!!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-01-11 21:13

 回 楼主(wdunfeng) 的帖子

能否把你桌面Linux上插入摄像头之后的kernel log用dmesg命令打印出来?
"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."
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
2楼  发表于: 2013-01-11 21:29
图片:
发附件里了 之前的截图
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-01-12 09:28

 回 2楼(wdunfeng) 的帖子

看起来用的是Sonixj的驱动,但我查了一下tiny6410 2.6.38内核里的drivers\media\video\gspca\sonixj.c的device_table[]数组,没有发现VID 0C45和PID6340的组合。也许你能查一下你的桌面Linux所用的内核对应的源代码里的drivers\media\video\gspca\sonixj.c里是否有针对这个设备的支持
"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."
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
4楼  发表于: 2013-01-12 13:48
版主,您好,我的桌面环境是Fedora14  linux2.6.35.6,里面也没有对这个设备的支持。但是看上面的提示信息好像是UVC0.1.0驱动起来的吧??
不知道理解的对不对?
[ 此帖被wdunfeng在2013-01-12 13:59重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2013-01-12 15:14
我想是的。Fedora 14的2.6.35.6内核是经过修改的,和kernel.org上的不同。
"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."
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
6楼  发表于: 2013-01-13 18:40
版主,能加你下QQ啊?板子上用usb摄像头还是有不少问题,麻烦!!!谢谢!!
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
7楼  发表于: 2013-01-13 19:47
罗技C270插入板上6410上,分别运行servfox和luvcview,出现如下错误!!!!
[root@wonder /]#usb 1-1.1: USB disconnect, device number 4
usb 1-1.1: new full-speed USB device number 5 using s3c2410-ohci
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
input: UVC Camera (046d:0825) as /devices/platform/s3c2410-ohci/usb1/1-1/1-1.1/1-1.1:1.0/input/input2

[root@wonder /]#servfox -d /dev/video0 -g -s 320x240 -w 7070
servfox version: 1.1.3 date: 11:12:2005 (C) mxhaard@magic.fr
Couldn't get videodevice capability


[root@wonder /]#luvcview -d /dev/video0  -f jpg -s 320x240
luvcview version v0.1
size width: 320 height: 240
video /dev/video0
Some problem with the ioctl SET_VS_INFO!!!
Segmentation fault
[root@wonder /]#

怎么解决啊 ?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2013-01-13 23:17

 回 7楼(wdunfeng) 的帖子

我想你可能需要用"strace"工具追踪一下这两个错误信息是由哪个系统调用的返回结果造成的,然后才能定位问题。我不用QQ,讨论问题的话,我建议你还是发到论坛上,这样可以有更多人帮助你。谢谢!
"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."
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
9楼  发表于: 2013-01-15 08:28
好的 谢谢斑竹  抽时间我跟踪一下
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go