How to upgrade the DTB of NVIDIA AGX Orin online

How do I update the compiled dtb file to AGX ORIN? Simply replacing the device tree file under /boot/dtb and then rebooting does not seem to take effect


image

You could try FDT line like below, leave all of your existing lines above and below FDT, and point to your *.dtb

sudo nano /boot/extlinux/extlinux.conf

 LABEL primary-backup
      LINUX /boot/Image
      FDT /boot/dtb/kernel_tegra264-p4071-0000+p3834-0008-nv.dtb
      INITRD /boot/initrd

The system cannot start normally after adding FDT

Do you boot from nvme or mmc?

boot from EMMC

— 🤖 This is an automated AI response. I’m here to help, but please verify important details! —

To update the compiled DTB file on the NVIDIA AGX Orin, you can follow these steps:

  1. Copy the compiled DTB file to the /boot/dtb directory.
  2. Replace the existing DTB file with the new one.
  3. Reboot the system.

However, simply replacing the DTB file and rebooting may not take effect. You need to ensure that the new DTB file is used by the system.

According to the provided context, you can use the following command to update the DTB file:

sudo cp tegra234-p3701-0008-p3737-0000.dtb /boot/dtb/kernel_tegra234-p3701-0008-p3737-0000.dtb

Additionally, you can verify the current configuration by running the following command:

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

This will extract the current device tree configuration, which you can compare with your modified DTB file to ensure that the changes have taken effect.

It’s also important to note that the DTB file should be compiled and generated correctly before updating it on the system. If you’re experiencing issues with updating the DTB file, you may want to review the compilation and generation process to ensure that it’s correct.

In summary, updating the DTB file on the NVIDIA AGX Orin requires copying the compiled DTB file to the /boot/dtb directory, replacing the existing DTB file, and rebooting the system. You can verify the current configuration by extracting the device tree configuration using the dtc command.

— We support team will also look into your issue to have further suggestions soon. please stay tuned. —

How can we determine whether the device tree used by the device is kernel_tegra234-p3701-0008-p3737-0000.dtb or another one?

Are you able to boot the Orin? If so after running the command noted above

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

Then grep extracted_proc.dts or open in text editor and search for a distinct word or value you added to the dtb.

I just tried to use the following command to obtain extracted_proc.dts

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

The device tree file under /boot/dtb is inconsistent. What could be the possible reasons for this? Is there anything else I should be aware of

You could check the dtb?

dtc -I dtb -O dts \
  -o tegra234-decompiled.dts \
  /boot/dtb/kernel_tegra234-realname.dtb

I decompiled the dtb file generated by myself and confirmed that there were no issues.

Hi 1533928007,

Are you using the devkit or custom board for AGX Orin?
What’s the Jetpack version in use?

Can your board boot as expected after flash?
If so, please check if you have specified the FDT entry in /boot/extlinux/extlinux.conf.
You can also check UEFI Adaptation — DTB Support for the workflow of device tree loading.