This is the connection between my chip and jetson. May I ask whether the connection is correct and which port-index should be used in nvcsi and vi
My camera is 2 lane csi, Design Guide Where can I find it
Keep the I2C, MCLK, PWDN and CLK, CSI0, CSI1 lines. Have you ever make a camera board before?
Since the image does not appear now, our hardware is wondering whether there is a connecting error. We have connected I2C, CLK, CSI0 and CSI1 lines.
There’s an external clock on the camera, so we’re not connected to MCLK,
Our camera is always on, so the PWDN pin is not used
Now do we have to use the clock provided by jetson?
Suppose don’t need MCLK and PWND for your case.
You need add lane_polarity = “6”; for connect to CSI0 and CSI1 and port-index should be 1.
Thanks
Can I get some specific log from rtcpu (trace events) if there are data input to nvcsi phy?
For example,
Events like “rtcpu_nvcsi_intr”.
Or, any other events if correct csi data came into nvidia soc?
The rtcpu_nvcsi_intr tell while nvcsi found some error on the MIPI bus.
For your case could be didn’t have output signal from sensor or incorrect CSI port configuration.
Our hardware engineer has repeatedly tested and confirmed with the original sensor factory that there is stream signal output on MIPI, is this waveform valid?
You may need to check the data field of PHY_INTR0/PHY_INTR1 to know what’s exactly the error reported.
As described earlier, I still don’t have get the PHY_INTR0/PHY_INTR1 field, and that’s where I get confused.
Please pass the log here instead of screen shot.
this my log
v4l2-ctl-7321 [000] .... 136107.595345: tegra_channel_set_power: ov428 10-0036 : 0x1
v4l2-ctl-7321 [000] .... 136107.595363: camera_common_s_power: status : 0x1
v4l2-ctl-7321 [000] .... 136107.595377: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-7321 [000] .... 136107.595381: csi_s_power: enable : 0x1
v4l2-ctl-7321 [000] .... 136107.596257: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
v4l2-ctl-7321 [001] .... 136107.604162: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-7321 [001] .... 136107.617169: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-7321 [001] .... 136107.617171: csi_s_stream: enable : 0x1
v4l2-ctl-7321 [001] .... 136107.617712: tegra_channel_set_stream: ov428 10-0036 : 0x1
kworker/1:0-6094 [001] .... 136107.642621: rtcpu_string: tstamp:4254785397631 id:0x04010000 str:"VM0 activating."
kworker/1:0-6094 [001] .... 136107.642624: rtcpu_vinotify_event: tstamp:4254786073084 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136153138005408 data:0x759d580010000000
kworker/1:0-6094 [001] .... 136107.642624: rtcpu_vinotify_event: tstamp:4254786073222 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136153138011872 data:0x0000000031000001
kworker/1:0-6094 [001] .... 136107.642624: rtcpu_vinotify_event: tstamp:4254786073379 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136153138077536 data:0x759d550010000000
kworker/1:0-6094 [001] .... 136107.642625: rtcpu_vinotify_event: tstamp:4254786073519 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136153138084096 data:0x0000000031000002
vi-output, ov42-7323 [000] .... 136110.346667: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
kworker/1:0-6094 [001] .... 136110.402552: rtcpu_vinotify_event: tstamp:4254871793685 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136155880810048 data:0x759d580010000000
kworker/1:0-6094 [001] .... 136110.402555: rtcpu_vinotify_event: tstamp:4254871793821 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136155880852768 data:0x0000000031000001
kworker/1:0-6094 [001] .... 136110.402556: rtcpu_vinotify_event: tstamp:4254871793978 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136155880870400 data:0x759d550010000000
kworker/1:0-6094 [001] .... 136110.402557: rtcpu_vinotify_event: tstamp:4254871794112 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136155880930784 data:0x0000000031000002
vi-output, ov42-7323 [001] .... 136113.158630: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
kworker/1:2-7164 [001] .... 136113.214476: rtcpu_vinotify_event: tstamp:4254959685290 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136158692804384 data:0x759d580010000000
kworker/1:2-7164 [001] .... 136113.214478: rtcpu_vinotify_event: tstamp:4254959685429 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136158692847040 data:0x0000000031000001
kworker/1:2-7164 [001] .... 136113.214478: rtcpu_vinotify_event: tstamp:4254959685586 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136158692864672 data:0x759d550010000000
kworker/1:2-7164 [001] .... 136113.214479: rtcpu_vinotify_event: tstamp:4254959685727 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136158692925024 data:0x0000000031000002
vi-output, ov42-7323 [000] .... 136115.974800: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
kworker/1:2-7164 [001] .... 136116.018394: rtcpu_vinotify_event: tstamp:4255047160716 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136161508933344 data:0x759d580010000000
kworker/1:2-7164 [001] .... 136116.018396: rtcpu_vinotify_event: tstamp:4255047160852 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136161508976032 data:0x0000000031000001
kworker/1:2-7164 [001] .... 136116.018396: rtcpu_vinotify_event: tstamp:4255047161005 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136161508993600 data:0x759d550010000000
kworker/1:2-7164 [001] .... 136116.018396: rtcpu_vinotify_event: tstamp:4255047161137 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:136161509054048 data:0x0000000031000002
vi-output, ov42-7323 [000] .... 136118.790710: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
kworker/1:2-7164 [001] .... 136125.046147: rtcpu_string: tstamp:4255329423863 id:0x04010000 str:"VM0 deactivating."
Do you using customized carrier camera board instead of devkit?
The camera connect to CSI0? or CSI2?
Hi Shane we are using a custom developed board, and our camera is connected to CSI0
The schematic of the port on Jetson side we are using:
OK, try the port-index = 0
Hi ShaneCCC,
I set poert-index=0, get the same log
kworker/3:2-160 [003] .... 53.183020: rtcpu_string: tstamp:3085104486 id:0x04010000 str:"VM0 deactivating."
v4l2-ctl-2563 [003] .... 72.554016: tegra_channel_open: vi-output, ov428 10-0036
v4l2-ctl-2563 [003] .... 72.564644: tegra_channel_set_power: ov428 10-0036 : 0x1
v4l2-ctl-2563 [003] .... 72.564668: camera_common_s_power: status : 0x1
v4l2-ctl-2563 [003] .... 72.564681: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2563 [003] .... 72.564684: csi_s_power: enable : 0x1
v4l2-ctl-2563 [003] .... 72.565592: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
v4l2-ctl-2563 [003] .... 72.573664: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2563 [003] .... 72.585760: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2563 [003] .... 72.585762: csi_s_stream: enable : 0x1
v4l2-ctl-2563 [003] .... 72.586085: tegra_channel_set_stream: ov428 10-0036 : 0x1
kworker/3:2-160 [003] .... 72.586960: rtcpu_string: tstamp:3691891507 id:0x04010000 str:"VM0 activating."
kworker/3:2-160 [003] .... 72.642962: rtcpu_vinotify_event: tstamp:3692561650 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:118146060768 data:0x759d580010000000
kworker/3:2-160 [003] .... 72.642964: rtcpu_vinotify_event: tstamp:3692561788 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:118146067232 data:0x0000000031000001
kworker/3:2-160 [003] .... 72.642965: rtcpu_vinotify_event: tstamp:3692561941 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:118146127648 data:0x759d550010000000
kworker/3:2-160 [003] .... 72.642965: rtcpu_vinotify_event: tstamp:3692562072 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:118146134176 data:0x0000000031000002
vi-output, ov42-2565 [002] .... 75.279729: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
kworker/3:2-160 [003] .... 75.338965: rtcpu_vinotify_event: tstamp:3777198043 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:120853141696 data:0x759d580010000000
kworker/3:2-160 [003] .... 75.338967: rtcpu_vinotify_event: tstamp:3777198180 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:120853184384 data:0x0000000031000001
kworker/3:2-160 [003] .... 75.338968: rtcpu_vinotify_event: tstamp:3777198333 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:120853202016 data:0x759d550010000000
kworker/3:2-160 [003] .... 75.338969: rtcpu_vinotify_event: tstamp:3777198464 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:120853262400 data:0x0000000031000002
vi-output, ov42-2565 [001] .... 78.867978: tegra_channel_capture_setup: vnc_id 0 W 1500 H 1500 fmt c4
kworker/3:2-160 [003] .... 86.154100: rtcpu_string: tstamp:4114987402 id:0x04010000 str:"VM0 deactivating."
and dmesg log
[ 75.231182] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 75.243919] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 75.253508] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 75.261235] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 75.271903] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 75.280530] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 77.791856] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 77.800994] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 77.810598] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 77.818325] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 77.828993] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 78.848197] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[ 78.856532] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_control_send_message: failed to send IVC control message
[ 79.872517] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[ 79.880871] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[ 79.888234] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
Below is my device tree,
mode0 {
num_lanes = "2";
tegra_sinterface = "serial_b";
embedded_metadata_height = "0";
readout_orientation = "0";
lane_polarity = "6";
active_w = "1500";
active_h = "1500";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
min_gain_val = "0"; // mdB
max_gain_val = "48000"; // mdB
step_gain_val = "100"; // mdB
default_gain = "0"; // mdB
min_exp_time = "1"; // us
max_exp_time = "1000000"; // us
step_exp_time = "1"; // us
default_exp_time = "10000"; // us
min_framerate = "100"; // mHz
max_framerate = "60000"; // mHz
step_framerate = "100"; // mHz
default_framerate = "60000"; // mHz
gain_factor = "1000";
exposure_factor = "1000000";
framerate_factor = "1000";
inherent_gain = "1";
min_hdr_ratio = "1";
max_hdr_ratio = "1";
line_length = "1516";
phy_mode = "DPHY";
discontinuous_clk = "no";
// mclk_khz = "24000";
pix_clk_hz = "112500000";
// mclk_multiplier = "0.0";
cil_settletime = "0";
dpcm_enable = "false";
};
Maybe adjust the pix_clk_hz to check if any different.
Thanks
I tried the other two pix_clk_hz,still get the same result
Using sensor CSI lane output rate:
1.5GHZ * 2 /10 = 300000000
Using frame size and frame rate:
1516 * 1516 * 60 = 137895360
PHY_INTR0/PHY_INTR1 is triggered when any csi data is received, or must the correct data be obtained,I never got them.
Do you have any other suggestions? Thanks