Flashing NVIDIA AGX Orin gets me "Either the device cannot mount the NFS server on the host or a flash command has failed." error

Hi,
I’m trying to flash my NVIDIA AGX Orin 64GB Developer Kit in SD Card. I’m following the exact steps given in the below link:

System configs:
OS: Ubuntu 22.04
external Memory: SD Card 256 GB
Jetson AGX Orin 64GB (Developer Kit)

flash_error_debug.txt (51.2 KB)

I used the l4t_initrd_flash.sh script for SD Card to flash the device:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device mmcblk0p1
-c tools/kernel_flash/flash_l4t_t234_nvme.xml
–showlogs --network usb0 jetson-agx-orin-devkit external

I changed the Partition configuration in the flash_t234_qspi_sdmmc.xml file for 256 Gb assigning the num_sector to 536870912.

I’m getting the following error while flashing:
[ 192]: l4t_flash_from_kernel: Writing /mnt/internal/gpt_backup_secondary_3_0.bin (16896 bytes) into /dev/mtd0:274877644800 failed
[ 192]: l4t_flash_from_kernel: Failed to write to APP
[ 192]: 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.
[ 192]: 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.
[ 192]: l4t_flash_from_kernel: Error flashing qspi
[ 192]: l4t_flash_from_kernel: Error flashing external device
Flash failure
Either the device cannot mount the NFS server on the host or a flash command has failed. Check your network setting (VPN, firewall,…) to make sure the device can mount NFS server. Debug log saved to /tmp/tmp.zGvMwqdbFC. You can access the target’s terminal through “sshpass -p root ssh root@fc00:1:1:0::2”

I suspected SSH block issue and executed the following command to allow the ssh address:
sudo apt update
sudo apt install nfs-kernel-server

sudo ufw status
sudo ufw allow from fc00:1:1:0::2 to any port nfs
sudo ufw allow from fc00:1:1::/48 to any port nfs

Still the issue persist. I also have this doubt about using mmcblk0p1 or mmcblk1p1 in the flash command. I’m attaching the error log for the flash from the start of the flashing process.
Thank you in Advance.

By seeing the error message it looks like related to the num_sector size you have updated

Also command for flashing SD card is as per the link you provided:

last parameter should be external

Sorry I used external and the command you have specified only, but pasted the command wrongly here.

256x1024x1024x1024/512 = 536870912,
I checked the calculation of the num_sector, this is the method they specified.

Hi,

Please insert your SD card into the PC or laptop, then run the following commands to check the sd card’s actual sector size.

sudo fdisk -l ${device}

The example you could refer this topic

Thanks

Hi @DavidDDD ,
Thank you for the reply. I couldn’t detect my SD card from the card reader. I could detect the same card in windows and did a exFAT format but I couldn’ detect the SD card in my Linux PC.
I used fdisk -l and also lsblk to find the card. Is there some problem with the SD card for not flashing ?

Hi,

Please run the dmesg command to view system logs or check for any errors that occur when the SD card is inserted into your Linux PC.

Thanks

Thank you @DavidDDD, there was some problem (related to exFAT partition error) from the Linux system in detecting the SD card. We switched to internal (eMMC) flash.

Hi,

Thank you for your response.
Please let us know if you still have issues related to this topic; otherwise, we will proceed to close this topic.

Thanks