Pi Camera v2 Not Working on Radxa Zero 3E (MIPI CSI-2)

Issue: Pi Camera v2 Not Working on Radxa Zero 3E (MIPI CSI-2)

Setup

  • Board: Radxa Zero 3E
  • Camera: Raspberry Pi Camera v2 (IMX219)
  • Connection: Using a Raspberry Pi Zero Camera Adapter
  • OS: Debian Bullseye

Problem Description

I am trying to capture video/images using the Pi Camera v2 on my Radxa Zero 3E via the MIPI CSI-2 interface, but I encounter errors across different tools.

Errors Encountered

1. Cheese (GUI camera app)

libGL Error: failed to create dri screen
libGL Error: failed to load driver: rockchip
ERROR: XDG_RUNTIME_DIR not set in the environment

2. V4L2-CTL

v4l2-ctl --device /dev/video0 --stream-mmap --stream-count=1 --stream-to=test.raw
  • Error: VIDIOC_REQBUFS error (-1 Invalid argument)

3. GStreamer

gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! jpegenc ! filesink location=capture.jpg

Error: failed to allocate required memory (/GstPipeline:pipeline0/gstv4l2src:v4l2src0)

4. FFmpeg

ffmpeg -f v4l2 -list_formats all -i /dev/video0
  • Error: Not a video capture device /dev/video0: No such device

What I Have Tried

1. Verified Camera Connection

  • Running sudo i2cdetect -y 2 shows a new address after plugging in the camera, confirming an I²C connection.

2. Set Overlay for Pi Camera v2

  • Used sudo rsetup to enable the overlay, then rebooted.
    3. Checked media-ctl setting
  • Runing media-ctl -p -d /dev/media0 to check media-ctl setting

Kernel Logs & Errors

1. dmesg | grep -i imx (IMX219 Driver Issues)

[   14.680900] imx219 2-0010: driver version: 00.01.01
[   14.681217] imx219 2-0010: Reading register 100 from 10 failed
[   14.681415] imx219 2-0010: Reading register 100 from 10 failed
[   14.687969] imx219 2-0010: Error -5 setting default controls
[   14.688076] imx219: probe of 2-0010 failed with error -5
  • The sensor is not responding correctly to I²C register reads, which suggests a communication issue?

2. dmesg | grep -i csi (MIPI CSI-2 Link Errors)

[   14.804663] rockchip-csi2-dphy0: No link between dphy and sensor
[   14.805325] rockchip-csi2-dphy0: No link between dphy and sensor
[   18.502423] rockchip-csi2-dphy0: No link between dphy and sensor
[   21.367815] rockchip-csi2-dphy0: No link between dphy and sensor

  • The camera is not correctly linked to the CSI receiver?

Questions

Has anyone successfully used the Pi Camera v2 on Radxa Zero 3E via MIPI CSI-2? If so, what settings did you use?
Any guidance or suggestions would be greatly appreciated!

Hi @elizal830

Do you provide me with a couple photos of the MIPI-CSI interface? I need to check the integrity of the interface.

Yes sure, I have attached the photo of the connector. The golden face of the connector is faced toward the board for pi camera and faced away the board for radxa zero 3e.

Hi @elizal830

It looks like your MIPI CSI interface is correct.

However, what I’m not sure about is whether your ribbon cable is correct, and if the way the ribbon cable is connected to the MIPI CSI interface is also correct.

The following is an example of the correct connection method:

Not sure if I missed anything, but seems like I connected as the same way as yours. Except might be using a different adaptor, Mine is the adaptor for pi camera to pi zero. From another post I saw, they mentioned it should works with radxa zero 3e too. I used multimeter to make sure cable is functioning as well.