I seem to be having quite a hard time getting output from an OV5645 camera using the AiStarVision MIPI Adapter V2.0.
So far I’ve tried the following:
Rebuild the 16.09 kernel with the updated apq8016-sbc.dtsi file obtained from here.
Using the following media-ctl pipeline I configured the link between msm_csiphy0 and msm_csid0, msm_csid0 and msm_ispif0.
sudo media-ctl -v -d /dev/media1 -l '"msm_csiphy0":1->"msm_csid0":0,"msm_csid0":1->"msm_ispif0":0'
The second pipeline configures the UYVY2X8/1920x1080 format for msm_csiphy0 and msm_csid0. Note that my board now reports that the OV5645’s CCI is on 1-0076 rather than 1-0078.
sudo media-ctl -v -d /dev/media1 -V '"ov5645 1-0076":0[fmt:UYVY2X8/1920x1080],"msm_csiphy0":0[fmt:UYVY2X8/1920x1080],"msm_csid0":0[fmt:UYVY2X8/1920x1080]'
Following the example from the debian 16.06 release I used gstreamer to generate a single JPEG:
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! 'video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1' ! jpegenc ! filesink location=image01.jpg
Running gstreamer at this point either hangs at playback of the source or causes a panic.
I’ve posted the tail of my kernel log after running the gstreamer pipeline on hastebin here.
Any help is appreciated.