Hi everyone,
I use JetPack7.2.1,I want to burn dtb to Orin devkit. How to use flash.sh script? Thanks
Hi everyone,
I use JetPack7.2.1,I want to burn dtb to Orin devkit. How to use flash.sh script? Thanks
Which dtb file? Does Orin have nvme or only mmc? Is it encrypted and is
sudo nvbootctrl is-rootfs-ab-enabled
I want update “tegra234-p3737-0000+p3701-0000-nv.dtb” file.
If you want to test it copy it to /boot
Then edit /boot/extlinux/extlinux.conf and add FDT line like below
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
FDT /boot/tegra234-p3737-0000+p3701-0000-nv.dtb
INITRD /boot/initrd
sudo reboot
If you modified that file copy it to
Linux_for_Tegra/kernel/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb
To flash this should work
sudo ./flash.sh -r -k kernel-dtb \
jetson-agx-orin-devkit internal
If you want to install the original Nvidia Jetpack 7.2.1 tegra234-p3737-0000+p3701-0000-nv.dtb this would do it.
sudo apt install --reinstall nvidia-l4t-kernel-dtbs
Thanks for the reply. I’ve tried the FDT method in /boot/extlinux/extlinux.conf and it works—the device tree overlay takes effect after reboot.
However, I’m running into an issue when trying to flash the DTB using the flash.sh script. The command I’m using is:
sudo ./flash.sh -r -k kernel-dtb jetson-agx-orin-devkit internal
And I’m getting this error:
Error: Can not find partition type for kernel-dtb
Failed to flash/read generic.
So my questions are:
1. How do I flash a custom DTB to the correct partition?
2. How do I flash a custom DTBO alongside the DTB?
Thanks.
I believe you would add a second OVERLAY_DTB_FILE like in this example:
grep '^OVERLAY_DTB_FILE' jetson-agx-orin-devkit.conf
OVERLAY_DTB_FILE="L4TConfiguration.dtbo,tegra234-p3737-0000+p3701-0000-dynamic.dtbo,tegra234-carveouts.dtbo,tegra-optee.dtbo,tegra234-p3737-camera-dual-imx274-overlay.dtbo,tegra234-p3737-camera-e3331-overlay.dtbo,tegra234-p3737-camera-e3333-overlay.dtbo,tegra234-p3737-camera-imx185-overlay.dtbo,T234SetFmpImageTypeGuid.dtbo";
OVERLAY_DTB_FILE="${OVERLAY_DTB_FILE},YOUR.dtbo";
Then:
# Flash custom base kernel DTB
sudo ./flash.sh -r -k A_kernel-dtb jetson-agx-orin-devkit mmcblk0p1
# Flash UEFI containing OVERLAY_DTB_FILE DTBOs
sudo ./flash.sh -r -k A_cpu-bootloader jetson-agx-orin-devkit mmcblk0p1
Default setting is using UEFI DTB.
UEFI DTB is part of UEFI binary so if you flash cpu bootloader, it shall get updated.
Please be aware that you need to remove FDT in extlinux.conf. Otherwise the one you assigned in extlinux.conf will be in use.