Jetson AGX Orin Backup

I have a AGX Orin device with documents and few packages installed. now i need to create a backup of this device and then reflash this backup to another AGX Orin board, how to do it?

Please refer to Linux_for_Tegra/tools/backup_restore/README_backup_restore.txt.

I ran this command :
sudo ./tools/backup_restore/l4t_backup_restore.sh -e mmcblk0p1 -b jetson-agx-orin-devkit

I encountered this:
ln -s /proc/self/fd /dev/fd && mount -o nolock [fc00:1:1::1]:/home/inbe1e-dt2300cn/orin/Linux_for_Tegra/tools/backup_restore /mnt && /mnt/nvbackup_partitions.sh -e mmcblk0p1 -n && echo Backup image is stored in /home/inbe1e-dt2300cn/orin/Linux_for_Tegra/tools/backup_restore/images
on root@fc00:1:1::2
mount.nfs: Connection timed out

What should I do ?
bck_log.txt (89.2 KB)

You need -e mmcblk0 instead of -e mmcblk0p1.

still i’m getting this :
ln -s /proc/self/fd /dev/fd && mount -o nolock [fc00:1:1::1]:/home/inbe1e-dt2300cn/orin/Linux_for_Tegra/tools/backup_restore /mnt && /mnt/nvbackup_partitions.sh -e mmcblk0p1 -n && echo Backup image is stored in /home/inbe1e-dt2300cn/orin/Linux_for_Tegra/tools/backup_restore/images
on root@fc00:1:1::2

Maybe find another host PC/USB cable and try again.

I used this command to create a backup image:
sudo ./flash.sh -r -k APP -G my_backup.img jetson-agx-orin-devkit mmcblk0p1
this created a my_backup.img and it stored it in Linux_for_Tegra/
now how do i use it to restore the backup?
also what is the purpose of system.img and system.img.raw?

Then you can do

sudo ./flash.sh -r -K APP jetson-agx-orin-devkit mmcblk0p1

system.img.raw is a direct clone of the rootfs, which takes up as much space as the partition, even if it’s not full. system.img is a sparse image, which is generated by trimming unused space in system.img.raw, so it’s smaller in size.

It’s the sparse one that really gets flashed into devices.

can i replace the my_backup.img.raw with the system.img under bootloader/ and run:
sudo ./flash.sh -r jetson-agx-orin-devkit mmcblk0p1

and also
system.img is just a backup image of the current flashed image and if in future if i want to reflash the same i can use flash script with -r option?

You need the sparse image but not the raw image.
Also. -k APP only flashed the APP partition, which may save some time, but maybe no much difference.

YES.

I should copy only my_backup.img and not the .raw file?

You can do both, but it’s system.img that really gets flashed, not system.img.raw.

ok thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.