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
Hardware 1: DSBOX-N2 industrial box PC
Hardware 1: DSBOARD-NX2 industrial carrier board
OS: Jetpack 4.5 (L4T-32.5.0)
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:
cd ~/nvidia/nvidia_sdk/JetPack_4.5_Linux_JETSON_NANO/Linux_for_Tegrasudo ./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.imgsudo ./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.
If you want to get updated on new blog posts, product launches and discounts, you can fill out the form and sign up for our newsletter. By signing up, you can reach various blog posts about AI, deep learning, machine vision, high-speed cameras, and industrial interfaces.
You will receive a "free shipping" code for next purchase immediately.