This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] SK-AM62A-LP: How to run a Raspberry Pi camera module 2 (IMX219) on SK-AM62A-LP?

Part Number: SK-AM62A-LP

Tool/software:

I have a Raspberry Pi camera module 2 (IMX219). How can I use it with the AM62A SK EVM?

  • The IMX219 is supported by the Processor SDK Linux for AM62A. Please download the SDK from https://www.ti.com/tool/PROCESSOR-SDK-AM62A and follow the instructions in the Linux Academy on cameras (scroll to CSI-2 Camera) to run IMX219 on AM62A.

    The SDK only provides the ISP configuration binaries for resolutions up to 1920x1080 for IMX219. To run for resolution 3280x2464, please use the attached binaries: dcc_2a_3280x2464_10b.bin, dcc_viss_3280x2464_10b.bin and follow the steps below:

    1. Modify script /opt/edgeai-gst-apps/scripts/setup_cameras.sh by replacing the following line:
      IMX219_CAM_FMT="${IMX219_CAM_FMT:-[fmt:SRGGB8_1X8/1920x1080]}"

      with
      IMX219_CAM_FMT="${IMX219_CAM_FMT:-[fmt:SRGGB10_1X10/3280x2464]}"

      Then rerun this script to configure the IMX219 to run at 3280x2464 and 10-bit mode.

    2. Run the following Gstreamer pipeline:
      gst-launch-1.0 v4l2src device=/dev/video-imx219-cam0 io-mode=dmabuf-import ! queue max-size-buffers=1 leaky=2 ! \
      video/x-bayer, width=3280, height=2464, framerate=15/1, format=rggb10 ! \
      tiovxisp sink_0::pool-size=4  sink_0::device=/dev/v4l-imx219-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" \
      dcc-isp-file=dcc_viss_3280x2464_10b.bin \
      sink_0::dcc-2a-file=dcc_2a_3280x2464_10b.bin format-msb=9 ! \
      video/x-raw, format=NV12, width=3280, height=2464, framerate=15/1 ! queue ! tiovxmultiscaler ! queue ! \
      video/x-raw, format=NV12, width=1920, height=1080, framerate=15/1 !  \
      kmssink driver-name=tidss sync=false force-modesetting=true

      dcc_viss_3280x2464_10b.bindcc_2a_3280x2464_10b.bin