移植内核支持usb摄像头(钰创1e4e/0100)

1添加drivers/media/video/uvc,(可以从网上下载linux-uvc_trunk_arne.tar.gz,然后修改,或者参见http://lwn.net/Articles/287912/及http://mxhaard.free.fr/download.html),内涵

Kconfig(自己添加)   uvc_compat.h  uvc_driver.c  uvc_v4l2.c   uvcvideo.h

Makefile(自己添加)  uvc_ctrl.c    uvc_queue.c   uvc_video.c

其中Makefile内容为:

uvcvideo-objs  := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o
obj-$(CONFIG_USB_VIDEO_CLASS) += uvcvideo.o

其中Kconfig内容为:

config USB_VIDEO_CLASS
        tristate "USB Video Class (UVC)"
        ---help---
          Support for the USB Video Class (UVC).  Currently only video
          input devices, such as webcams, are supported.

          For more information see: <http://linux-uvc.berlios.de/>

config USB_VIDEO_CLASS_INPUT_EVDEV
        bool "UVC input events device support"
        default y
        depends on USB_VIDEO_CLASS && INPUT
        ---help---
          This option makes USB Video Class devices register an input device
          to report button events.

          If you are in doubt, say Y.

2.在video的Makefile中加入

obj-$(CONFIG_USB_VIDEO_CLASS)   += uvc/

在video的Kconfig中加入

source "drivers/media/video/uvc/Kconfig"





3.编译时选择device driver->usb surport等相关选项(用/搜索UVC)


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值