1- How to check the Jetson device in Recovery Mode
2- How to get backup image from Jetson modules
3- How to burn image to Jetson modules
In this blog post, we will clone a Jetson module and restore another module with “flash.sh” script file.
First, we will put the source device into Recovery Mode and clone the file system of target module. Next, we will put the target device into Recovery Mode and burn the file system with the backup image.
After putting your source device in recovery mode, open a terminal and type this command:
As you can see below, the source module has inserted in Recovery Mode successfully. Now, you can clone the file system. Exit this script (Ctrl+C) and continue to the next step.
You should change the current directory to the Jetson SDK folder and backup the module. JetPack version of our source module is 4.5. So that, our working directory is:
Change the current directory (If you use another version of JetPack, your “cd” command will change.) and create the backup image with these commands below:
sudo ./flash.sh -r -k APP -G backup.img jetson-nano-emmc mmcblk0p1
After typing the clone command into the terminal, the processes look like this:
This process took about 157 minutes in our system.
At the end of the clone command, the “backup.img.raw” file was saved and the “backup.img” file was created.
After putting your target device in recovery mode, open a terminal and type this command:
As you can see below, the target module has inserted in Recovery Mode successfully. Now, you can restore the file system. Exit this script (Ctrl+C) and continue to the next step.
Now, move the default system image to another path, move the RAW image as “system.img” to the “bootloader” folder and burn the backup image with these commands:
sudo mv bootloader/system.img* .
sudo mv backup.img.raw bootloader/system.img
sudo ./flash.sh -r jetson-nano-emmc mmcblk0p1
A few seconds later, the writing status looks like this:
This process took more than 7 minutes in our system.
At the end of the image burning process, the target device will reboot.
Thank you for reading our blog post.