Camera Guide

Camera Enablement

Note

To enable camera support for QS8M-MQ00 see Raspi Camera section in NXP Zeus Yocto.

Note

You have two options using Basler daA3840-30mc Camera on QSXP-ML81:

  • There is a precompiled qsxp-ml81-full FlashImage in our Download Area with which you can use it out of the box.
  • For compiling a custom Image with Basler daA3840-30mc camera with Yocto follow Basler Camera section in NXP Zeus Yocto.

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 Raspi Camera (Sony IMX219) imx8mm-qs8m-mq00-qsbase2-dsi83-cam.dtb
imx8mm-qs8m-mq00-qsbase2-raspi-display-cam.dtb
qsxp-ml81 on qsbase3 Basler daA3840-30mc imx8mp-qsxp-ml81-qsbase3-ml-kit.dtb

Use the specific dtb file when booting Linux.

Note

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

EXAMPLE

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 run the gstreamer pipeline written below.

Module Pipeline
qs8m-mq00
gst-launch-1.0 -v v4l2src ! "video/x-bayer,format=rggb,width=640,height=480,framerate=30/1" ! \
bayer2rgb ! videoconvert ! autovideosink sync=false
qsxp-ml81
gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=1920,height=1080" ! \
queue ! imxvideoconvert_g2d ! waylandsink