Hi,
There seems to be an issue with the CAM0 CSI port on Orin Nano Devkit. With the original JetPack 5.1.1, the IMX219 Raspi Camera works fine on the CAM1 CSI port but not on the CAM0 port. On CAM0, the camera can be initialized, but no streaming packets are received by the host. It seems that no VI channel is detected. I’ve attached below some logs from when trying to stream the camera on CAM0 port. Hope that it might help someone address the issue. Thanks!
Logs from calling v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw --verbose
:
VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 3280/2464
Pixel Format : ‘RG10’ (10-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 6560
Size Image : 16163840
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq: 0 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 0 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 1 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 2 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 3 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 0 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 0 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 1 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 2 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 3 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 0 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 0 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 1 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 2 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 3 bytesused: 16163840 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
Logs from dmesg
:
[ 495.743133] bwmgr API not supported
[ 498.418470] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 498.431214] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 498.442011] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 498.449743] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 498.460431] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 498.468166] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 498.479038] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 501.234635] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 501.243773] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 501.253934] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 501.261668] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 501.272332] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 501.280060] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 501.290897] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 504.050423] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 504.059568] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 504.069899] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 504.077614] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 504.088277] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 504.095996] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 504.106797] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 506.866431] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 506.875569] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 506.885880] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 506.893603] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 506.904269] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 506.911984] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 506.922763] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
Logs from /sys/kernel/debug/tracing/trace
:
v4l2-ctl-2710 [001] … 495.703252: tegra_channel_open: vi-output, imx219 9-0010
v4l2-ctl-2710 [001] … 495.728804: tegra_channel_set_power: imx219 9-0010 : 0x1
v4l2-ctl-2710 [001] … 495.728829: camera_common_s_power: status : 0x1
v4l2-ctl-2710 [001] … 495.738968: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2710 [001] … 495.738972: csi_s_power: enable : 0x1
v4l2-ctl-2710 [001] … 495.740182: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
v4l2-ctl-2710 [001] … 495.741674: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2710 [001] … 495.752901: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2710 [001] … 495.752904: csi_s_stream: enable : 0x1
v4l2-ctl-2710 [001] … 495.753290: tegra_channel_set_stream: imx219 9-0010 : 0x1
kworker/1:3-124 [001] … 495.790416: rtcpu_vinotify_event: tstamp:16447376025 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:526306026272 data:0x719d580010000000
kworker/1:3-124 [001] … 495.790417: rtcpu_vinotify_event: tstamp:16447376367 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:526306036000 data:0x0000000031000001
kworker/1:3-124 [001] … 495.790417: rtcpu_vinotify_event: tstamp:16447376709 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:526306134592 data:0x719d550010000000
kworker/1:3-124 [001] … 495.790418: rtcpu_vinotify_event: tstamp:16447376998 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:526306144448 data:0x0000000031000002
vi-output, imx2-2712 [005] … 498.478883: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
kworker/1:3-124 [001] … 498.538426: rtcpu_vinotify_event: tstamp:16532882994 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:529043738112 data:0x719d580010000000
kworker/1:3-124 [001] … 498.538430: rtcpu_vinotify_event: tstamp:16532883252 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:529043747872 data:0x0000000031000001
kworker/1:3-124 [001] … 498.538430: rtcpu_vinotify_event: tstamp:16532883544 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:529043838944 data:0x719d550010000000
kworker/1:3-124 [001] … 498.538431: rtcpu_vinotify_event: tstamp:16532883788 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:529043848832 data:0x0000000031000002
vi-output, imx2-2712 [005] … 501.290726: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
kworker/1:3-124 [001] … 501.346415: rtcpu_vinotify_event: tstamp:16620774305 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531855587072 data:0x719d580010000000
kworker/1:3-124 [001] … 501.346418: rtcpu_vinotify_event: tstamp:16620774563 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531855596832 data:0x0000000031000001
kworker/1:3-124 [001] … 501.346419: rtcpu_vinotify_event: tstamp:16620774852 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531855688480 data:0x719d550010000000
kworker/1:3-124 [001] … 501.346420: rtcpu_vinotify_event: tstamp:16620775096 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531855698368 data:0x0000000031000002
vi-output, imx2-2712 [001] … 504.106655: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
kworker/1:3-124 [001] … 504.150412: rtcpu_vinotify_event: tstamp:16708488763 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:534671497152 data:0x719d580010000000
kworker/1:3-124 [001] … 504.150413: rtcpu_vinotify_event: tstamp:16708489025 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:534671506880 data:0x0000000031000001
kworker/1:3-124 [001] … 504.150413: rtcpu_vinotify_event: tstamp:16708489316 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:534671590464 data:0x719d550010000000
kworker/1:3-124 [001] … 504.150414: rtcpu_vinotify_event: tstamp:16708489567 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:534671600320 data:0x0000000031000002
vi-output, imx2-2712 [001] … 506.922627: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
kworker/1:3-124 [001] … 506.958410: rtcpu_vinotify_event: tstamp:16796489174 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:537487467808 data:0x719d580010000000
kworker/1:3-124 [001] … 506.958411: rtcpu_vinotify_event: tstamp:16796489435 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:537487477568 data:0x0000000031000001
kworker/1:3-124 [001] … 506.958411: rtcpu_vinotify_event: tstamp:16796489721 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:537487553600 data:0x719d550010000000
kworker/1:3-124 [001] … 506.958411: rtcpu_vinotify_event: tstamp:16796489969 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:537487563488 data:0x0000000031000002
vi-output, imx2-2712 [001] … 509.738672: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
kworker/1:3-124 [001] … 509.762404: rtcpu_vinotify_event: tstamp:16884721473 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:540303526400 data:0x719d580010000000
kworker/1:3-124 [001] … 509.762404: rtcpu_vinotify_event: tstamp:16884721740 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:540303536160 data:0x0000000031000001
kworker/1:3-124 [001] … 509.762405: rtcpu_vinotify_event: tstamp:16884722032 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:540303612768 data:0x719d550010000000
kworker/1:3-124 [001] … 509.762405: rtcpu_vinotify_event: tstamp:16884722280 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:540303622656 data:0x0000000031000002
v4l2-ctl-2710 [003] … 512.498699: tegra_channel_close: vi-output, imx219 9-0010
vi-output, imx2-2712 [001] … 512.554728: tegra_channel_capture_setup: vnc_id 0 W 3280 H 2464 fmt c4
v4l2-ctl-2710 [005] … 512.564413: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-2710 [005] … 512.564416: tegra_channel_set_stream: imx219 9-0010 : 0x0
v4l2-ctl-2710 [005] … 512.564636: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-2710 [005] … 512.564639: csi_s_stream: enable : 0x0
v4l2-ctl-2710 [005] … 512.576270: tegra_channel_set_power: imx219 9-0010 : 0x0
v4l2-ctl-2710 [005] … 512.576298: camera_common_s_power: status : 0x0
v4l2-ctl-2710 [005] … 512.581405: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-2710 [005] … 512.581411: csi_s_power: enable : 0x0
kworker/1:9-143 [001] … 518.275067: rtcpu_string: tstamp:17151220121 id:0x04010000 str:“VM0 deactivating.”