How to backup and restore jetson ORIN agx?

Dear all:

1: Jetson ORIN agx with custom board, we use Jetpack6.2_R356.4.3,
and the way backup and restore agx can not be used

2: according this link, How to backup 64g module system image and restore to 32g module - Jetson & Embedded Systems / Jetson AGX Orin - NVIDIA Developer Forums, can not work.

sudo ./flash.sh -k APP -G system-64g.img jetson-agx-orin-devkit mmcblk0p1

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

3: following way can not work: waiting for target to boot-up and failed.

sudo ./tools/backup_restore/l4t_backup_restore.sh -e mmcblk0 -r jetson-agx-orin-devkit

4: the following way ,restore system can not work

sudo ./flash.sh -r -k APP backup.img jetson-agx-orin-devkit mmcblk0p1

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

5: besides, dd is our last choice.

So, could you tell me how to backup and restore jetson orin agx in Jetpack6.2?

Thank you very much!

Best regards!!!

*** Please note that this reply is generated by LLM automatically ***

To backup and restore the Jetson AGX Orin system image, you can follow these steps:

Method 1: Using the l4t_backup_restore.sh script

  1. Connect your Jetson AGX Orin module to your host computer using a USB-C cable.
  2. Open a terminal window on your host computer and navigate to the directory where the l4t_backup_restore.sh script is located.
  3. Run the following command to backup the system image:
sudo ./l4t_backup_restore.sh -b mmcblk0 -r jetson-agx-orin-devkit

This will create a backup of the system image on the mmcblk0 device (which is the default device for the Jetson AGX Orin module).

  1. To restore the system image, run the following command:
sudo ./l4t_backup_restore.sh -r mmcblk0 -b jetson-agx-orin-devkit

This will restore the system image from the backup file.

Method 2: Using the dd command

  1. Connect your Jetson AGX Orin module to your host computer using a USB-C cable.
  2. Open a terminal window on your host computer and navigate to the directory where you want to save the backup file.
  3. Run the following command to backup the system image:
sudo dd if=/dev/mmcblk0 of=jetson-agx-orin-backup.img bs=1M

This will create a backup of the system image on the mmcblk0 device and save it to a file named jetson-agx-orin-backup.img.

  1. To restore the system image, run the following command:
sudo dd if=jetson-agx-orin-backup.img of=/dev/mmcblk0 bs=1M

This will restore the system image from the backup file.

Comparison of methods

Both methods can be used to backup and restore the Jetson AGX Orin system image. However, the l4t_backup_restore.sh script is a more convenient and user-friendly method, as it provides a simple and straightforward way to backup and restore the system image.

The dd command, on the other hand, is a more low-level command that requires more technical knowledge and expertise. However, it provides more flexibility and control over the backup and restore process.

Troubleshooting

If you encounter any issues during the backup or restore process, you can try the following troubleshooting steps:

  • Make sure that the Jetson AGX Orin module is properly connected to the host computer using a USB-C cable.
  • Verify that the l4t_backup_restore.sh script or the dd command is being run with the correct options and parameters.
  • Check the system logs for any error messages or warnings that may indicate the cause of the issue.
  • Try restarting the Jetson AGX Orin module and the host computer to see if the issue persists.

I hope this helps! Let me know if you have any further questions or concerns.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

1: Open a terminal window on your host computer and navigate to the directory where the script is located.l4t_backup_restore.sh,can not run following command

sudo ./l4t_backup_restore.sh -b mmcblk0 -r jetson-agx-orin-devkit

2: in Linux_for_tegra directory, run following command result: Waiting for target to boot-up, can not backup system.

sudo ./tools/backup_restore/l4t_backup_restore.sh -b mmcblk0 -r jetson-agx-orin-devkit

So, the way you provide is unsuitable.

Hi,

Some questions to confirm:

Does the command below work on your custom board?

$ sudo ./flash.sh jetson-agx-orin-devkit internal

if work, please try below backup/restore method.

Thanks

1: following command can work in our custom board.

 sudo ./flash.sh jetson-agx-orin-devkit internal

2: Does there are any ather way to backup and restore system. according to developer guide, following cammand can not run: waiting for target to boot-up.

cd Linux_for_Tegra
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --initrd <board-name> <rootdev>

Hi,

Please try convert .img to .img.raw

simg2img system-64g.img system.img.raw

And follow the mentioned commands to replace rootfs with your custom rootfs.

Thanks