TQMa8MPxL - YOCTO Linux BSP documentation


Camera

Instructions for setting up and connecting the camera can be found in the Camera Quick Start Guide:
MIPI-CSI Quick Start Guide

The following software example displays the live image of the camera on the HDMI interface of the starter kit.
To view the live image, an HDMI monitor must be connected.

Camera imx327 (color)

1. Start the kit and stop in U-Boot
2. Select the appropriate device tree for camera usage:

setenv fdtfile imx8mp-mba8mpxl-hdmi-imx327.dtb

3. Save the environment to automatically load the selected device tree for the subsequent boots:

saveenv

4. Boot the kernel:

boot

5. When Linux is started, login and configure the camera:

yavta -f SRGGB10 -s 1280x720 /dev/video0

6. Run the following command to see the camera output on HDMI:

gst-launch-1.0 v4l2src device=/dev/video0 force-aspect-ratio=false ! video/x-bayer,format=rggb,bpp=10,width=1280,height=720,framerate=25/1 ! bayer2rgbneon show-fps=t reduce-bpp=t ! autovideoconvert ! autovideosink sync=false

Camera ov9281 (monochrome)

1. Start the kit and stop in U-Boot
2. Select the appropriate device tree for camera usage:

setenv fdtfile imx8mp-mba8mpxl-hdmi-ov9281.dtb

3. Save the environment to automatically load the selected device tree for subsequent boots:

saveenv

4. Boot the kernel:

boot

5. When Linux is started, login and configure the camera:

yavta -f Y8 -s 1280x800 -c20 /dev/video0

6. Run the following command to see the camera output on HDMI:

gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! autovideosink -v sync=false