Skip to main content

IMX8MM VLS-FPD3 Camera Usage Guide

πŸš€ Introduction​

This article guides you how to get started using TechNexion camera modules on EDM-G-IMX8MM board.

Background knowledge needed

You must have the background knowledge to modify the kernel configuration, rebuild, and replace the kernel and the device tree source (DTS).

e.g. EDM-G-WB Baseboard

This article uses the EDM-G-WB baseboard as an example.

This article is based on the πŸ”— Yocto 4.2 (Mickledore) 2024Q3 Release.
The corresponding Linux kernel version is 6.1.55-2.2.0.

πŸ“Έ Supported Camera Modules​

Camera SeriesProducts
VLS-FPD3
VLS-FPD3-AR0144
VLS-FPD3-AR0145
VLS-FPD3-AR0234
VLS-FPD3-AR0521
VLS-FPD3-AR0522
VLS-FPD3-AR0821
VLS-FPD3-AR0822
VLS-FPD3-AR1335

🧩 Supported Boards​

SoMBoard
EDM-G-IMX8MMEDM-G-WB
EDM-G-WIZARD

πŸ”§ Hardware Setup Instructions​

1. Power Supply Preparation​

  • Use a DC 5V or 12V power cable to supply power to the board.
  • If you're using FPD-Link III SerDes, a 12V power adapter (minimum 3A) is required. Connect it via the barrel jack connector.
info

The EDM-G-WB can also be powered via USB Type-C (5V).


2. Debug Console Connection​

  • Prepare a USB-to-UART cable if you're connecting to a PC.
  • Connect the cable to the debug console port on the EDM-G-WB board.

πŸ’» Prepare Yocto demo image for testing TechNexion camera​

To test TechNexion cameras, you will need a Yocto-based demo image that includes the necessary device tree blobs and camera drivers.

πŸ”½ Downloading the Demo Image​

Prebuilt demo images are available for download on TechNexion's official server.

πŸ”— Supported Release List (Instructions for EDM-G-IMX8MM)


πŸ’Ύ Flashing the Image​

You can flash the image to either e.MMC or an SD Card using one of the following methods:

1. Using uuu Tool (Universal Update Utility)​

TechNexion provides a guide to flash the image using the uuu tool: πŸ”— How to Flash with UUU

Boot Mode

Before flashing, ensure the board is set to Serial Download Mode in the boot configuration. You can refer to πŸ”— Boot Mode Selection of EDM-G-WB for more details.


2. Using ums Command in U-Boot (USB Mass Storage)​

Alternatively, you can write the image directly to flash storage over USB-OTG using U-Boot’s ums command: πŸ”— Using UMS in U-Boot

U-Boot Requirement

The board must be booted with a version of U-Boot that supports the ums command. Typically, this is done from the existing e.MMC.


πŸ› οΈ Build Yocto​

TechNexion supports building a Yocto-based Linux image tailored for camera modules using the following kernel and branch.

πŸ“¦ Supported Linux Kernel​

Linux Kernel VersionYocto Branch
6.1.55tn-imx_6.1.55_2.2.0-stable

πŸ“ Source and Build Instructions​

πŸ”— Fetch Yocto Source
πŸ“– Build Yocto (Instructions for EDM-G-IMX8MM)


πŸ“Έ Camera Testing Instructions​

Specify Camera DTBO in U-Boot​

Manual DTBO Setup​

  1. Connect the debug console cable to the baseboard (via UART).

  2. Power on the board and interrupt the boot process. Keep pressing Enter when the following message appears: Hit any key to stop autoboot:

  3. Set the correct camera overlay (DTBO) using the U-Boot environment variable:

  u-boot=> setenv dtoverlay vls
  1. Save and continue the boot process:
u-boot=> saveenv
u-boot=> boot

πŸŽ₯ Start Camera Video Stream via GStreamer​

Check Camera Availability​

Use the v4l2-ctl tool to list connected video devices.

$ v4l2-ctl --list-device

Example output:

():
/dev/v4l-subdev0
():
/dev/v4l-subdev1

FSL Capture Media Device (platform:32c00000.bus:camera):
/dev/media0

mxc-isi-cap (platform:32e00000.isi:cap_device):
/dev/video0

mxc-isi-cap (platform:32e02000.isi:cap_device):
/dev/video1

In this example, /dev/video0 is the capture device connected via CSI1.


Launch GStreamer Pipeline​

Replace <res_w>, <res_h>, <x>, and <y> with your desired resolution and screen dimensions:

$ gst-launch-1.0 v4l2src device=/dev/video0 ! \
video/x-raw, width=<res_w>, height=<res_h> ! \
imxvideoconvert_g2d ! \
waylandsink window-width=<x> window-height=<y> sync=false
warning

imxvideoconvert_g2d is optimized for the i.MX8MP platform and leverages ISI hardware for format conversion. You may optionally use videoconvert, but it is typically unnecessary.


🚨 Troubleshooting​

Ensure camera device tree blob overlay(DTBO) is specified correctly in u-boot.

    u-boot=> printenv dtoverlay
dtoverlay=vls

We can check whether camera have been initialized correctly.
Ensure camera device tree blob(DTB) is specified correctly.

  $ dmesg -t | grep -i model
Machine model: TechNexion EDM-G-IMX8MM and WB baseboard