Modified Camera DTB Not Loaded After Adding FDT Entry in extlinux.conf

Hi NVIDIA Team,

I am working with a Jetson Orin NX 16 GB SOM running Jetson Linux R36.5 / JetPack 6.2.2.

I am currently modifying some camera parameters in the device tree. The source file I modified is:

Linux_for_Tegra/source/hardware/nvidia/t23x/nv-public/overlay/tegra234-camera-rbpcv2-ap1302.dtsi

After modifying the camera parameters, I built the device tree and generated:

kernel_tegra234-p3768-0000+p3767-0000-nv.dtb

I copied this DTB to the Jetson:

/boot/kernel_tegra234-p3768-0000+p3767-0000-nv.dtb

and added the following to /boot/extlinux/extlinux.conf:

FDT /boot/kernel_tegra234-p3768-0000+p3767-0000-nv.dtb

After rebooting, I am checking the running/live device tree using:

cd /sys/firmware/devicetree/base/

I then inspect the camera-related nodes and parameters from this location.

However, the camera device-tree changes that I made in the source .dtsi are not reflected in:

/sys/firmware/devicetree/base/

Can you please confirm whether the following DTB-only deployment procedure is correct for Jetson Orin NX 16 GB running Jetson Linux R36.5 / JetPack 6.2.2, and whether I need to copy or modify any additional DTB/DTBO files or partitions for camera device-tree changes to take effect?

I would also appreciate guidance on how to verify which final DTB/DTBO is actually being loaded and applied during boot.

Thank you.

Hi @archa.cp,

The .dtsi file should be included from a .dts file. You can check whether it is already included with:

grep -Rn tegra234-camera-rbpcv2-ap1302.dtsi Linux_for_Tegra/sources/

This will display the file containing the include statement. If it is not included, create or modify the appropriate overlay .dts file and include the camera .dtsi file as needed.

The files being edited are device-tree overlays. During the kernel build, the .dts overlays are compiled into .dtbo files with the same base name under:

sources/kernel-devicetree/generic-dts/dtbs/

Copy the generated .dtbo file to the Jetson, then use Jetson-IO to apply the overlay:

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

Select the following options to apply the overlay:

  • Configure Jetson 22-pin CSI Connector
  • Configure for compatible hardware
  • Select compiled overlay name
  • Save pin changes
  • Save and reboot to reconfigure the pins

The overlay name should be listed in the overlay-name variable in the .dts file

After the reboot you can check if the overlay was applied with the following command:

sudo dtc -I fs -O dts -o running.dts /proc/device-tree

Regards,

Kimberly Carvajal
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

hello archa.cp,

firstly, please check the boot options of extlinux.conf to ensure you’re loading device tree correctly.
for instance,
here’s demonstration to configure AGX Orin to enable dual IMX274.
as you can see.. it’s boot option to choose JetsonIO label, and loading those related dtb/dtbo files.

DEFAULT JetsonIO

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel

LABEL JetsonIO
        MENU LABEL Custom Header Config: <CSI Jetson Camera Dual-IMX274>

        FDT /boot/dtb/kernel_tegra234-p3737-0000+p3701-0000-nv.dtb
        OVERLAYS /boot/tegra234-p3737-camera-dual-imx274-overlay.dtbo

secondly, you may have an alternative ways to disassembler the single dtb file into text file.
for instance,
here’s commands to disassembler the single dtb file into txt file.
$ sudo dtc -I dtb -O dts -o temp.dts tegra264.dtb
you may edit the temp.dts, and then using below commands to convert DTS to a new DTB binary for testing.
$ sudo dtc -I dts -O dtb -o new-output.dtb temp.dts