I am looking to clone the entire system, including all the bootpartitions and its respective environments from nvidia tegra.
I have been using the following
./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd “read APP system.img.raw”
But I would like to know more about the RBL, WBL, Fastboot partitions and its environment variable locations so that I can make an identical clone of my TX1 device settings.
Mainly interested in capturing U-Boot’s environment variables for cloning into new devices.
Thanks
Hari Seenivasan
In theory you can see all visible named partitions on a running Jetson with:
sudo gdisk -l /dev/mmcblk0
The names of partitions there should imply the ability to substitute “APP” (the rootfs) with one of those names to create a different file. So for example:
./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd "read LNX lnx.bin"
# Restart recovery mode...you can't clone twice in a row without restart...
./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd "read DTB dtb.bin"
As to the partition where U-Boot environment is saved I have not checked. Keep in mind though that part of U-Boot’s state when you drop into console has been set by device tree, and that not all device tree is in the DTB partition. It may be that setting this state as a whole is part of multiple locations. If you run “saveenv” within U-Boot the location may also differ from the original source of that setting. Someone else may be able to suggest where to find the bulk of U-Boot environment variables.