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

来源:互联网 发布:微电影剪辑软件 编辑:程序博客网 时间:2024/04/30 18:21

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)


原创粉丝点击