Problem in using mipi camera on ORIN NANO

Hello, we are trying to use the IMX219 camera on a public development board. I have added OVERLAY_DTB_FILE+=",tegra234-p3767-camera-p3768-imx219-A.dtbo" in the p3768-0000-p3767-0000-a0.conf file and compiled the IMX219 driver into the kernel. The issue I am currently facing is an error message that says “imx219 9-0010: only 2 data lanes are currently supported.” Could you please advise on how to resolve this problem?
ps: Attachment is the err log file

dmsg.txt (61.8 KB)

.

*** Please note that this reply is generated by LLM automatically ***

The issue you’re facing is related to the IMX219 camera on a Jetson Orin Nano public development board. You’ve added the necessary configuration to the p3768-0000+p3767-0000-a0.conf file and compiled the IMX219 driver into the kernel. However, you’re encountering an error message indicating that only 2 data lanes are currently supported.

To resolve this problem, let’s break down the possible causes and solutions:

  1. Hardware Limitation: The Jetson Orin Nano public development board might have a hardware limitation that restricts the number of data lanes supported. Check the board’s documentation and specifications to confirm if this is the case.
  2. Device Tree Configuration: The device tree configuration might not be correctly set up to support 4 data lanes. Verify that the p3768-0000+p3767-0000-a0.conf file is correctly configured to support 4 data lanes. You can compare your configuration with the one provided in the NVIDIA documentation or other working examples.
  3. Kernel Driver Support: The IMX219 driver might not be fully supporting 4 data lanes. Check the kernel driver version and ensure it’s the latest one. You can also try to update the driver to the latest version or patch it to support 4 data lanes.
  4. CSI Lane Configuration: The CSI lane configuration might not be correctly set up. Verify that the CSI lanes are correctly configured to support 4 data lanes. You can use the jetson-io tool to configure the CSI lanes.

Comparing your issue with similar problems on the NVIDIA forums, I found a few relevant topics:

  • CSI-0 with MIPI 4 lane is not working properly: This topic discusses a similar issue with the CSI-0 port not working properly with 4 data lanes. The solution involves updating the device tree configuration and kernel driver.
  • Customized carrier board with two 4-lane ports unable to capture frame properly: This topic discusses a customized carrier board with two 4-lane ports that’s unable to capture frames properly. The solution involves updating the device tree configuration and kernel driver.

To further troubleshoot the issue, you can try the following:

  • Check the kernel logs (dmesg) for any error messages related to the IMX219 camera or CSI lanes.
  • Use the jetson-io tool to configure the CSI lanes and verify that they’re correctly set up.
  • Try to capture images using a different camera or CSI port to isolate the issue.
  • Update the kernel driver to the latest version or patch it to support 4 data lanes.

If none of these solutions work, please provide more details about your setup, including the kernel version, device tree configuration, and any modifications you’ve made to the kernel driver or device tree.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

You don’t need build the kernel driver and device tree for imx219.

You can just enable it by jetson-io.

Sorry, I’m not familiar with jetson-io. Could you please provide more details on how to use it? Or share a link to some documentation?

Check this document for it.

Hello, I can currently capture raw data from the MIPI camera using the following command:
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=test.raw
However, the following command fails:
gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM),width=1920,height=1080,format=(string)NV12,framerate=(fraction)30/1’ ! nvoverlaysink -e
ERROR: pipeline could not be constructed: no element “nvarguscamerasrc”.

Is there any other way to test the camera, preferably one that allows direct preview of the camera’s output?

Need install the nvidia-l4t-gstreamer.

Hello, I have installed GStream according to the instructions, but I am still getting an error when executing the test command. Could you please advise on how to resolve this issue?

root@a-desktop:/home/a/Desktop# gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=1920,height=1080,format=(string)NV12,framerate=(fraction)30/1' ! nvoverlaysink -e
WARNING: erroneous pipeline: no element "nvoverlaysink"
root@a-desktop:/home/a/Desktop# gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1,format=NV12' ! omxh264enc ! qtmux ! filesink location=test.mp4 -e
WARNING: erroneous pipeline: no element "omxh264enc"


Try below, JP6 don’t have support the nvoverlaysink and omxh264enc.

gst-launch-1.0 nvarguscamerasrc ! "video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,format=(string)NV12, framerate=(fraction)30/1" ! nvvidconv ! xvimagesink sync=false

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.