How to add 12 ports of tegra-capture-vi by orin sdk6.0?

I am trying to port 12 camera modules to orin 32Gb by jetpack 6.0
The video0~video7 device nodes are using CSI0 and CSI6 buses, and the display is normal.

There are four other cameras with the same configuration, 96712+96715, which generate video8~video11 device nodes normally. They use CSI6 and CSI7, but use commands to capture images. The kernel log prompts:
v4l2-ctl --stream-mmap -d /dev/video8
[ 1096.919378] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 1096.919401] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 1096.920208] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 1099.447441] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 1099.447458] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel

Using an oscilloscope to measure mipi with waveform output.
why ?

Hi,

For the camera basic functionality first needs to check the device and driver configuration.
You can reference to below program guide for the detailed information of device tree and driver implementation.
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#sensor-software-driver-programming

Please refer to Applications Using V4L2 IOCTL Directly by using V4L2 IOCTL to verify basic camera functionality.
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#to-run-a-v4l2-ctl-test

Once confirm the configure and still failed below link help to get log and some information and some tips for debug.
https://elinux.org/Jetson/l4t/Camera_BringUp#Steps_to_enable_more_debug_messages

Thanks!

都试过了,,,才提问的

请问,csi6跟csi7 的vi 总线是否可以支持使用?

CSIE/F and CSI-G/H only support one camera.
So the max support without virtual channel is 6 cameras.
Please check the design guide for the detai.

CSI-A (1/2 lanes)
CSI-B (1/2 lanes)
CSI-C (1/2 lanes)
CSI-D (1/2 lanes)
CSI-E/F (1/2/4 lanes)
CSI-G/H(1/2/4 lanes)

There is a virtual channel available!!!!!!!
3x 4lanes, each lane connected to a camera, for a total of 12 virtual channel cameras

3x 4lanes:
A:CSI-A+CSI-B /4lanes
B:CSI-E+CSI-F /4lanes
C:CSI-G+CSI-H /4lanes

The problem is with group C

What’ s the port-index?

A:port-index = <0>;
B:port-index = <4>;
C:port-index = <6>;

A:port-index = <0>;
B:port-index = <4>;
C:port-index = <6>;

Please confirm the port-index of CSI-G in the tegra-capture-vi{} should be 5.

Okay, I’ll try changing all CSI-G related port indices to 5

Only need to change in the tegra-capture-vi{} in the nvcsi@xxx{} is correct.

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