TQMa62xx - YOCTO Linux BSP documentation
LVDS and Camera
The extlinux.conf
generated by this BSP's default configuration will display
a menu to choose between a number of different LVDS display and MIPI-CSI camera
configurations. The default can be modified by setting the pxe_label_override
environment variable:
setenv pxe_label_override 'label' # Set default boot option to 'label'
saveenv # Persist configuration
The following labels are currently defined:
Label | Display | Camera |
---|---|---|
default | none | none |
lvds-tm070jdhg30 | Tianma TM070JDHG30 | none |
lvds-vesa-fhd | Generic VESA FullHD | none |
csi-imx327 | none | VisionComponents module with IMX327 sensor |
csi-ov9281 | none | VisionComponents module with OV9281 sensor |
lvds-tm070jdhg30-csi-imx327 | Tianma TM070JDHG30 | VisionComponents module with IMX327 sensor |
lvds-tm070jdhg30-csi-ov9281 | Tianma TM070JDHG30 | VisionComponents module with OV9281 sensor |
lvds-vesa-fhd-csi-imx327 | Generic VESA FullHD | VisionComponents module with IMX327 sensor |
lvds-vesa-fhd-csi-ov9281 | Generic VESA FullHD | VisionComponents module with OV9281 sensor |
The following commands can be used to capture the camera picture and display it on the display:
For IMX327:
media-ctl -V '"30102000.ticsi2rx":0[fmt:SRGGB10/1280x720]'
media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0[fmt:SRGGB10/1280x720]'
media-ctl -V '"imx327 1-001a":0[fmt:SRGGB10/1280x720 field:none]'
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-bayer,format=rggb10le,bpp=10,width=1280,height=720 ! \
bayer2rgb ! waylandsink sync=false
For OV9281:
media-ctl -V '"30102000.ticsi2rx":0[fmt:Y8_1X8/1280x800]'
media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0[fmt:Y8_1X8/1280x800]'
media-ctl -V '"ov9281 1-0060":0[fmt:Y8_1X8/1280x800 field:none]'
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=GRAY8,width=1280,height=800 ! \
videoconvert ! waylandsink sync=false
waylandsink
will render the video using Wayland by default. Alternatively,
the video can be displayed in fullscreen directly on a Linux framebuffer device
by stopping the Wayland compositor with systemctl stop weston.service
and
replacing waylandsink sync=false
with fbdevsink sync=false
in the
gst-launch-1.0 command.
Note that the TQMa62xx does not have hardware acceleration for the conversion from the Bayer pixel format to RGB. Even when using the optimized bayer2rgbneon plugin provided in our BSP, framerates with the IMX327 are very low.