I was trying to flash my jetson Orin NX using this command:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" --showlogs --network usb0 p3509-a02+p3767-0000 internal
but I was getting this flash failure
Writing /mnt/internal/gpt_secondary_3_0.bin (16896 bytes) into /dev/mtd0:67091968
Copied 16896 bytes from /mnt/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 182]: l4t_flash_from_kernel: Successfully flash the qspi
[ 182]: l4t_flash_from_kernel: Failed to write to APP
[ 182]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
[ 182]: l4t_flash_from_kernel: Error flashing external device
Flash failure
Cleaning up…