Restore Nvme Clone Writing system.img takes forever

Hi, i’m using orin agx devkit with NVMe as the rootfs. I used the below command to flash my original image

sudo ./flash.sh --no-systemimg -c bootloader/t186ref/cfg/flash_t234_qspi.xml jetson-agx-orin-devkit mmcblk0p1
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-only --network usb0 --external-device nvme0n1 -c tools/kernel_flash/flash_l4t_external.xml jetson-agx-orin-devkit  nvme0n1p1

the system successfully booted up.

I configured the system and then I followed this tutorial to backup my /dev/nvme0n1p1 to a USB.

Then I replaced the system.img inside my bootloader folder and run

sudo ./flash.sh -r  -k APP jetson-agx-orin-devkit  nvme0n1p1

it gets stuck at

Writing partition APP with /home/user/l4t_35.4.1_2/Linux_for_Tegra/bootloader/system.img [ 6275381100 bytes ]

forever. I also tried adding -S 6275381100 to this command but doesn’t work either. Can someone help?

Hi,
If the device cannot be flashed/booted, please refer to the page to get uart log from the device:
Jetson/General debug - eLinux.org
And get logs of host PC and Jetson device for reference. If you are using custom board, you can compare uart log of developer kit and custom board to get more information.
Also please check FAQs:
Jetson AGX Orin FAQ
If possible, we would suggest follow quick start in developer guide to re-flash the system:
Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation
And see if the issue still persists on a clean-flashed system.
Thanks!

Can you at least help check if this backup and restore process is correct? I’m worried that the tool I used may not be the right tool since I’m using NVMe. I can successfully clone and restore when rootfs is on emmc. Your doc is not very clear in differentiating these.

But I’ll get the log. Just wanna quickly check if there is other tutorial I should follow.

https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/SD/FlashingSupport.html#to-back-up-and-restore-a-jetson-device

Refer this link. Also read the README_backup_restore.txt, file inside /Linux_for_Tegra/tools/backup-restore/ for more elaborate documentation. Hope it helps

Thanks, I checked, but it’s not useful. doesn’t work with NVMe

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks

Sorry for the late response.
Is this still an issue to support? Any result can be shared?
-0312