AnsweredAssumed Answered

IMX8摄像头video驱动问题

Question asked by ma qiang on Nov 6, 2019
Latest reply on Nov 12, 2019 by ma qiang

您好:

   在imx8mq上做摄像头移植,解码器选用的是ub940仿照ov5640改写的驱动程序,现在遇到以下问题,麻烦帮解决下:

1、menuconfig配置问题,参考手册上的配置如下,请问在8mq上是否需要配置选项(1)中配置,或者需要配置个别选项,选项(2)中的配置MXC_CAMERA_OV5640_V2是前摄像头,MXC_CAMERA_OV5640_MIPI_V2是后摄像头的意思么,还是有其他含义。

(1)For MX8 select > IMX8 Camera ISI/MIPI Features support
         (VIDEO_MX8_CAPTURE) > IMX8 Camera Controller
         (IMX8_CAPTURE_DRIVER) and Maxim OV5640_V3 driver support
         (MXC_CAMERA_OV5640_V3)
(2) For MX8M select > OmniVision ov5640 camera support
            (MXC_CAMERA_OV5640_V2) and OmniVision ov5640 camera support using
            mipi (MXC_CAMERA_OV5640_MIPI_V2)

2、以上配置全选的情况下,驱动正常加载,检测发现驱动程序已与/dev/video1下设备绑定,通过应用操作/dev/video1设备,执行ioctl命令VIDIOC_REQBUFS时提示以下错误,发现是申请代码中alloc函数指针没有赋值,mx6s_capture.c文件中结构没有调用mx6s_csi_open()赋值函数请问这个函数是在什么时候调用,我需要配置那个选项,启用这个配置,还是在应用启动时调用。

mx6s-csi 30b80000.csi2_bridge: dma_alloc_coherent of size 0 failed

memory allocation failed

Outcomes