How to Clone NVME SSD Image of Jetson Orin NX or Orin Nano Module?
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
To get the backup image for Orin NX (or Orin Nano), there are some modifications on the script files. Firstly, we need to download the correct patch file.
For JetPack-5.1.1, run this command below:
wget -O orin_backup_restore.patch -c https://github.com/forecr/forecr_blog_files/raw/master/patch_files/orin_backup_restore_JP511.patch
For JetPack-5.1.2, run this command below:
wget -O orin_backup_restore.patch -c https://github.com/forecr/forecr_blog_files/raw/master/patch_files/orin_backup_restore_JP512.patch
For JetPack-5.1.3, run this command below:
wget -O orin_backup_restore.patch -c https://github.com/forecr/forecr_blog_files/raw/master/patch_files/orin_backup_restore_JP513.patch
For JetPack-5.1.4, run this command below:
wget -O orin_backup_restore.patch -c https://github.com/forecr/forecr_blog_files/raw/master/patch_files/orin_backup_restore_JP514.patch
For JetPack-6.0, run this command below:
wget -O orin_backup_restore.patch -c https://github.com/forecr/forecr_blog_files/raw/master/patch_files/orin_backup_restore_JP60.patch
Then, open a terminal from the "Linux_for_Tegra" folder and type the following commands below:
chmod +x orin_backup_restore.patch
sudo patch -p1 -i orin_backup_restore.patch
Then, set the Jetson in recovery mode and connect it to the host PC. Afterwards, type "lsusb" and check the device connected 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
For JetPack-5.1.1, create the backup image with this command below:
sudo ./tools/backup_restore/l4t_backup_restore.sh -b jetson-orin-nano-devkit
For JetPack-5.1.2 or later, create the backup image with this command below:
sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -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.
For JetPack-5.1.1, run this command below:
sudo ./tools/backup_restore/l4t_backup_restore.sh -r jetson-orin-nano-devkit
For JetPack-5.1.2 or later, run this command below:
sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -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.