AGX Orin can't get the frame data

root@ubuntu:/sys/kernel/debug/dynamic_debug# cat /sys/kernel/debug/tracing/trace

tracer: nop

entries-in-buffer/entries-written: 64/64 #P:8

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/4:1-122     [004] ....   137.687937: rtcpu_string: tstamp:5476453651 id:0x04010000 str:"VM0 deactivating."
    v4l2-ctl-2860    [006] ....   199.347871: tegra_channel_open: vi-output, ox08b40 30-0011
    v4l2-ctl-2860    [006] ....   199.372616: tegra_channel_set_power: ox08b40 30-0011 : 0x1
    v4l2-ctl-2860    [006] ....   199.372640: camera_common_s_power: status : 0x1
    v4l2-ctl-2860    [000] ....   199.374459: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
    v4l2-ctl-2860    [000] ....   199.374466: csi_s_power: enable : 0x1
    v4l2-ctl-2860    [000] ....   199.375187: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
    v4l2-ctl-2860    [002] ....   199.385971: tegra_channel_set_stream: enable : 0x1
    v4l2-ctl-2860    [002] ....   199.398877: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
    v4l2-ctl-2860    [002] ....   199.398880: csi_s_stream: enable : 0x1
    v4l2-ctl-2860    [002] ....   199.399190: tegra_channel_set_stream: ox08b40 30-0011 : 0x1
 kworker/4:1-122     [004] ....   199.411467: rtcpu_string: tstamp:7405714975 id:0x04010000 str:"VM0 activating."
 kworker/4:1-122     [004] ....   199.411470: rtcpu_vinotify_event: tstamp:7406191294 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:236988211232 data:0x399d580010000000
 kworker/4:1-122     [004] ....   199.411471: rtcpu_vinotify_event: tstamp:7406191512 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:236988217792 data:0x0000000031000001
 kworker/4:1-122     [004] ....   199.411471: rtcpu_vinotify_event: tstamp:7406191769 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:236988278592 data:0x399d550010000000
 kworker/4:1-122     [004] ....   199.411471: rtcpu_vinotify_event: tstamp:7406191983 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:236988285216 data:0x0000000031000002
 kworker/4:1-122     [004] ....   199.859505: rtcpu_nvcsi_intr: tstamp:7419587165 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x01c00000
 kworker/4:1-122     [004] ....   199.859507: rtcpu_nvcsi_intr: tstamp:7419587165 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00c00000

