I am trying to use the backup and restore method to copy the entire working environment of one Jetson to multiple devices.
Currently, I have encountered some usage problems. For example, I can only do one-to-one backup, but cannot do one-to-multiple restore.
Here are the questions.
Q1:
Workflow 3: To massflash the backup image
Steps:
Make sure you have only ONE device in recovery mode plugged in the host
Run this command from the Linux_for_Tegra folder:
$ sudo ./tools/backup_restore/l4t_backup_restore.sh -b -c
Where are similar to the corresponding variables used
in the flash.sh command. (See more details in the official documentation’s
board name table).
If this command completes successfully, an initrd flash image is stored in
Linux_for_Tegra/tools/kernel_flash/images.
Put the device in recovery mode again and generate a massflash package using backup image:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash mmcblk0p1
Where is the highest possible number of devices to be flashed concurrently.
are similar to the corresponding variables used
in the flash.sh command. (See more details in the official documentation’s
board name table).
After generate the massflash image and environment, you can flash new device by putting the device into recovery mode:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash --network usb0
Alternatively, use the generated mfi_.tar.gz tarball. More
detailed instruction can be found in the Initrd flash README.
I think the last step of workflow3 is wrong, the command sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 is just to mass flash the device, NOT to mass resotre the images.
Q2:
Is it possible to use aliases for backup images of different devices so that I can use alias to restore a backup image at will? Currently, only one image is allowed to exist, whether it is a backup-restore or a newly compiled image.
Did you remember to use the -c option when backing up images?
The backed up images will be copied and converted for generating images for initrd flash,
and you should see log like this:
I just verified the whole workflow and confirmed all the files got restored correctly.
(I installed the whole JetPack SDK, so the disk usage should be significantly different.)
NO.
I think you have to manage those images manually, or just extract a new BSP for a different environment/image.
the -c option for backking up command, Do I need to add it or not. I SAW you suggest me to try to drop it in the last dialogue. I can not find it in command’s help.
This script creates a backup image of a Jetson device or restores a Jetson device using a backup image.
This script should be run inside initramfs.
Options:
Indicate which board to use.
-u PKC key used for odm fused board.
-v SBK key used for encryptions
-h | --help : Display this message
-e : Specify the device for backup
-b : Generate the backup image and store it in /home/hengyongchao/NVIDIA/masss_flash_project/jetson_linux_35.4.1/Linux_for_Tegra/tools/backup_restore/images
-r : Restore the backup image from /home/hengyongchao/NVIDIA/masss_flash_project/jetson_linux_35.4.1/Linux_for_Tegra/tools/backup_restore/images
–raw-image ---------------- Specify the path of the raw disk image to be restored into storage devce.
Q2:
If I want to manage those images, and backup them manually. Which folders should I need to backup?