Error trying to Flash dtb

running the following command

sudo ./ -k DTB jetson-xavier-nx-devkit-emmc mmcblk0p1

results with this error
Error: Return value 13
Command tegradevflash_v2 --write DTB 1_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
Failed to flash/read t186ref.

i am not trying to flash a changed DTB just the original version that comes in Jetson_Linux_R32.4.2_aarch64

am i missing something?

DTB is the correct partition name for the Nano but not for the NX. For the NX it’s kernel-dtb. You can also use an FDT entry in extlinux.conf and just point it to the correct dtb in the /boot partition. CBoot looks for that first then uses the kernel-dtb partition if it can’t find it.

Something like…

FDT /boot/tegra194-p3668-all-p3509-0000.dtb