AGX Orin 64G + IMX678: tegra-camrtc-capture-vi uncorr_err: request timed out after 2500 ms (JetPack 6.2.1 / L4T R36.4.4)

Title: AGX Orin 64G + IMX678: tegra-camrtc-capture-vi uncorr_err: request timed out after 2500 ms (JetPack 6.2.1 / L4T R36.4.4)

Hello,

Platform:

  • Jetson AGX Orin 64GB

  • JetPack 6.2.1 / L4T R36 (release), REVISION: 4.4

 R36 (release), REVISION: 4.4, GCID: 41062509, BOARD: generic, EABI: aarch64, DATE: Mon Jun 16 16:07:13 UTC 2025

Sensor: Sony IMX678, custom carrier board, custom out-of-tree imx678 v4l2 sensor driver (i2c address 8-001a).

External power/reset controlled by auxiliary yz_common driver (i2c 8-0060).

Sensor Mode Configuration

  • Resolution: All-pixel 3856 × 2180 RAW12, 60fps

  • INCK: 74.25 MHz

  • CSI-2: 4 lane, D-PHY

  • Data rate per lane: 1782 Mbps/lane

  • Pixel format: RAW12

  • Sensor mode: Master, LCG enabled

Test Command

 v4l2-ctl --stream-mmap -c bypass_mode=0

Observed Failure

After sensor power-on, register configuration and start_streaming complete without I2C errors.

Shortly after, VI reports timeout in loop:

 tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
 tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
 tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

No frames captured, stream terminates.

RTCPU trace capture command

 sudo bash << 'EOF'
 modprobe rtcpu_debug
 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
 EOF

RTCPU trace analysis

The trace continuously generates VIFALC_TDSTATE events, but there are no CHANSEL_PXL_SOF / CHANSEL_PXL_EOF frame start/end events.

This indicates NVCSI/VI does NOT receive valid CSI-2 frame data from IMX678 after sensor streaming enabled.

 # tracer: nop
 #
 # entries-in-buffer/entries-written: 101/101   #P:12
 #
 #                                _-------=> irqs-off
 #                               / _------=> need-resched
 #                              | / _-----=> need-resched-lazy
 #                              || / _----=> hardirq/softirq
 #                              ||| / _---=> preempt-depth
 #                              |||| / _--=> preempt-lazy-depth
 #                              ||||| / _-=> migrate-disable
 #                              |||||| /     delay
 #           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
 #              | |         |   |||||||      |         |
      kworker/8:2-192     [008] .......  7822.449727: rtcpu_string: tstamp:245272852566 id:0x04010000 str:"VM0 deactivating."
         v4l2-ctl-6942    [007] .......  7838.395600: tegra_channel_open: vi-output, imx678 8-001a
         v4l2-ctl-6942    [007] .......  7838.411190: tegra_channel_set_power: imx678 8-001a : 0x1
         v4l2-ctl-6942    [007] .......  7838.411199: camera_common_s_power: status : 0x1
         v4l2-ctl-6942    [007] .......  7838.454079: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
         v4l2-ctl-6942    [007] .......  7838.454081: csi_s_power: enable : 0x1
         v4l2-ctl-6942    [007] .......  7838.454919: tegra_channel_capture_setup: vnc_id 0 W 3856 H 2180 fmt c4
      kworker/8:2-192     [008] .......  7838.465363: rtcpu_string: tstamp:245774796589 id:0x04010000 str:"VM0 activating."
  vi-output, imx6-6943    [010] .......  7838.467536: vi_task_submit: class_id:48 ch:0 syncpt_id:37 syncpt_thresh:0 pid:6943 tid:6943
  vi-output, imx6-6943    [010] .......  7838.467553: vi_task_submit: class_id:48 ch:0 syncpt_id:37 syncpt_thresh:0 pid:6943 tid:6943
  vi-output, imx6-6943    [010] .......  7838.467555: vi_task_submit: class_id:48 ch:0 syncpt_id:37 syncpt_thresh:0 pid:6943 tid:6943
  vi-output, imx6-6943    [010] .......  7838.467558: vi_task_submit: class_id:48 ch:0 syncpt_id:37 syncpt_thresh:0 pid:6943 tid:6943
         v4l2-ctl-6942    [007] .......  7838.468042: tegra_channel_set_stream: enable : 0x1
         v4l2-ctl-6942    [007] .......  7838.470254: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
         v4l2-ctl-6942    [007] .......  7838.470260: csi_s_stream: enable : 0x1
         v4l2-ctl-6942    [007] .......  7838.470874: tegra_channel_set_stream: imx678 8-001a : 0x1
      kworker/8:2-192     [008] .......  7838.521524: rtcpu_vinotify_event: tstamp:245775562379 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:7864801237984 data:0x359d580010000000
      kworker/8:2-192     [008] .......  7838.521527: rtcpu_vinotify_event: tstamp:245775562520 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:7864801280032 data:0x0000000031000001
      kworker/8:2-192     [008] .......  7838.521527: rtcpu_vinotify_event: tstamp:245775562681 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:7864801298144 data:0x359d550010000000
      kworker/8:2-192     [008] .......  7838.521528: rtcpu_vinotify_event: tstamp:245775562817 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:7864801318496 data:0x0000000007020001
      kworker/8:2-192     [008] .......  7838.521528: rtcpu_vinotify_event: tstamp:245775562974 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:7864801360864 data:0x0000000031000002
 ...... repeated VIFALC_TDSTATE sequence, no SOF/EOF events

Questions

  1. 1782 Mbps/lane D-PHY RAW12 4-lane, is this data rate fully supported on R36.4.4 NVCSI?

  2. What further debug steps can confirm whether CSI-2 physical packets are arriving at Jetson NVCSI receiver?

Thanks for any suggestions.

Yes, Orin support 2.5Gbps per lane.

You may need have scope to probe the MIPI signal.

Thanks

I have measured the MIPI signals using an oscilloscope. Signals are present on all 4 data lanes, and the clock signal is also available. However, I still cannot capture any images.

  1. Review the device tree like port-index/bus-width
  2. Make sure the output signal follow the MIPI spec,

This is my device tree

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/tegra234-clock.h>
#include <dt-bindings/gpio/tegra234-gpio.h>
#include <dt-bindings/tegra234-p3737-0000+p3701-0000.h>
#include <dt-bindings/interrupt-controller/irq.h>

#define CAM0_RST_L	TEGRA234_MAIN_GPIO(H, 3)
#define CAM0_PWDN	TEGRA234_MAIN_GPIO(H, 6)
#define CAM1_RST_L	TEGRA234_MAIN_GPIO(AC, 1)
#define CAM1_PWDN	TEGRA234_MAIN_GPIO(AC, 0)

/ {
	overlay-name = "YZ IMX678 Single 4Lane";
	jetson-header-name = "Jetson AGX CSI Connector";
	compatible = JETSON_COMPATIBLE;

    fragment@0 {
        target-path =  "/bus@0/i2c@31e0000";
        
        __overlay__ {
            #address-cells = <1>;
            #size-cells = <0>;
            status = "okay";
            
            yz_common: yz_common@60 {
                compatible = "yz,common";
                reg = <0x60>;
                status = "okay";
                
                // GPIO配置
                cam0-rst-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;
                cam0-pwdn-gpios = <&gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
                cam1-rst-gpios = <&gpio CAM1_RST_L GPIO_ACTIVE_HIGH>;
                cam1-pwdn-gpios = <&gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
            };

			sensor_a: imx678_a@1a {
				status = "okay";
				compatible = "yz,imx678";
				reg = <0x1a>;

				yz-bridge-phandle = <&yz_common>;
				
				clocks = <&bpmp TEGRA234_CLK_EXTPERIPH1>;
				clock-names = "extperiph1";
				mclk = "extperiph1";
				clock-frequency = <37125000>;

				devnode = "video0";

				physical_w = "20.00";
				physical_h = "16.80";

				sensor_model ="imx678";

				/* Defines number of frames to be dropped by driver internally after applying */
				/* sensor crop settings. Some sensors send corrupt frames after applying */
				/* crop co-ordinates */
				post_crop_frame_drop = "0";

				/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
				use_decibel_gain = "true";

				/* if true, delay gain setting by one frame to be in sync with exposure */
				delayed_gain = "false";

				/* enable CID_SENSOR_MODE_ID for sensor modes selection */
				use_sensor_mode_id = "false";
				//3856×2180	12bit	普通 Bayer	60 fps
				mode0 {
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					vc_id = "0";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "true";
					cil_settletime = "0";
					active_w = "3856";
					active_h = "2180";

					dynamic_pixel_bit_depth = "12";
					csi_pixel_bit_depth = "12";
					mode_type = "bayer";
					pixel_phase = "rggb";

					readout_orientation = "0";
					line_length = "4200";
					frame_length = "2358";
					inherent_gain = "1";
					pix_clk_hz = "594000000";

					gain_factor = "10";
					min_gain_val = "0"; /* 0dB */
					max_gain_val = "720"; /* 72dB */
					step_gain_val = "3"; /* 0.3 */
					default_gain = "0";
					min_hdr_ratio = "1";
					max_hdr_ratio = "64";
					framerate_factor = "1000000";
					min_framerate = "1500000"; /* 1.5 */
					max_framerate = "60000000"; /* 60 */
					step_framerate = "1";
					default_framerate= "60000000";
					exposure_factor = "1000000";
					min_exp_time = "27"; /* us */
					max_exp_time = "660000"; /* us */
					step_exp_time = "1";
					default_exp_time = "10000";/* us */
					embedded_metadata_height = "1";
				};

				ports {
					// #address-cells = <1>;
					// #size-cells = <0>;
					port@0 {
						reg = <0>;
						sensor_out_a: endpoint {
							vc-id = <0>;
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&sensor_csi_ch0_in>;
						};
					};
				};
			};
        };
    };


	fragment@1 {
        target-path =  "/bus@0/gpio@2200000";
        __overlay__ {
			camera-control-output-low {
				status = "disabled";
			};
		};
    };

	fragment@2 {
		target-path = "/";
		__overlay__ {
			tegra-camera-platform{
				compatible = "nvidia, tegra-camera-platform";
				status = "okay";
				num_csi_lanes = <4>;
				max_lane_speed = <1800000>;
				min_bits_per_pixel = <10>;
				vi_peak_byte_per_pixel = <2>;
				vi_bw_margin_pct = <25>;
				isp_peak_byte_per_pixel = <5>;
				isp_bw_margin_pct = <25>;
				modules {
					status = "okay";
					module0 {
						status = "okay";
						position = "bottomleft";
						orientation = "1";
						badge = "imx678_bottomleft_yz";
						drivernode0 {
							status = "okay";
							devname = "imx678 8-001a";
							pcl_id = "v4l2_sensor";
							sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/i2c@31e0000/imx678_a@1a";
						};
					};
				};
			};
		};
	};

	fragment@3 {
		target-path = "/tegra-capture-vi";
		__overlay__ {
			status = "okay";
			num-channels=<1>;
			ports {
				status = "okay";
				sensor_vi_port0: port@0 {
					#address-cells = <1>;
					#size-cells = <0>;
					reg = <0>;
					status = "okay";
					sensor_vi_in0: endpoint {
						status = "okay";
						vc-id = <0>;
						port-index = <0>;
						bus-width = <4>;
						remote-endpoint = <&sensor_csi_ch0_out>;
					};
				};
			};
		};
	};

	fragment@4 {
		target-path = "/bus@0/host1x@13e00000/nvcsi@15a00000";
		__overlay__ {
			status = "okay";
			num-channels=<1>;
			sensor_csi_ch0: channel@0 {
				reg = <0>;
				status = "okay";
				ports {
					status = "okay";
					sensor_csi_ch0_port0: port@0 {
						#address-cells = <1>;
						#size-cells = <0>;
						reg = <0>;
						status = "okay";
						sensor_csi_ch0_in: endpoint@0 {
							status = "okay";
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&sensor_out_a>;
						};
					};
					sensor_csi_ch0_port1: port@1 {
						#address-cells = <1>;
						#size-cells = <0>;
						reg = <1>;
						status = "okay";
						sensor_csi_ch0_out: endpoint@1 {
							status = "okay";
							remote-endpoint = <&sensor_vi_in0>;
						};
					};
				};
			};
		};
	};
};

Hello @ChenYann,

Since the MIPI signals are present, one thing you could try is adding the following line under your mode0 node in the device tree:

lane_polarity = "6";

In some cases on Orin platforms this is required depending on the carrier board routing. It may be worth giving it a try if you haven’t already.

Also, I noticed dpcm_enable = "true" in your device tree. If your IMX678 is outputting standard RAW12 (not DPCM-compressed), I’d try setting it to "false" and testing again.

Hope it helps!

Jose Morera
Embedded Software Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com