将USB免驱摄像头插入到linux开发板上的时候/dev/video没有添加新设备,只存在原有的/dev/video0,证明摄像头没有被检测到
网上查找到的 找到Device Drivers->Multimedia support, Video for Linux和Video
capture adaptes 在我的内核中找不到这两个选项
一般是内核没有编译v4l2框架和UVC的原因
首先进入内核文件打开图像化配置界面
make menuconfig
使用 /
搜索UVC
和 v4l2
分别去上面显示的路径中打开对应的内核驱动
切记不要打开多余的东西
!!!
如果出现了类似下面的错误,可能就是打开了一些不能使用的
或者是一些前置支持项没有打开
There are no results for drivers/built-in.o:
在函数‘start_preview’中: 😦.text+0x1efa58):对‘xxx’未定义的引用
Makefile:933: recipe for target ‘vmlinux’ failed make: *** [vmlinux] Error 1
There are no results for drivers/built-in.o:
在函数‘start_preview’中: :(.text+0x1efa58):对‘foreground_sdc_select’未定义的引用
:(.text+0x1efa70):对‘bg_overlay_sdc_select’未定义的引用 drivers/built-in.o:
在函数‘stop_preview’中: :(.text+0x1efbe4):对‘foreground_sdc_deselect’未定义的引用
:(.text+0x1efbf0):对‘bg_overlay_sdc_deselect’未定义的引用
Makefile:933: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1
比如我这个就是‘foreground_sdc_select’定义未引用
使用 /
搜索sdc
找到相关路径,关闭掉他的内核编译
重新编译就好
make
或者搜索支持项,并将其打开