IMX477 4lane on CAM1

is there a way to configure dual cameras on orin-nx using jetpack 6.2.1, either 2 lane or 4 lane. I have tried everything and I can only get CAM1 working with imx219

Is dual camera possible at all, if so, what is the procedure.

hello dakejahl,

since you’re testing with v4l2 IOCTL, besides to apply a patch to revert faulty DT settings, you’ll also need to revise mode definition for loading 4-lane configure.
for instance,
$public_sources/kernel/nvidia-oot/drivers/media/i2c/imx477_mode_tbls.h

static const struct camera_common_frmfmt imx477_frmfmt[] = { 
        {{3840, 2160}, imx477_30_fr, 1, 0, IMX477_MODE_3840x2160_30FPS_4LANE},
        {{1920, 1080}, imx477_60_fr, 1, 0, IMX477_MODE_1920x1080_60FPS_4LANE},

please also add some debug prints within sensor driver side to check it’s loading correct mode settings.

hello rapidproto,

that’s strange, we’ve tested dual IMX219 on Orin Nano, it worked normally.
please have another new discussion thread if you need further supports.

I made the changes as you suggested, and now I see an error when the driver loads. Can you please provide the patch? I have no experience with this code and it would be much easier if you could provide the patch and I can apply/build/test and report back.
```
jetson@jetson:~$ sudo dmesg | grep imx
[sudo] password for jetson:
[ 9.753276] imx219 10-0010: tegracam sensor driver:imx219_v2.0.6
[ 9.763999] imx219 10-0010: imx219_board_setup: error during i2c read probe (-121)
[ 9.769097] imx219 10-0010: board setup failed
[ 9.769149] imx219: probe of 10-0010 failed with error -121
[ 9.772044] imx477 9-001a: tegracam sensor driver:imx477_v2.0.6
[ 9.774527] imx219 11-0010: tegracam sensor driver:imx219_v2.0.6
[ 9.785329] imx219 11-0010: imx219_board_setup: error during i2c read probe (-121)
[ 9.790529] imx219 11-0010: board setup failed
[ 9.790738] imx219: probe of 11-0010 failed with error -121
[ 9.791130] imx219 12-0010: tegracam sensor driver:imx219_v2.0.6
[ 9.802163] imx219 12-0010: imx219_board_setup: error during i2c read probe (-121)
[ 9.807325] imx219 12-0010: board setup failed
[ 9.807371] imx219: probe of 12-0010 failed with error -121
[ 10.073800] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx477 9-001a bound
[ 196.748348] imx477 9-001a: Error updating control ranges -22
[ 196.748984] imx477 9-001a: Error updating control ranges -22
[ 216.705763] imx477 9-001a: Error updating control ranges -22
[ 216.706266] imx477 9-001a: Error updating control ranges -22
```

hello dakejahl,

just an FYI,

I’ve digging into this.
you should ignore previous comment #29 for loading 4-lane configure.
imx477_set_mode() should parse 2-lane or 4-lane settings correctly to write the mode table.
the root cause looks like IMX477’s 4-lane configure it’s not outputting camera frames completely.

if that’s possible, please rollback to JP-5 to confirm IMX477’s 4-lane settings.

hello dakejahl,

we’ve some internal investigation by checking schematic file of Raspberry PI HQ (IMX477).
it turns out IMX477 only has 2-lanes which seems standard for all their cameras based on their camera cable and connector design. according to the schematics, 4-lanes will never work.
that’s a mistake for adding IMX477’s 4-lane settings for Raspberry PI HQ. we’re having code review progress to remove that.

@JerryChang please see the first message in this thread. We are not using the raspberry pi cam…

Is there an off-the-shelf 4-lane camera that is KNOWN to work on the Jetson Orin Nano?

add @xingxing for sharing some info regrading to 4-lane camera on Orin Nano (J21,CAM1,CSI-C/D)

Yes. We verified CSI0-C/D can work at 4lane mode. Leopard imx477 can work at 4lane mode. But I’m not sure if we have the driver. You can contact support@leopardimaging.com to check.

Thanks

Xingxing

Which version of Jetpack are you using? Are you using the NVIDIA Dev Kit Carrier? Are you using a custom device tree overlay and oot kernel module?

Yes. using NVIDIA Dev Kit. The SDK is 36.4.3 and custom device tree overlay.

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