First, I tried cloning the device. While creating the image <clone>.img the image starts to get created and the size starts to increase (as expected) but when it finishes the size of the image goes to 0kb and when I try to clone the device I get Error: Return value 10 File to be written cannot be of zero size which makes sense because the size of the file is 0kb. Why is this happening?
I tried the second option to backup and restore following instructions in /Linux_for_Tegra/tools/backup-restore/README_backup_restore.txt
The command sudo ./tools/backup_restore/l4t_backup_restore.sh -b jetson-agx-orin-devkit workd fine and creates multiple system images within Linux_for_Tegra/tools/backup_restore/images
When I move on to the second step I get the following error:
command: sudo ./tools/backup_restore/l4t_backup_restore.sh -r jetson-agx-orin-devkit
Solution:
Use the clone.img.raw to flash the target device. sudo cp clone.img.raw bootloader/system.img sudo ./flash.sh -r jetson-agx-orin-devkit mmcblk0p1
After modifying the files mentioned above and using clone.img.raw, I was able to succesfully clone and flash Jetson Orin AGX
Orin AGX, my bad. I made a mistake when creating the topic.