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.
-
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
-
Place
sdkmanager
(from below) to/usr/local/bin
and make it executable withchmod +x /usr/local/bin/sdkmanager
. -
Flash
sdkmanager --cli install --logintype devzone --product Jetson --version 4.5.1 --targetos Linux --target P2888-0001 --flash all --datacollection disable --license accept --exitonfinish
Thanks to the approach in this gist, I got it working with Jetpack 5.1.1, using the Ubuntu 20.04 docker, running from Ubuntu 22.04. I'm sharing my notes here:
/usr/bin/sdkmanager-docker:
To get losetup to work, the
/dev:/dev
was required. I choose another name, as I had also sdkmanager installed (using the "fake 20.04" trick)../Dockerfile:
Finally they include
xxd
, but nowlz4
andlibxml2-utils
are missing. I added an upgrade, but that's optional../build.sh
./flash.sh
This covers P2888-0001. I have the P2888-0004 (32GB), but it works on all three version with this variable. I assume that
Steps:
/dev/ttyACM0
should exist. If this does not work (ttyACM0 not there), restart the device (turn off and turn on again).nc -z -vv -w 5 192.168.55.1 22
yet. If it works, then Ubuntu-install was finished for you.sudo minicom -D /dev/ttyACM0 -8 -b 115200
.nc -z -vv -w 5 192.168.55.1 22
. If not, then something else is wrong for you.192.168.55.1
nvidia
(maybe your own user works also?)nvidia
Assume that the package is not maintained well, and fixes are added at random. So if you are installing Jetpack other than 5.1.1, all of the above probably does not work. One approach might be to install 5.1.1 with the above instructions, and then upgrade.
When I did an "apt update && apt upgrade" I saw a quite a large list of packages that could be autoremoved, but these looked important (opencv-related) - probably another badly configured part, so best to just leave it.