SPRAD86A March 2023 – May 2024 AM62A3 , AM62A3-Q1 , AM62A7 , AM62A7-Q1 , AM67A , AM68A , AM69A
Assume the camera driver has been integrated into the SDK, and the AM62A SK EVM boots to Linux and can probe the camera. Verify that both v4l2-ctl
and media-ctl
commands show expected output as below (with IMX219 as an example):
root@am62axx-evm:~# v4l2-ctl --list-devices
j721e-csi2rx (platform:30102000.ticsi2rx):
/dev/video3
/dev/video4
...
/dev/media0
root@am62axx-evm:~# media-ctl -d /dev/media0 -p | grep imx219
<- "imx219 4-0010":0 [ENABLED,IMMUTABLE]
- entity 13: imx219 4-0010 (1 pad, 1 link, 0 route)
4-0010
in the media-ctl
output is the I2C bus address for the sensor and this value can be different for a different SDK release.Then verify that the camera can be configured to a certain format and raw images can be captured using a GStreamer pipeline. Below is an example, assuming 4-0010
is what is shown by the media-ctl
command as above:
root@am62axx-evm:~# media-ctl -V '"imx219 4-0010":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'
root@am62axx-evm:~# gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video3 io-mode=dmabuf ! \
video/x-bayer, width=1920, height=1080, framerate=30/1, format=rggb10 ! \
multifilesink location="imx219-image-%d.raw"
The captured raw images are in pure Bayer pattern array format (RGGB for IMX219 sensor) without any header or compression. These raw images can be displayed by a raw image viewer or other tools such as ffmpeg. At this stage, the raw images can be either overexposed or underexposed since the default exposure time and gain in the sensor does not necessarily match the lighting environment where these images are captured.