vi-output, ox08-2862 [003] … 202.069085: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 202.103511: rtcpu_vinotify_event: tstamp:7490026172 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:239671838688 data:0x399d580010000000
kworker/4:1-122 [004] … 202.103512: rtcpu_vinotify_event: tstamp:7490026308 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:239671845152 data:0x0000000031000001
kworker/4:1-122 [004] … 202.103513: rtcpu_vinotify_event: tstamp:7490026464 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:239671885504 data:0x399d550010000000
kworker/4:1-122 [004] … 202.103513: rtcpu_vinotify_event: tstamp:7490026595 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:239671892064 data:0x0000000031000002
vi-output, ox08-2862 [001] … 204.884312: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 204.903335: rtcpu_vinotify_event: tstamp:7577917790 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:242487056928 data:0x399d580010000000
kworker/4:1-122 [004] … 204.903336: rtcpu_vinotify_event: tstamp:7577917930 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:242487063392 data:0x0000000031000001
kworker/4:1-122 [004] … 204.903336: rtcpu_vinotify_event: tstamp:7577918087 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:242487104128 data:0x399d550010000000
kworker/4:1-122 [004] … 204.903337: rtcpu_vinotify_event: tstamp:7577918221 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:242487110688 data:0x0000000031000002
vi-output, ox08-2862 [001] … 207.699139: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 207.703322: rtcpu_vinotify_event: tstamp:7665684948 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:245301847200 data:0x399d580010000000
kworker/4:1-122 [004] … 207.703324: rtcpu_vinotify_event: tstamp:7665685088 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:245301853664 data:0x0000000031000001
kworker/4:1-122 [004] … 207.703324: rtcpu_vinotify_event: tstamp:7665685246 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:245301894048 data:0x399d550010000000
kworker/4:1-122 [004] … 207.703324: rtcpu_vinotify_event: tstamp:7665685381 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:245301900576 data:0x0000000031000002
vi-output, ox08-2862 [001] … 210.515120: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 210.559303: rtcpu_vinotify_event: tstamp:7753700782 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:248117827200 data:0x399d580010000000
kworker/4:1-122 [004] … 210.559305: rtcpu_vinotify_event: tstamp:7753700922 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:248117833632 data:0x0000000031000001
kworker/4:1-122 [004] … 210.559306: rtcpu_vinotify_event: tstamp:7753701076 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:248117874016 data:0x399d550010000000
kworker/4:1-122 [004] … 210.559306: rtcpu_vinotify_event: tstamp:7753701211 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:248117880544 data:0x0000000031000002
vi-output, ox08-2862 [002] … 213.331081: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 213.363558: rtcpu_vinotify_event: tstamp:7841930358 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:250933801504 data:0x399d580010000000
kworker/4:1-122 [004] … 213.363560: rtcpu_vinotify_event: tstamp:7841930495 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:250933807936 data:0x0000000031000001
kworker/4:1-122 [004] … 213.363560: rtcpu_vinotify_event: tstamp:7841930655 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:250933843744 data:0x399d550010000000
kworker/4:1-122 [004] … 213.363561: rtcpu_vinotify_event: tstamp:7841930788 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:250933850272 data:0x0000000031000002
vi-output, ox08-2862 [002] … 216.147161: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 216.163635: rtcpu_vinotify_event: tstamp:7929821849 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:253749881728 data:0x399d580010000000
kworker/4:1-122 [004] … 216.163637: rtcpu_vinotify_event: tstamp:7929821988 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:253749888192 data:0x0000000031000001
kworker/4:1-122 [004] … 216.163637: rtcpu_vinotify_event: tstamp:7929822142 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:253749928576 data:0x399d550010000000
kworker/4:1-122 [004] … 216.163638: rtcpu_vinotify_event: tstamp:7929822273 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:253749935104 data:0x0000000031000002
vi-output, ox08-2862 [002] … 218.963262: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
kworker/4:1-122 [004] … 219.019199: rtcpu_vinotify_event: tstamp:8017688952 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:256565975584 data:0x399d580010000000
kworker/4:1-122 [004] … 219.019201: rtcpu_vinotify_event: tstamp:8017689087 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:256565982048 data:0x0000000031000001
kworker/4:1-122 [004] … 219.019201: rtcpu_vinotify_event: tstamp:8017689240 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:256566022432 data:0x399d550010000000
kworker/4:1-122 [004] … 219.019202: rtcpu_vinotify_event: tstamp:8017689371 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:256566028960 data:0x0000000031000002
v4l2-ctl-2860 [000] … 220.023334: tegra_channel_close: vi-output, ox08b40 30-0011
vi-output, ox08-2862 [002] … 221.555180: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4
v4l2-ctl-2860 [000] … 221.564781: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-2860 [000] … 221.564783: tegra_channel_set_stream: ox08b40 30-0011 : 0x0
v4l2-ctl-2860 [000] … 221.654667: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-2860 [000] … 221.654671: csi_s_stream: enable : 0x0
v4l2-ctl-2860 [000] … 221.667675: tegra_channel_set_power: ox08b40 30-0011 : 0x0
v4l2-ctl-2860 [000] … 221.667685: camera_common_s_power: status : 0x0
v4l2-ctl-2860 [000] … 221.681197: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-2860 [000] … 221.681205: csi_s_power: enable : 0x0
kworker/4:1-122 [004] … 227.307384: rtcpu_string: tstamp:8276750510 id:0x04010000 str:“VM0 deactivating.”
root@ubuntu:/sys/kernel/debug/dynamic_debug#

请问下 tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt c4 这个fmt 为什么是c4? 还有我这个是raw12数据 请问我这样配置是正确的吗?

目前我配置的

nvidia@ubuntu:~$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'RG12' (12-bit Bayer RGRG/GBGB)
	Size: Discrete 3840x2160
		Interval: Discrete 0.033s (30.000 fps)

nvidia@ubuntu:~$
nvidia@ubuntu:~$
nvidia@ubuntu:~$
nvidia@ubuntu:~$ v4l2-ctl -d /dev/video0 --get-fmt-video
Format Video Capture:
Width/Height : 3840/2160
Pixel Format : ‘RG12’ (12-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 7680
Size Image : 16588800
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
nvidia@ubuntu:~$ 这个配置 一直出来的是黑图 ? 请问下 我要怎么看我的csi配置正确 mipi是否有数据呢?就是我的mipi 用示波器是可以测量到波形的

The log tell didn’t receive any data from the sensor.

You may check the sensor connection and the nvcsi/vi port config. And may need to probe to confirm the sensor output.

[12577.710982] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0

[12577.721634] (NULL device *): vi_capture_control_message: NULL VI channel received

[12577.729349] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0

[12577.740068] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel 这个 是不是vi 配置有问题?

This message could be failed and reopen failed?

Could you check rebooting the system and open camera to check the first capture.

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