How to Clone NVME SSD Image of Jetson Orin NX or Orin Nano Module? - Forecr.io

How to Clone NVME SSD Image of Jetson Orin NX or Orin Nano Module?

Jetson Orin Nano | Jetson Orin NX

24 July 2023
WHAT YOU WILL LEARN?

1- How to get backup image from Jetson module

2- How to flash the backup image

ENVIRONMENT

Hardware: DSBOARD-ORNX

OS: JetPack-5.1.1

In this blog post, we will clone a Jetson Orin NX module and restore another module with “l4t_backup_restore.sh” script file. First, we will put the it in Recovery Mode and clone the file system on NVME SSD. Then, we will restore to the target device with the same script file.


Attention: This guide is compatible for Jetson Orin Nano modules as well.

Getting the Backup Image from Jetson Module

After the JetPack installation has completed from our one of the installation guides, you can use the "Linux_for_Tegra" folder generated by the NVIDIA SDK Manager to get the backup image and restore it.

To get the backup image for Orin NX (or Orin Nano), there are 3 modifications on the script files. Open a terminal from the "Linux_for_Tegra" folder and type the following commands below:


sudo sed -i "s/mmcblk0p1/internal/g" tools/backup_restore/l4t_backup_restore.sh
sudo sed -i "s/mmcblk0/nvme0n1/g" tools/backup_restore/nvbackup_partitions.sh
sudo sed -i "s/mmcblk0/nvme0n1/g" tools/backup_restore/nvrestore_partitions.sh


Then, set the Jetson in recovery mode and connect it to the host PC. Afterwards, type "lsusb" and check the device coonected in Recovery Mode ("0955:7323 NVidia Corp." for Orin NX 16GB, 

"0955:7423 NVidia Corp." for Orin NX 8GB, 

"0955:7523 NVidia Corp." for Orin Nano 8GB, 

"0955:7623 NVidia Corp." for Orin Nano 4GB)


lsusb


Create the backup image with this command below:


sudo ./tools/backup_restore/l4t_backup_restore.sh -b jetson-orin-nano-devkit


A few seconds later, the script file will start the backup process.


At the end of the clone command, the backup images for each partition was created and the system is ready to restore to another Jetson module.

Flashing the Backup Image

Set the Jetson module in recovery mode and type “lsusb”.


lsusb


Now, burn the backup image with this command below:


sudo ./tools/backup_restore/l4t_backup_restore.sh -r jetson-orin-nano-devkit


A few seconds later...


At the end of the image burning process, the target device will ready to reboot.



Thank you for reading our blog post.