No images with IMX219 on Orin NX with JP 5.1.2 port CAM1

Hi,
I’m using an orin NX dev kit and installed JP 5.1.2 with SDK manager. On port CAM0 everything is fine, but with port CAM1 I can not grab images.
The camera is probed and /dev/video0 is created, so the i2c channel seems to work.
I’ve read about the line polarity problem, but as far as I can see this problem seems to be solved in a previous update, and I checked the version:

$ cat /etc/nv_tegra_release

R35 (release), REVISION: 4.1, GCID: 33958178, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug 1 19:57:35 UTC 2023

As mentioned on port CAM0 everything is fine, same camera and cable on CAM1:

nxo@ubuntu:~$ v4l2-ctl --set-fmt-video width=640,height=480 --stream-mmap
nxo@ubuntu:~$ sudo dmesg -c
[  131.577393] bwmgr API not supported
[  152.551840] bwmgr API not supported
[  155.096489] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  155.109269] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  155.119298] (NULL device *): vi_capture_control_message: NULL VI channel received
[  155.127026] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  155.137752] (NULL device *): vi_capture_control_message: NULL VI channel received
[  155.145472] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  155.156191] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  157.913315] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  157.922487] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  157.932301] (NULL device *): vi_capture_control_message: NULL VI channel received
[  157.940024] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  157.950680] (NULL device *): vi_capture_control_message: NULL VI channel received
[  157.958398] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  157.969136] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  160.730097] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  160.739261] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  160.749294] (NULL device *): vi_capture_control_message: NULL VI channel received
[  160.757022] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  160.767686] (NULL device *): vi_capture_control_message: NULL VI channel received
[  160.775402] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  160.786098] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  163.547012] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  163.556187] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  163.566303] (NULL device *): vi_capture_control_message: NULL VI channel received
[  163.574027] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  163.584685] (NULL device *): vi_capture_control_message: NULL VI channel received
[  163.592403] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  163.603119] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  166.363805] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  166.372969] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  166.383296] (NULL device *): vi_capture_control_message: NULL VI channel received
[  166.391020] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  166.401683] (NULL device *): vi_capture_control_message: NULL VI channel received
[  166.409402] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  166.420114] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  169.180237] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  169.189375] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  169.199330] (NULL device *): vi_capture_control_message: NULL VI channel received
[  169.207048] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  169.217715] (NULL device *): vi_capture_control_message: NULL VI channel received
[  169.225438] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  169.236172] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

maybe this could be interesting:

nxo@ubuntu:~$ sudo media-ctl -p -d /dev/media0
Media controller API version 5.10.120

Media device information

driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.120

Device topology

  • entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev0
    pad0: Sink
    ← “imx219 9-0010”:0 [ENABLED]
    pad1: Source
    → “vi-output, imx219 9-0010”:0 [ENABLED]

  • entity 4: 13e40000.host1x:nvcsi@15a00000- (2 pads, 0 link)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev1
    pad0: Sink
    pad1: Source

  • entity 7: imx219 9-0010 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev2
    pad0: Source
    [fmt:SRGGB10_1X10/3280x2464 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 9: vi-output, imx219 9-0010 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

Regards
Joscha

Do you enable imx219 by jetson-io all integrate the device manually?
Maybe dump the device tree to check.

sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree

Yes, I enabled imx219 with the jetson-io tool.

$ sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 2="Camera IMX219 Dual"

Is it a problem that only one camera is connected?

Here is the device tree, but I didn’t see anything suspicious.

extracted_proc.txt (428.8 KB)

I didn’t find any too.
Could you reconnect the camera to verify again. If still failed I would suspect it could be connector problem. Maybe get another ONX to confirm.

Thanks

Yes, I switched a few times the camera on the two ports.
We ordered a few more devkits and they will arrive next week, I will try them.

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