Cloning the System
Repeating the procedures in the previous articles may take a lot of time. It's advised to clone the system after you have set up common stuff for each device, save the image on one device and restore the image to all other devices.
Prerequisites
Hardware
- Power cable of the Jetson module, plugged in.
- USB to Micro-B cable, connected from your computer to the device.
Software
- Ubuntu 14.04 or higher, on your computer.
- JetPack, having installed at least once and the directory
64_TX2/Linux_for_Tegra_tx2
exists.
Save the System
TIP: See Recommended Setups Before Saving to have a clean workspace.
- Go to the TX2 directory by running:
cd 64_TX2/Linux_for_Tegra_tx2
- Repeat the steps #3.12-3.13 in Install with JetPack to put it in force USB recovery mode. No need to press "Enter" though.
- Replace the contents in
flash.sh
with the on in the post. - Start saving by running:
sudo ./flash.sh -r -k APP -G system.img jetson-tx2 mmcblk0p1
- Reboot the device to make it go back to the normal state.
- Move
system.img
to other place or just leave it there.
INFO: Saving takes much longer time than restoring.
INFO: system.img.raw
is also created, you can safely delete it.
TIP: You can use Gzip to compress the .img
file to save space.
Restore the System
- Repeat steps #1-2 in Save the System.
- Copy the image you want to restore to
64_TX2/Linux_for_Tegra_tx2/bootloader
directory and name itsystem.img
. - Start restoring by running:
sudo ./flash.sh -r jetson-tx2 mmcblk0p1
- Reboot the device for the changes to take effect.
Recommended Setups Before Saving
- Unpin unused applications on the task bar.
- Pin "Chromium Web Browser" and "Terminal" on the task bar.
- Disable Wi-Fi.
- Disable screen lock.
- Disable keyring.
- Clean APT cruft:
sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove
- Clean history:
history -c rm ~/.bash_history