Skip to content

Instantly share code, notes, and snippets.

@r7vme
Last active May 23, 2024 03:17
Flash Jetson Xavier AGX from docker (sdkmanager)

TESTED for Jetpack 4.5.1

Official docker image had few utilities missed, which caused flashing to fail with Jetson AGX Xavier. To fix that I added them to docker image.

  1. Get NVIDIA official docker image.

  2. Rebuild docker image

mkdir sdkmanager; cd sdkmanager
# create dockefile from below gist
docker build -t sdkmanager-fixed -f .

# `/opt/sdmanager` will be used for all sdkmanager data.
sudo mkdir /opt/sdkmanager ; sudo chmod 777 /opt/sdkmanager
  1. Place sdkmanager (from below) to /usr/local/bin and make it executable with chmod +x /usr/local/bin/sdkmanager.

  2. Flash sdkmanager --cli install --logintype devzone --product Jetson --version 4.5.1 --targetos Linux --target P2888-0001 --flash all --datacollection disable --license accept --exitonfinish

FROM sdkmanager
RUN sudo apt update && sudo apt install -y binutils xxd
ENTRYPOINT [ "/usr/bin/sdkmanager" ]
#!/bin/bash
docker run -it --rm --privileged --net=host \
--volume /dev/bus/usb:/dev/bus/usb \
--volume /opt/sdkmanager:/home/nvidia \
--name sdkmanager sdkmanager-fixed $@
@jbcpollak
Copy link

using sdkmanager version 1.9.2.10899-Ubuntu_22.04 as the basis for this, it still doesn't work for me using @VincentSC's process. Am I missing something?

❯ ./flash.sh 
No update is available.
Authenticating with NVIDIA server...
Login succeeded.
Loading user information...
User information loaded successfully.
Loading server data...
Server data loaded successfully.

 * Available on ubuntu18.04, ubuntu20.04. For available versions run sdkmanager --query.

@pockethook
Copy link

@jbcpollak you're using 1.9.2.*-Ubuntu_22.04, you have to use either 1.9.2.*-Ubuntu_18.04 or 1.9.2.*-Ubuntu_20.04 the target and version you've selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment