You cannot directly open camera 0. You need to open camera 1 and then camera 0

I used xavier, jetpack4.9, camera model ar0231, serializer model max96705, deserializer model max9296, and two cameras connected to one deserializer. When I open camera 0 directly, kernel error and trace log are as follows:
trace log:
trace.log (469.0 KB)
kernel log:
kernel.log (82 Bytes)
Can someone help me with this? Thanks.

hello skr_giao,

is this a typo?
could you please double check the release version with… $ cat /etc/nv_tegra_release

it shows PHY interrupts by checking VI tracing logs,
the failure 0x10 indicate there’s data-lane FIFO overflow failure.
for example,
rtcpu_nvcsi_intr: tstamp:3731874930 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000010

could you please examine sensor device tree,
please check you’re using virtual channel ID to assign each of camera nodes correctly.
here’s developer guide for your reference, Jetson Virtual Channel with GMSL Camera Framework.
thanks

Thanks for your quick reply.


# R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 26 04:34:27 UTC 2020

Below is my sensor device tree and I think the virtual channel id configuration is correct

		vi@15c10000 {
			num-channels = <8>;
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
            #if 1
				port@0 {
					reg = <0>;
					ap0202_vi_in0: endpoint {
						vc-id = <0>;
						port-index = <0>;
						bus-width = <4>;
						remote-endpoint = <&ap0202_csi_out0>;
					};
				};
				port@1 {
					reg = <1>;
					ap0202_vi_in1: endpoint {
						vc-id = <1>;
						port-index = <0>;
						bus-width = <4>;
						remote-endpoint = <&ap0202_csi_out1>;
					};
				};




	i2c@3180000 {

			ap0202_a@1b {
				compatible = "nvidia,ap0202";
				reg = <0x1b>;
				physical_w = "15.0";
				physical_h = "12.5";
				sensor_model ="ar0231-SG";
				post_crop_frame_drop = "0";
				use_decibel_gain = "true";
				delayed_gain = "true";
				//use_sensor_mode_id = "true";
				mode0 {
					mclk_khz = "24000";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					vc_id = "0";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					active_w = "1920";
					active_h = "1080";
					pixel_t = "yuv_yuyv16";
					readout_orientation = "0";
					line_length = "4400";
					inherent_gain = "1";
					pix_clk_hz = "148500000";
					serdes_pix_clk_hz = "150000000";
					min_framerate = "30";
					max_framerate = "30";
					embedded_metadata_height = "0";
				};
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						ap0202_ap0202_out0: endpoint {
							vc-id = <0>;
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&ap0202_csi_in0>;
							};
						};
					};
				gmsl-link {
					src-csi-port = "b";
					dst-csi-port = "b";
					serdes-csi-link = "a";
					csi-mode = "1x4";
					st-vc = <0>;
					vc-id = <0>;
					num-lanes = <4>;
					streams = "yuv422-8";
					};
				};
			ap0202_b@1c {
				compatible = "nvidia,ap0202";
				reg = <0x1c>;
				physical_w = "15.0";
				physical_h = "12.5";
				sensor_model ="ar0231-SG";
				post_crop_frame_drop = "0";
				use_decibel_gain = "true";
				delayed_gain = "true";
				//use_sensor_mode_id = "true";
				mode0 {
					mclk_khz = "24000";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					vc_id = "1";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					active_w = "1920";
					active_h = "1080";
					pixel_t = "yuv_yuyv16";
					readout_orientation = "0";
					line_length = "4400";
					inherent_gain = "1";
					pix_clk_hz = "148500000";
					serdes_pix_clk_hz = "150000000";
					min_framerate = "30";
					max_framerate = "30";
					embedded_metadata_height = "0";
				};
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						ap0202_ap0202_out1: endpoint {
							vc-id = <1>;
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&ap0202_csi_in1>;
							};
						};
					};
				gmsl-link {
					src-csi-port = "b";
					dst-csi-port = "b";
					serdes-csi-link = "b";
					csi-mode = "1x4";
					st-vc = <0>;
					vc-id = <1>;
					num-lanes = <4>;
					streams = "yuv422-8";
					};
				};

hello skr_giao,

this property, dst-csi-port = "b"; looks incorrect.
it’s the destination CSI port on the Jetson side, according to your DT sources, you’re using CSI-A.

hello Jerry Chang

Thank you for your support. I have solved this problem. It is the problem of 9296 driver.

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