Using two cameras with significant differences, unable to display -----JetPack5.1.2

Using two cameras with significant differences, 2MP and 8MP, in the same system, they cannot be displayed; However, if only one of them is configured, it will be displayed normally; I feel like it’s similar to pix_clk_hz and serdes_pix_clk_hz The values related to hz have an impact on

Additional note: Two cameras are located on different max96712 cameras

hello 305248199,

heterogeneous cameras is supported.
may I know which Jetpack release version you’re using, and, what’s the failure messages it has reported.

JetPack version is 5.1.2

MAX96712A Connected 2 8MP cameras 2X 4lane, csi0-1,csi2-3
pix_clk_hz = “148500000”;//497664000 594000000 297000000 74250000
serdes_pix_clk_hz = “297000000”;//1188000000 594000000 1333333333 4608000000 200000000
The above configuration can be displayed normally when two 8MPs are independently configured。

MAX96712B Connected 4 2MP cameras 4X 1lane, csi4
pix_clk_hz = “67777777”;
serdes_pix_clk_hz = “333333333”;

performance:
1,
Two 8MP cameras, when entering vlc to display images, the kernel log:
[ 170.747809] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 170.781120] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 170.814588] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 170.847898] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072

2,
4 2MP cameras, displaying images normally

hello 305248199,

did you meant it only works with one of 8MP camera sensor enabled?

please also note there’s polarity swap, i.e. CSI0 D1 and CSI1 D0 P/N will always been swizzled for P/N.
please use device tree property, lane_polarity to configure a polarity swap on any lane.

BTW,
did you use the Orin NX carrier board?
if you’re using developer kit, it’s Cam0 slot for using CSI-C, and Cam1 slot for using CSI-B.
CSI-C it doesn’t support with 4-lane configuration at the moment.

It’s orin!
In the case of only configuring 8MP, or modifying it
MAX96712B Connected 4 2MP cameras 4X 1lane, CSI4
pix_clk_hz andserdes_pix_clk_hz allows 8MP to display when 2MP cannot be displayed。
I feel like it’s similar to lane_polarity is irrelevant

hello 305248199,

I don’t fully understand your issue description.

let’s have a test with all your six camera connected to SerDes chip.
what’s your kernel init messages, are those six camera all register to linux system as video nodes? for instance, the results of… $ ls /dev/video*
what’s the test pipeline to enable these camera streams? please share pass/fail case for reference.

Yes, there are a total of six cameras, two 8MP cameras, and four 2MP cameras,

$ll/dev/video*

Crw rw --+1 root video 81, 0 Nov 22 10:27/dev/video0

Crw rw --+1 root video 81, 8 Nov 22 10:27/dev/video1

Crw rw --+1 root video 81, 10 Nov 22 10:27/dev/video2

Crw rw --+1 root video 81, 12 Nov 22 10:27/dev/video3

Crw rw --+1 root video 81, 14 Nov 22 10:27/dev/video4

Crw rw --+1 root video 81, 16 Nov 22 10:27/dev/video5

Can be adjusted by adjusting the pix_clk_hz and serdes_pix_clk_hz The parameters of hz can enable one camera to display normally. The principle is to configure the other set of parameters as incorrect, so that the other camera can display correctly

笔记

hello 305248199,

please refer to SerDes Pixel Clock to review the settings.
note, serdes_pix_clk_hz should be larger than pix_clk_hz clock settings.

我的意思,两种摄像头,按上面的配置,有一种配置不对,另一种就可以显示;如果分开独立只配置一种摄像头,分别都正常显示。

only serdes_pix_clk_hz is used for SerDes use-case.

我的每种摄像头配置都是 , serdes_pix_clk_hz 大于 ‘pix_clk_hz ’ 的值的呀

please check developer guide to review the settings. you may follow the formula to examine your clock values with the SerDes output rate.

你是觉得我那个配置有问题?

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