Camera Guide


To enable camera support when building Yocto images see:

Camera Enablement

Module Camera Precompiled Image Yocto Enablement
QS8M-MQ00 RaspberryPi Camera n.a. Raspi Camera
QSXM-MM60 Basler daA2500-60mci qsxm-mm60-basler in Download Area Basler Camera
QSXP-ML81 Basler daA3840-30mc qsxp-ml81-basler in Download Area Basler Camera

Camera DTB

When your Yocto build has finished you will get different dtbs in deploy directory.

The following table gives an overview.

Module Camera Supported .dtb Files
qs8m-mq00 on qsbase2 RaspberryPi Camera imx8mm-qs8m-mq00-qsbase2-dsi83-cam.dtb
qsxm-mm60 on qsbase3 Basler daA2500-60mci imx8mm-qsxm-mm60-qsbase3-basler.dtb
qsxp-ml81 on qsbase3 Basler daA3840-30mc imx8mp-qsxp-ml81-qsbase3-basler.dtb

Use the specific dtb file when booting Linux.


You can change the baseboard variable in U-Boot to get the specific dtb loaded from eMMC.


QS8M U-Boot > setenv baseboard qsbase2-raspi-display-cam
Notice: 'fdt_file' changed from 'imx8mm-qs8m-mq00-qsbase2.dtb' to 'imx8mm-qs8m-mq00-qsbase2-raspi-display-cam.dtb'

Stream Camera

To stream a camera live video on your weston desktop follow the instructions written below.

Module Camera Stream
gst-launch-1.0 -v v4l2src ! "video/x-bayer,format=rggb,width=640,height=480,framerate=30/1" ! \
bayer2rgb ! videoconvert ! autovideosink sync=false
qsxm-mm60, qsxp-ml81

Start pylon viewer from serial Terminal:

export DISPLAY=:0; pylon

Enable the camera and click on the camera icon to stream a live video.

Live-stream the camera with gstreamer:

gst-launch-1.0 -v v4l2src device=/dev/video2 ! waylandsink

You can also record the camera stream using the VPU:

gst-launch-1.0 v4l2src device=/dev/video2 ! \
"video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1" ! \
vpuenc_h264 ! mpegtsmux name=mux ! filesink location=test_1080.ts