Flash Jetson with SDK Manager in Docker
For older Jetson boards (such as TX2) that only supports Jetpack 4.x, normally you will need to have a SDK manager in a native Ubuntu 18.04 system to flash the system. Otherwise, you can try to use virtual machine (virtualbox) to flash the board. But it's not guaranteed to work. This is the case for TX2 + Orbitty carrier board I recently tried. One more method is to use the docker image provided by Nvidia. Here are the steps to do it:
Get Docker Image
- Download the docker image from: https://developer.nvidia.com/nvidia-sdk-manager
- Load and tag the docker image:
- Verify the image can run properly:
Use the SDK Manager in Docker
- Start the docker container with proper resource:
$ docker run -it --privileged \ -v /dev/bus/usb:/dev/bus/usb/ \ -v /dev:/dev \ -v /media/$USER:/media/nvidia:slave \ --name JetPack_TX2 --network host sdkmanager:latest \ --cli install --logintype devzone --product Jetson --version 4.6.2 --targetos Linux --host --target JETSON_TX2_TARGETS --flash all --additionalsdk 'DeepStream 6.0.1'
Now you should have a TUI similar to the GUI-version of SDK manager. Choose the right target board and start installing packages and creating the OS image.
You may proceed with the TUI-version of SDK manager and finish the flashing process. If the SDK manager fails to flash, you can manually flash the system with the "flash.sh" script located at: ~/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_TX2_TARGETS/Linux_for_Tegra:
Note: The local user inside the Docker is nvidia with nvidia as the password. The home folder is /home/nvidia.
If you're using a third-party carrier board, you may need to apply the BSP patch before flashing the system:
Save the Image
You can save the state of the image so that you don't have to repeat the download and build process again next time when you flash the same board:
Note: it may take a long time to save the commit as the size of the image get much bigger with everything downloaded.
-  https://docs.nvidia.com/sdk-manager/docker-containers/index.html