CAM0 CSI port on Jetson Orin Nano not working with IMX219 sensor

Hi all. I’m trying to use a pair of raspberry pi v2 cameras with IMX219 sensors on a Jetson Orin Nano 8GB running JetPack 6.2, but I’ve encountered problems using the CAM0 CSI port. CAM1 works perfectly fine, but nothing I’ve tried makes CAM0 work. I’m using the following gstreamer pipeline to view camera feeds:

gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=616’ ! nvvidconv ! nvegltransform ! nveglglessink -e

When I do so with the CAM0 port, the viewing window opens, remains black, and closes itself after a few seconds claiming it received an EOS. The terminal output is identical to the output when using CAM1, just without the duration indicator.

Running “ls /dev | grep “video”” always shows all the cameras I have plugged in regardless of port. "sudo dmesg | grep “imx219"” shows the same lines regardless of which port I’m using, though sometimes with a different order.

I have tried the following to fix the error, to no avail:

  • Replacing the camera and ribbon cable
  • Removing the CSI port itself from the board and soldering a new one on
  • Checking all 22 pins and the cable ends with a multimeter
  • Using all imx219 versions (i.e. dual, A, B, etc.) available with the jetson-io.py tool
  • Recompiling the IMX219 Dual dtbo
  • Setting the lane_polarity in the IMX219 Dual dtbo to 0, 1, 6, and 9
  • Using alternate gstreamer pipelines to view feed

I’ve seen other forum posts with a similar problem but they all ended up having a hardware issue solved by replacing various parts. Given that I’ve swapped out every piece of hardware short of the entire Jetson board (which I cannot do), I doubt this is my issue. Does anyone know what might be causing this?

Thanks in advance.

— 🤖 This is an automated AI response. I’m here to help, but please verify important details! —

The issue you’re experiencing with the CAM0 CSI port on the Jetson Orin Nano not working with the IMX219 sensor, while CAM1 works perfectly fine, suggests a potential configuration or hardware issue specific to the CAM0 port.

Given that you’ve tried various troubleshooting steps, including replacing the camera and ribbon cable, checking the CSI port and its pins, using different IMX219 versions with the jetson-io.py tool, recompiling the IMX219 Dual dtbo, and adjusting the lane polarity, the problem might be more fundamental.

One crucial point to consider is the lane configuration for the CSI ports. The Jetson Orin Nano has specific requirements for the CSI lane configuration, and improper configuration can lead to issues like the one you’re experiencing.

The provided context mentions that the CAM0 port on the Orin Nano Dev Kit does not work with certain cameras due to a CSI lane swizzle issue, where CSI0 D1 and CSI1 D0 P/N are swizzled. This could potentially be related to your issue, especially since you’ve tried multiple cameras and configurations without success.

To resolve this, you might need to delve deeper into the device tree configuration and the CSI lane settings. The jetson-io.py tool is useful for configuring the CSI ports, but manual adjustments to the device tree might be necessary to ensure the correct lane configuration for your specific setup.

Additionally, ensuring that the dmabuf_fd mapped entry is correctly set, as hinted at in some of the error messages, could be crucial. This involves checking the device tree configuration for the CSI ports and the camera sensor to ensure compatibility and correct settings.

Given the complexity and the specificity of the issue to the Jetson Orin Nano and its CSI ports, consulting the official NVIDIA documentation or forums for more detailed guidance on configuring the CSI ports and troubleshooting camera issues might provide more insights or solutions.

In summary, while the exact cause of your issue is not immediately clear from the provided context, it seems to be related to the configuration or compatibility of the CAM0 CSI port with the IMX219 sensor on the Jetson Orin Nano. Further investigation into the device tree configuration, CSI lane settings, and potential hardware issues is recommended.

If the problem persists after thorough troubleshooting and configuration adjustments, it might be beneficial to seek assistance from NVIDIA support or forums dedicated to the Jetson Orin Nano, as the issue could be specific to the hardware or a particular software version.

Remember, the Jetson Orin Nano’s behavior and configuration requirements can be quite specific, so ensuring that all settings and configurations are appropriate for your setup is key to resolving the issue.

This response is based on the provided context and might not cover all possible aspects of the issue. For more detailed or specific guidance, consulting the official documentation or support channels is recommended.

— We support team will also look into your issue to have further suggestions soon. please stay tuned. —

Does the v4l2-ctl working well?

v4l2-ctl --stream-mmap -c bypass_mode=0

No, it doesn’t show anything when I use it on CAM0. It works fine for CAM1 though.

Suppose it could be HW problem.

Do you have others sensor like imx477 to verify?

I don’t have anything else, no. What would the hardware issue be? I’ve tried different cables, different imx219s, I’ve even replaced the CSI connector itself. You think it’s the board itself?

I would suspect the connect on devkit.

Maybe go to the RMA porcess.