No video output for imx219 sensor (request timed out after 2500 ms)

Hi,
[Plaform] Jetson AGX Orin Developer Kit 64G + single imx219 camera
[SDK and source code pkg] JetPack 6.1 Jetson Linux Version 36.4

  1. I am porting the nv_imx219 camera sensor driver. I don’t modify nv_imx219.c, just modify the dts files from hardware/nvidia/t23x/nv-public/overlay/. Because our imx219 sensor module is connected to CSI0 for CSI input, so we set tegra_sinterface = "serial_a"; and changed the port-index in the device tree to 0. Below are the dts file I configured for the imx219:

imx219_dts.zip (8.7 KB)

Additionally, I converted the imx219 dtbo to dts, as shown in imx219_dtb_to_dts.txt.
imx219_dtb_to_dts.txt (11.2 KB)

  1. The connection with CSI pin is:

  2. . After selecting the overlay for imx219 using jetson-io.py, the device boots up and successfully recognizes /dev/video0, and I can also see successful I2C read and write operations to the register.

  3. When I input the command below, Isee the error occurs, the output is recorded in v4l2.txt.
    v4l2.txt (8.7 KB)

v4l2-ctl -d /dev/video0 --set-fmt-video=width=3280,height=2464,pixelformat=RG10 --stream-count=4 --verbose --stream-mmap
  1. In dmesg, it prints “request timed out after 2500 ms,” as shown in dmesg.txt.
    dmesg.txt (111.5 KB)

  2. I also followed the Steps_to_enable_more_debug_messages as detailed in Jetson/l4t/Camera BringUp - eLinux.org and obtained the tracer.txt log.
    tracer.txt (10.1 KB)

Could you provide suggestions on how to resolve this issue? Thanks in advance.

Hi,
Here are some suggestions for the common issues:

1. Performance

Please run the below command before benchmarking deep learning use case:

$ sudo nvpmodel -m 0
$ sudo jetson_clocks

2. Installation

Installation guide of deep learning frameworks on Jetson:

3. Tutorial

Startup deep learning tutorial:

4. Report issue

If these suggestions don’t help and you want to report an issue to us, please attach the model, command/step, and the customized app (if any) with us to reproduce locally.

Thanks!

Hi @carolyuu , it seems this is not related to Tensor or PyTorch. what i meet is sensor issue. Thank you

hello chiaueng,

I’ve went through your device tree, and you don’t need to configure polarity swap since it’s only Orin NX/Nano CSI0 D1 and CSI1 D0 P/N will always been swizzled for P/N.
for instance, please configure lane_polarity = "0"; since you’re working with AGX Orin.

besides,
please see-also Sensor Pixel Clock to examine your clock rate settings, which must be set correctly to avoid potential issues.
you may refer to Debugging Tips to review your sensor driver as well.

1 Like

This change can work (I am sorry i forgot to mark it as solved.), thank you.

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