I am trying to port 12 camera modules to NV Xavier-Industrial.
After I configure the channel numbers of tegra-capture-vi to 12, the system is crashed when boots up and shows me the port numbers should not be more than 8.
Would you please help to suggest me how to do that for 12 camera?
[ 3.168605] tegra-camrtc-capture-vi tegra-capture-vi: Invalid NVCSI stream Id
[ 3.169687] tegra-camrtc-capture-vi tegra-capture-vi: Invalid NVCSI stream Id
[ 3.176930] tegra-camrtc-capture-vi tegra-capture-vi: port index >7!
[ 3.183629] tegra-camrtc-capture-vi tegra-capture-vi: tegra_channel_csi_init:Fail to parse port info
[ 3.192194] tegra-camrtc-capture-vi tegra-capture-vi: channel init failed
[ 3.199024] tegra-camrtc-capture-vi tegra-capture-vi: port index >7!
[ 3.205833] tegra-camrtc-capture-vi tegra-capture-vi: tegra_channel_csi_init:Fail to parse port info
[ 3.214768] tegra-camrtc-capture-vi tegra-capture-vi: channel init failed
[ 3.221593] tegra-camrtc-capture-vi tegra-capture-vi: port index >7!
[ 3.228405] tegra-camrtc-capture-vi tegra-capture-vi: tegra_channel_csi_init:Fail to parse port info
[ 3.237159] tegra-camrtc-capture-vi tegra-capture-vi: channel init failed
[ 3.243822] tegra-camrtc-capture-vi tegra-capture-vi: port index >7!
[ 3.250454] tegra-camrtc-capture-vi tegra-capture-vi: tegra_channel_csi_init:Fail to parse port info
[ 3.259384] tegra-camrtc-capture-vi tegra-capture-vi: channel init failed
I try to change the Port Index, and then the system can boot up normally.
But when I try to capture video by gst-launch-1.0 command, something wrong from dmesg like as below.
Do you have any ideas?
=
[ 2005.311726] ar0233 2-0044: Index = 0x0005 , format = 0x59565955, width = 1920, height = 1080, frate num = 30
[ 2009.057795] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 2009.058055] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2009.059059] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2009.059272] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 2009.059489] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2009.059655] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 1
[ 2009.060255] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 2011.873772] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 2011.874017] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2011.875125] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2011.875317] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 2011.875535] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2011.875693] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 1
[ 2011.876300] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 2014.505762] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 2014.506039] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2014.507020] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2014.507185] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 2014.507420] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2014.507600] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 1
[ 2014.508270] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 2014.512764] ar0233 2-0044: mcu_cam_stream_off 250 CAM Get CMD Stream off Success !!
please also review device tree settings, you must set the vc-id property in the gmsl-link node for each sensor to match the vc_id property in the sensor mode device node.
it sometimes clock configuration issue,
please have a try to execute below commands to boost all the VI/CSI/ISP clocks.
for example,
sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate
furthermore,
is it possible to probe the hardware signaling for issue narrow down?
you may need to ensure there’s MIPI signal sending to CSI brick.
I correct the SERDES parameters and then can measure the MIPI signals (data and clock) output from deserializer by oscilloscope.
I can see all the signals from oscilloscope but Xavier-Industrial still shows me timeout messages.
Can you suggest me something? Thanks.
please gather the logs for reference, for example, what’s the VI tracing logs shows?
you may also have a try to execute the commands to boost all the VI/CSI/ISP clocks.