Created
January 19, 2023 00:00
-
-
Save jarulsamy/84849f8db6649ba192163d932c0ec1cf to your computer and use it in GitHub Desktop.
Instructions for flashing the Nvidia Jetson Xavier AGX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Flashing the Nvidia Jetson Xavier NGX | |
# Good luck, Nvidia - as usual - did not make this easy for anyone. | |
# (this is a massive pain on non-ubuntu hosts). | |
# | |
# 1. Install these packages | |
# | |
# $ sudo pacman -S qemu-user-static qemu-user-binfmt | |
# | |
# 2. Download the SDK manager docker image from here. | |
# Ensure you pick Ubuntu 20.04. Jetson does not support 22.04 yet. | |
# | |
# https://developer.nvidia.com/drive/sdk-manager | |
# | |
# 3. Load and tag the docker image | |
# | |
# $ docker load -i ./sdkmanager-1.9.1.10844-Ubuntu_22.04_docker.tar.gz | |
# $ docker tag sdkmanager:1.9.1.10844-Ubuntu_20.04 sdkmanager:20.04 | |
# | |
# 4. Put the Jetson in force recovery mode: | |
# | |
# A. Power off the Jetson, but keep the power connected. | |
# | |
# B. Connect the front (side with the Nvidia logo) USB-C to PC. | |
# | |
# C. Hold down the force recovery button (middle of 3), press and release | |
# the power button, release the center button (this goes against Nvidia | |
# documentation, but works for me). | |
# | |
# 5. Run this script and follow the on-screen information. | |
# | |
# Additional information: | |
# https://docs.nvidia.com/sdk-manager/sdkm-command-line-install/index.html | |
#=============================================================================== | |
sudo docker run -it \ | |
--rm \ | |
--privileged \ | |
-v /dev/bus/usb:/dev/bus/usb/ \ | |
-v /dev:/dev \ | |
-v /media/joshua:/media/nvidia:slave \ | |
--network host sdkmanager:20.04 \ | |
--cli install \ | |
--logintype devzone \ | |
--product Jetson \ | |
--targetos Linux \ | |
--version 5.0.2 \ | |
--target JETSON_AGX_XAVIER_TARGETS \ | |
--flash all \ | |
--license accept \ | |
--staylogin true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment