USB摄像头驱动问题:Init v4L2 failed !! exit fatal

handersonhlj 2011-01-13 04:36:26
新买了一个摄像头,是SGS320FL + OV7670的。将它连接到linux-2.6.30.4内核的板子上,驱动不了;但是我之前的ZC301能够驱动起来。是不是我的驱动有问题呢?我只是将OV7670的驱动加进去了,但是摄像头的主控芯片驱动没找到。错误如下:
Unable to set format: Invalid argument
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
MJPG-streamer [630]: init_VideoIn failed

[root@SKY2440 /]# hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
usb 1-1: USB disconnect, address 5
usb 1-1: new full speed USB device using s3c2410-ohci and address 6
usb 1-1: New USB device found, idVendor=1c4f, idProduct=3002
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: USB 2.0 CAMERA
usb 1-1: Manufacturer: USB1.1Camera
usb 1-1: SerialNumber: D01-F05-OV7670EA
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB 2.0 CAMERA (1c4f:3002)
input: USB 2.0 CAMERA as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/input/input4

[root@SKY2440 /]# uvc_stream
Using V4L2 device.....: /dev/video0
Resolution............: 640 x 480
frames per second.....: 5
TCP port..............: 8080
motor control TCP port: 8081
Unable to set format: 22.
Init v4L2 failed !! exit fatal
init_VideoIn failed


请求各位帮忙看一下。
...全文
3199 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wondee 2011-03-28
  • 打赏
  • 举报
回复
你的摄像头是基于UVC的,不是gspca的,我也只知道这些了。
李迟 2011-01-13
  • 打赏
  • 举报
回复
Unable to set format: 22.
格式不对。
可以查询摄像头支持的格式,再进行设置。格式如YUYV、MJPEG,等等。更详细的可以参考V4L2的手册。
handersonhlj 2011-01-13
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 feiyinzilgd 的回复:]
http://blog.csdn.net/feiyinzilgd/archive/2010/02/09/5303078.aspxhttp://blog.csdn.net/feiyinzilgd/archive/2010/02/09/5303078.aspx
[/Quote]
我在内核里将gspca里的驱动,都加上了,编译后,还是不行。

[root@SKY2440 /]# usb 1-1: USB disconnect, address 6
usb 1-1: new full speed USB device using s3c2410-ohci and address 7
usb 1-1: New USB device found, idVendor=1c4f, idProduct=3002
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: USB 2.0 CAMERA
usb 1-1: Manufacturer: USB1.1Camera
usb 1-1: SerialNumber: D01-F05-OV7670EA
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB 2.0 CAMERA (1c4f:3002)
input: USB 2.0 CAMERA as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/input/input5

[root@SKY2440 /]# ls -l /dev/video0
crw-rw---- 1 root root 81, 0 Jan 1 02:11 /dev/video0
[root@SKY2440 /]# uvc_stream
Using V4L2 device.....: /dev/video0
Resolution............: 640 x 480
frames per second.....: 5
TCP port..............: 8080
motor control TCP port: 8081
Unable to set format: 22.
Init v4L2 failed !! exit fatal
init_VideoIn failed
谭海燕 2011-01-13
  • 打赏
  • 举报
回复
http://blog.csdn.net/feiyinzilgd/archive/2010/02/09/5303078.aspxhttp://blog.csdn.net/feiyinzilgd/archive/2010/02/09/5303078.aspx

4,465

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