OV7670 camera on A13 via CSI interface under Linux

Started by leonnardo, February 16, 2017, 11:33:04 PM

Previous topic - Next topic

leonnardo

Hello!

I am trying to connect the ov7670 camera to A13-SOM 512 board under Debian Linux, but CSI driver does not work.
Has anybody succeeded with getting ov7670 camera work on A13-SOM 512 olimex board? Any ideas would be helpfull.

What have I already tried.
I compiled the newest stable kernel, version 3.4.104+, and added required kernel modules to the build in the configurator, but the error occured during the initialization.
Error is the same as in this topic:
https://www.olimex.com/forum/index.php?topic=948.0

Also, I tested wokeround from the last post of this page. After that, /dev/video0 file appeared, but when attempting to use the camera, LCD turns off. The LCD behaviour you may see on this video
https://drive.google.com/open?id=0B-jkDYm4mIfRWHpCVFJkTWZHbEE

After ignoring errors with clock setup, /var/log/dmesg messages are the following

[    9.255865] [CSI]Welcome to CSI driver
[    9.261374] [CSI]csi_init
[    9.284615] [CSI]registered sub device,input_num = 0
[    9.304172] [CSI]power on and power off camera!
[    9.632854] [CSI_ERR]get csi_isp clk error!
[    9.640623] [CSI_ERR] csi_isp set parent failed
[    9.648458] [CSI_ERR]set csi_isp clock error
[    9.659185] [CSI]V4L2 device registered as video0
[   10.742995] [CSI]sensor initial success when csi open!


In function

static int buffer_setup(struct videobuf_queue *vq, unsigned int *count, unsigned int *size);

from file drivers/media/video/sun4i_csi/csi0/sun4i_drv_csi.c
width and height are 0.