Issue with IMX219 Camera Detection on L4T Using Device Tree Overlay

Dear NVIDIA Support,

I am currently experiencing an issue with IMX219 camera detection when using L4T on a Jetson Orin NX development kit.

When flashing the device with JetPack 6.2.1, and applying the overlay /boot/tegra234-p3767-camera-p3768-imx219-dual.dtbo using the following command:

sudo /opt/nvidia/jetson-io/jetson-io.py

the IMX219 camera is correctly detected without any additional modifications. Everything works as expected.

However, when I follow the official L4T kernel customization instructions from:

and build a custom kernel with the following configuration:

CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_IMX219=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_TEGRA=m

and flash it to the Jetson Orin NX, the camera is not recognized, even after applying the same DTBO overlay via jetson-io.py.

Upon boot, the following error appears in the kernel logs:

imx219 9-0010: only 2 data lanes are currently supported
imx219: probe of 9-0010 failed with error -22

I have also tried setting CONFIG_VIDEO_IMX219=m and loading the module manually, but the same error occurs.

To reiterate:

  • JetPack works out of the box with the same DTBO overlay.
  • Custom kernel built from L4T fails with the same overlay, producing the error above.
  • I am using the Jetson Orin NX Development Kit

How can this issue be resolved? Is there an additional patch, driver configuration, or device tree property required in the L4T setup?

The attached files are:

  • jetpack_camera_log.txt
  • l4t_camera_log.txt

imx219_l4t.log (66.5 KB)
imx219_jetpack.log (65.5 KB)

hello jowonjin96,

please double check you’re download the same L4T public release sources package.
for instance, you should visit Jetson Linux Release 36.4.4 | NVIDIA Developer to download [Driver Package (BSP) Sources].

besides..
please share your steps for building, and replacing kernel modules.

I have also tested with L4T version 36.4.4, and the same error persists despite following the same procedure.

hello jowonjin96,

we would like to reproduce this on Orin NX developer kit as well.
could you please share your steps in details for cross-check.

Please note that the same error message appears regardless of whether the feature is built into the kernel or compiled as a module.

hello jowonjin96,

we cannot reproduce this issue locally.

please refer to developer guide, Building the Jetson Linux Kernel.
you should also extract all 3 sources packages for building the kernel.
for instance,

$ tar xpvf kernel_src.tbz2 
$ tar xpvf kernel_oot_modules_src.tbz2 
$ tar xpvf nvidia_kernel_display_driver_source.tbz2 
$ export CROSS_COMPILE=~/CROSS_COMPILE/Toolchain_gcc_11.3/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
make -C kernel
$ export INSTALL_MOD_PATH=~/JetPack/JetPack-6.2.1/Linux_for_Tegra/rootfs/
$ sudo -E make install -C kernel
$ cp kernel/kernel-jammy-src/arch/arm64/boot/Image ~/JetPack/JetPack-6.2.1/Linux_for_Tegra/kernel/Image