Hello,Sir:
Currently, I am engaged in camera-related function development using the Orin Nano module and MAX96724 deserializer. The hardware development environment is as follows:
-
One Jetson Orin Nano 8GB module;
-
Two MAX96724 deserializer chips with 7-bit addresses 0x2e and 0x4f, respectively;
-
Camera modules (including serializers and sensors), such as Sensing World’s AR0144 and Sensing World’s AR0233 (product URL: https://www.sensing-world.com/GMSL_CAMERA/).
The software development environment is as follows:
-
JetPack 5.1.1 SDK;
-
The GMSL framework: GitHub - analogdevicesinc/nvidia at gmsl/main .
The current probolem is:
- I can not get image data using this command:
v4l2-ctl --set-fmt-video=width=1280,height=720 --stream-mmap --stream-count=10 -d /dev/video0
The log:
-stream-mmap --stream-count=10 -d /dev/video0t-fmt-video=width=1280,height=720 -
[ 67.866250] bwmgr API not supported
[ 70.383344] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 70.396081] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 70.406648] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 70.414381] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 70.425099] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 70.432823] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 70.443647] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 73.199531] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 73.208673] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 73.218661] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 73.226424] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 73.237101] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 73.244834] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 73.255623] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
^C[ 75.791336] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 75.800475] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 75.810813] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 75.818543] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 75.829217] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 75.836944] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 75.847732] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
I provide the current status of the device:
root@lovol-desktop:/home/lovol# media-ctl -p -d /dev/media0
Media controller API version 5.10.104
Media device information
driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.104
Device topology
-
entity 1: nvcsi0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
← “des_0_ch_0”:0 [ENABLED]
pad1: Source
→ “vi-output, cam_0”:0 [ENABLED] -
entity 4: cam_0 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev1
pad0: Source
[fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb]
→ “ser_0_ch_0”:1 [ENABLED] -
entity 6: ser_0_ch_0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:FIXED/0x0]
→ “des_0_ch_0”:1 [ENABLED]
pad1: Sink
← “cam_0”:0 [ENABLED] -
entity 9: des_0_ch_0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Source
→ “nvcsi0”:0 [ENABLED]
pad1: Sink
[fmt:FIXED/0x0]
← “ser_0_ch_0”:0 [ENABLED] -
entity 12: vi-output, cam_0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
← “nvcsi0”:1 [ENABLED]
root@lovol-desktop:/home/lovol#
echo 1 > /sys/kernel/debug/tracing/tracing_on echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable echo 1 > /sys/kernel/debug/tracing/events/freertos/enable echo 3 > /sys/kernel/debug/camrtc/log-level echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable echo > /sys/kernel/debug/tracing/trace
root@lovol-desktop:/home/lovol# cat /sys/kernel/debug/tracing/trace
tracer: nop
entries-in-buffer/entries-written: 49/49 #P:6
_-----=> irqs-off
/ _----=> need-resched
| / _—=> hardirq/softirq
|| / _–=> preempt-depth
||| / delay
TASK-PID CPU# |||| TIMESTAMP FUNCTION
| | | |||| | |
v4l2-ctl-2070 [002] .... 996.488393: tegra_channel_open: vi-output, cam_0
v4l2-ctl-2070 [002] .... 996.494974: tegra_channel_set_power: cam_0 : 0x1
v4l2-ctl-2070 [002] .... 996.494985: camera_common_s_power: status : 0x1
v4l2-ctl-2070 [002] .... 996.494996: tegra_channel_set_power: ser_0_ch_0 : 0x1
v4l2-ctl-2070 [002] .... 996.494997: tegra_channel_set_power: des_0_ch_0 : 0x1
v4l2-ctl-2070 [002] .... 996.494998: tegra_channel_set_power: nvcsi0 : 0x1
v4l2-ctl-2070 [002] .... 996.495000: csi_s_power: enable : 0x1
v4l2-ctl-2070 [002] .... 996.496034: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1280 fmt c4
v4l2-ctl-2070 [002] .... 996.505521: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2070 [002] .... 996.513099: tegra_channel_set_stream: nvcsi0 : 0x1
v4l2-ctl-2070 [002] .... 996.513101: csi_s_stream: enable : 0x1
v4l2-ctl-2070 [002] .... 996.513514: tegra_channel_set_stream: des_0_ch_0 : 0x1
v4l2-ctl-2070 [002] .... 996.514735: tegra_channel_set_stream: ser_0_ch_0 : 0x1
v4l2-ctl-2070 [002] .... 996.514738: tegra_channel_set_stream: cam_0 : 0x1
kworker/3:8-144 [003] .... 996.551342: rtcpu_string: tstamp:31846309650 id:0x04010000 str:"VM0 activating."
kworker/3:8-144 [003] .... 996.551345: rtcpu_vinotify_event: tstamp:31846905376 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1019086508480 data:0x719d580010000000
kworker/3:8-144 [003] .... 996.551346: rtcpu_vinotify_event: tstamp:31846905668 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1019086518272 data:0x0000000031000001
kworker/3:8-144 [003] .... 996.551346: rtcpu_vinotify_event: tstamp:31846905961 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1019086571744 data:0x719d550010000000
kworker/3:8-144 [003] .... 996.551346: rtcpu_vinotify_event: tstamp:31846906202 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1019086581696 data:0x0000000031000002
vi-output, cam_-2072 [005] … 999.211457: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1280 fmt c4
kworker/3:8-144 [003] … 999.239318: rtcpu_vinotify_event: tstamp:31931379318 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1021792725760 data:0x719d580010000000
kworker/3:8-144 [003] … 999.239319: rtcpu_vinotify_event: tstamp:31931379598 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1021792777536 data:0x0000000031000001
kworker/3:8-144 [003] … 999.239319: rtcpu_vinotify_event: tstamp:31931379889 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1021792793472 data:0x719d550010000000
kworker/3:8-144 [003] … 999.239320: rtcpu_vinotify_event: tstamp:31931380131 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1021792847744 data:0x0000000031000002
vi-output, cam_-2072 [005] … 1002.023386: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1280 fmt c4
kworker/3:8-144 [003] … 1002.039316: rtcpu_vinotify_event: tstamp:32019270433 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1024604631552 data:0x719d580010000000
kworker/3:8-144 [003] … 1002.039318: rtcpu_vinotify_event: tstamp:32019270690 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1024604683296 data:0x0000000031000001
kworker/3:8-144 [003] … 1002.039318: rtcpu_vinotify_event: tstamp:32019270994 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1024604699232 data:0x719d550010000000
kworker/3:8-144 [003] … 1002.039318: rtcpu_vinotify_event: tstamp:32019271241 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1024604753568 data:0x0000000031000002
vi-output, cam_-2072 [005] … 1004.839388: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1280 fmt c4
kworker/3:8-144 [003] … 1004.895321: rtcpu_vinotify_event: tstamp:32106901306 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1027420635968 data:0x719d580010000000
kworker/3:8-144 [003] … 1004.895323: rtcpu_vinotify_event: tstamp:32106901565 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1027420687776 data:0x0000000031000001
kworker/3:8-144 [003] … 1004.895324: rtcpu_vinotify_event: tstamp:32106901853 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1027420703584 data:0x719d550010000000
kworker/3:8-144 [003] … 1004.895324: rtcpu_vinotify_event: tstamp:32106902100 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1027420757920 data:0x0000000031000002
v4l2-ctl-2070 [001] … 1005.444109: tegra_channel_close: vi-output, cam_0
vi-output, cam_-2072 [005] … 1007.431387: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1280 fmt c4
v4l2-ctl-2070 [001] … 1007.441215: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-2070 [001] … 1007.441218: tegra_channel_set_stream: cam_0 : 0x0
v4l2-ctl-2070 [001] … 1007.441227: tegra_channel_set_stream: ser_0_ch_0 : 0x0
v4l2-ctl-2070 [001] … 1007.441229: tegra_channel_set_stream: des_0_ch_0 : 0x0
v4l2-ctl-2070 [001] … 1007.443184: tegra_channel_set_stream: nvcsi0 : 0x0
v4l2-ctl-2070 [001] … 1007.443187: csi_s_stream: enable : 0x0
v4l2-ctl-2070 [001] … 1007.448630: tegra_channel_set_power: cam_0 : 0x0
v4l2-ctl-2070 [001] … 1007.448638: camera_common_s_power: status : 0x0
v4l2-ctl-2070 [001] … 1007.448647: tegra_channel_set_power: ser_0_ch_0 : 0x0
v4l2-ctl-2070 [001] … 1007.448648: tegra_channel_set_power: des_0_ch_0 : 0x0
v4l2-ctl-2070 [001] … 1007.448649: tegra_channel_set_power: nvcsi0 : 0x0
v4l2-ctl-2070 [001] … 1007.448650: csi_s_power: enable : 0x0
kworker/3:8-144 [003] … 1012.687572: rtcpu_string: tstamp:32351887752 id:0x04010000 str:“VM0 deactivating.”
dts file is:
tegra234-p3767-0003-p3768-0000-a0-gmsl-lovol-0.dts.txt (462.1 KB)
Please help me find out what caused the failure to retrieve the image. thanks!!

