Either the device cannot mount the NFS server on the host or a flash command has failed

Hi @KevinFFF

thanks for your reply.

Nothing changed.

The following commands have the same results as mentioned below:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs jetson-orin-nano-devkit external

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi_nvme.xml" --showlogs jetson-orin-nano-devkit external

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi_nvme.xml" --showlogs jetson-orin-nano-devkit nvme0n1p1

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs jetson-orin-nano-devkit nvme0n1p1

Writing spe_t234_sigheader.bin.encrypt (parittion: B_spe-fw) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/spe_t234_sigheader.bin.encrypt
Writing /mnt/internal/spe_t234_sigheader.bin.encrypt (270336 bytes) into  /dev/mtd0:60424192
Copied 270336 bytes from /mnt/internal/spe_t234_sigheader.bin.encrypt to address 0x039a0000 in flash
Writing camera-rtcpu-t234-rce_sigheader.img.encrypt (parittion: B_rce-fw) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt
Writing /mnt/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt (458096 bytes) into  /dev/mtd0:61014016
Copied 458096 bytes from /mnt/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt to address 0x03a30000 in flash
Writing adsp-fw_sigheader.bin.encrypt (parittion: B_adsp-fw) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/adsp-fw_sigheader.bin.encrypt
Writing /mnt/internal/adsp-fw_sigheader.bin.encrypt (414960 bytes) into  /dev/mtd0:62062592
Copied 414960 bytes from /mnt/internal/adsp-fw_sigheader.bin.encrypt to address 0x03b30000 in flash
Writing nvpva_020_aligned_blob_w_bin_sigheader.fw.encrypt (parittion: B_pva-fw) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/nvpva_020_aligned_blob_w_bin_sigheader.fw.encrypt
Writing /mnt/internal/nvpva_020_aligned_blob_w_bin_sigheader.fw.encrypt (67024 bytes) into  /dev/mtd0:64159744
Copied 67024 bytes from /mnt/internal/nvpva_020_aligned_blob_w_bin_sigheader.fw.encrypt to address 0x03d30000 in flash
[ 248]: l4t_flash_from_kernel: Warning: skip writing B_reserved_on_boot partition as no image is specified
[ 248]: l4t_flash_from_kernel: Warning: skip writing uefi_variables partition as no image is specified
[ 248]: l4t_flash_from_kernel: Warning: skip writing uefi_ftw partition as no image is specified
[ 248]: l4t_flash_from_kernel: Warning: skip writing reserved partition as no image is specified
[ 248]: l4t_flash_from_kernel: Warning: skip writing worm partition as no image is specified
Writing bct_backup.img (parittion: BCT-boot-chain_backup) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/bct_backup.img
Writing /mnt/internal/bct_backup.img (32768 bytes) into  /dev/mtd0:66715648
Copied 32768 bytes from /mnt/internal/bct_backup.img to address 0x03fa0000 in flash
[ 248]: l4t_flash_from_kernel: Warning: skip writing reserved_partition partition as no image is specified
Writing gpt_backup_secondary_3_0.bin (parittion: secondary_gpt_backup) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/gpt_backup_secondary_3_0.bin
Writing /mnt/internal/gpt_backup_secondary_3_0.bin (16896 bytes) into  /dev/mtd0:999935737856
lseek(): Invalid argument
[ 248]: l4t_flash_from_kernel: Writing /mnt/internal/gpt_backup_secondary_3_0.bin (16896 bytes) into /dev/mtd0:999935737856 failed
[ 248]: 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.
[ 248]: l4t_flash_from_kernel: Error flashing qspi
Flash failure
Either the device cannot mount the NFS server on the host or a flash command has failed. Debug log saved to /tmp/tmp.Dphs6JaV1H. You can access the target's terminal through "sshpass -p root ssh root@fc00:1:1:0::2" 
Cleaning up...

It is Jetpack 6.

As it’s mentioned in the output, 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., it seems that the device size is not correct in xml file.
I assume it’s num_sectors in bootloader/generic/cfg/flash_t234_qspi.xml

<device type="spi" instance="0" sector_size="512" num_sectors="1953000000" >