![](https://csdnimg.cn/release/download_crawler_static/12707456/bg1.jpg)
Android8.1 USB camera 支持
V 0.1
系统:Android 8.1
1. kernel
需要打开
uvc
模块驱动:
.config - Linux/arm 4.9.56 Kernel Configuration
> Device Drivers
> Multimedia support
> Media USB Adapters
<M>USB-Video-Class(UVC)
[*] UVC input events device support
其他的 V4l2 的驱动默认已经打开,假如没打开的需要打开。
2
,
sysconfig
配置
/
或者在
DTS
里配置:
[usbc1]
usbc1_used = 1
usb_drv_vbus_gpio = port:PH6<0><1><default><default>
usb_host_init_state = 1
usb_wakeup_suspend = 0
若使用 usb0 的话,需要设置 port 口为 host 或者 OTG 模式。
3
,
Android
层配置:
系统启动时需要加载如下 ko 模块驱动:
insmod /vendor/modules/videobuf2-vmalloc.ko
insmod /vendor/modules/videobuf2-core.ko
insmod /vendor/modules/videobuf2-memops.ko
insmod /vendor/modules/videobuf2-dma-contig.ko
insmod /vendor/modules/videobuf2-vmalloc.ko
insmod /vendor/modules/videobuf2-v4l2.ko
insmod /vendor/modules/uvcvideo.ko
评论2
最新资源