环境
我使用Buildroot 'imx6-sabresd_qt5_defconfig',并添加了'openssh','gdb',一些'gstreamer‘来播放视频。
我的董事会是i.MX6Q。我将ov5640作为模块添加,并使用此命令安装ov5640模块
insmod /lib/modules/4.14.14/kernel/drivers/media/i2c/ov5640.ko
Test - Qt相机应用程序
然后运行Qt相机演示应用程序,它显示此错误
Unable to open the camera "" for read to query the parameter info: "No such file or directory"
CameraBin error: "GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure."
另外,我添加了这段代码来显示可用的摄像头,它返回0。
qDebug()<<QCameraInfo::availableCameras().count();
错误提示我没有可用的摄像头。然后我发现我没有这个文件:
driver/media/video/mxc
问题
在buildroot中哪里可以找到"MXC Video For Linux Camera“?是在menuconfig中还是在linux-menuconfig中,或者我必须移植驱动程序?谢谢。
发布于 2018-08-15 00:15:14
我将尝试提供以下帮助:
获取当前内核配置:
cd /usr/src/"kernel version"
sudo zcat /proc/config.gz > /usr/src/"kernel version"/current.config
sudo make menuconfig
加载current.config
>>>>drivers
>>>>>>>>>>>>multimedia
>>>>>>>>>>>>>>>>>>>>>>>>>>select all that apply here and under
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>v4l
许多摄像头模块应该列出,包括sonyimx和0V5640...
另存为.config
sudo生成zimage并替换....
https://stackoverflow.com/questions/49401131
复制相似问题