Skip to main content

MIPI CSI

Supported List​

Camera NameSensor ModelResolution
Radxa Camera 8M 219IMX2198 million pixels
Raspberry Pi Camera V2IMX2198 million pixels
Raspberry Pi Camera v1.3OV56475 million pixels

Usage Instructions​

The Raspberry Pi Compute Module 4 IO Board has two CSI interfaces: CAM0 and CAM1.

tip

When using CAM0 or DISP0, you need to short-circuit the location on the board as shown in the image below.

JUMP

Radxa Camera 8M 219​

  • Connect

    • Connect to the Raspberry Pi Compute Module 4 IO Board using an FPC cable, as shown in the image below: 8M 219
  • Use rsetup to open the corresponding overlay.

    • Use the Ctrl + T shortcut to open the terminal, then run the rsetup command:

      radxa@radxa-cm3j-rpi-cm4-io:~$ rsetup
    • Enable the Radxa Camera 8M 219 Overlay through the overlays device tree configuration.

      tip

      Please enable the "Enable Radxa Camera 8M on CAM0/CAM1" overlay.
      After successfully enabling "[*] Enable Radxa Camera 8M on CAM0/CAM1", exit and reboot to apply the configuration.

Raspberry Pi Camera V2​

  • Connect

    • Connect to the Raspberry Pi Compute Module 4 IO Board using an FPC cable, as shown in the image below: V2
  • Use rsetup to open the corresponding overlay.

    • Use the Ctrl + T shortcut to open the terminal, then run the rsetup command:

      radxa@radxa-cm3j-rpi-cm4-io:~$ rsetup
    • Enable the Raspberry Pi Camera V2 Overlay through the overlays device tree configuration.

      tip

      Please enable the "[] Enable Raspberry Pi Camera V2 on CAM0/CAM1" overlay.
      After successfully enabling "[*] Enable Raspberry Pi Camera V2 on CAM0/CAM1", exit and reboot to apply the configuration.

Raspberry Pi Camera v1.3​

  • Connect

    • Connect to the Raspberry Pi Compute Module 4 IO Board using an FPC cable, as shown in the image below: V1.3
  • Use rsetup to open the corresponding overlay.

    • Use the Ctrl + T shortcut to open the terminal, then run the rsetup command:

      radxa@radxa-cm3j-rpi-cm4-io:~$ rsetup
    • Enable the Raspberry Pi Camera v1.3 Overlay through the overlays device tree configuration.

      tip

      Please enable the "[] Enable Raspberry Pi Camera v1.3 on CAM0/CAM1" overlay.
      After successfully enabling "[*] Enable Raspberry Pi Camera v1.3 on CAM0/CAM1", exit and reboot to apply the configuration.

Test​

  • Preview

    • Open the terminal and enter the following command to open the camera preview:

      gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;

  • Take Photo

    • Open the terminal and enter the following command to take a photo using the camera:

      gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=file.name.jpg;

  • Record video

    • Open the terminal and enter the following command to start recording a video with the camera:

      gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4

    You need to be logged into GitHub to post a comment. If you are already logged in, please ignore this message.

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0