I was porting two cameras on Jetson Orin NANO and I have already enabled one camera on CAM1 by below command.
DISPLAY=:0 gst-launch-1.0 v4l2src device=/dev/video1 ! \
"video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080" ! \
videoconvert ! xvimagesink sync=false
However, I cannot enable the same camera on CAM0 and I got the error message:
$ DISPLAY=:0 gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080" ! videoconvert ! xvimagesink sync=false
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 605.517215] bwmgr API not supported
[ 635.318419] bwmgr API not supported
[ 637.925707] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 637.934869] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 637.945920] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 637.953691] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 637.964423] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 637.972172] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 637.983127] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 640.741508] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 640.750672] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 640.761516] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 640.769232] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 640.779913] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 640.787654] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 640.798633] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
I checked and compared the device tree for tegra-capture-vi and nvcsi:
Is there any wrong setting for them?
tegra-capture-vi {
num-channels = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
rpi22_ap1302_vi_in0: endpoint {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rpi22_ap1302_csi_out0>;
};
};
vi_port1: port@1 {
reg = <1>;
rpi22_ap1302_vi_in1: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rpi22_ap1302_csi_out1>;
};
};
};
};
host1x@13e00000 {
nvcsi@15a00000 {
num-channels = <2>;
#address-cells = <1>;
#size-cells = <0>;
csi_chan0: channel@0 {
reg = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan0_port0: port@0 {
reg = <0>;
rpi22_ap1302_csi_in0: endpoint@0 {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rpi22_ap1302_out0>;
};
};
csi_chan0_port1: port@1 {
reg = <1>;
rpi22_ap1302_csi_out0: endpoint@1 {
remote-endpoint = <&rpi22_ap1302_vi_in0>;
};
};
};
};
csi_chan1: channel@1 {
reg = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan1_port0: port@0 {
reg = <0>;
rpi22_ap1302_csi_in1: endpoint@2 {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rpi22_ap1302_out1>;
};
};
csi_chan1_port1: port@1 {
reg = <1>;
rpi22_ap1302_csi_out1: endpoint@3 {
remote-endpoint = <&rpi22_ap1302_vi_in1>;
};
};
};
};
};
};