Test OV5645 MIPI CSI2 camera for i.mx8 - TechNexion/u-boot-tn-imx GitHub Wiki
Test OV5645 MIPI-CSI2 camera
Camera prview
For i.MX8MQ:
~# gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 ! video/x-raw,width=1280,height=720 ! waylandsink
or
~# gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 ! video/x-raw,width=1280,height=720 ! kmssink
For i.MX8MM:
~# gst-launch-1.0 v4l2src io-mode=2 device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! glimagesink
or
~# gst-launch-1.0 v4l2src io-mode=2 device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! waylandsink window-width=1280 window-height=720
Note:
The parameter width=1280 window-height=720
for waylandsink
corresponds to the display resolution.
It has to use Yocto with xwayland backend
. wayland backend
can't display properly. It only shows green on display.
It's known issue in Yocto 2.5.