An Ubuntu 20.04 host is not yet supported (the SDKM works, but the software for Jetson install will be added at the next release and does not work with Ubuntu 20.04 host and current release). FYI, JetPack/SDKM is just a front end to what is actually flashed. “L4T” is what gets flashed, and is just Ubuntu 18.04 plus NVIDIA hardware accelerated drivers. So what you want is the L4T install without the GUI (which does tend to work on many different flavors and releases of Linux…most of the dependencies are for JetPack/SDKM and not for flash). My recommendation is to use an Ubuntu 18.04 host PC if you can.
To see releases of L4T go here:
https://developer.nvidia.com/embedded/linux-tegra-archive
I of course will recommend the most recent release, which at this time is R32.6.1. From there you will download the “driver package” listed for your AGX (this is essentially the flash software on command line without needing JetPack/SDKM) and the “sample root filesystem” (which is purely Ubuntu 18.04). Assuming you have downloaded these the steps are:
- Unpack the driver package without using
sudo
. This produces a “Linux_for_Tegra/
” subdirectory.
- Go to “
Linux_for_Tegra/rootfs/
”.
- Unpack the sample rootfs here using sudo (the content needs root permission to unpack correctly).
-
cd
back to “Linux_for_Tegra/
” and install the NVIDIA components to the rootfs (this does use sudo
):
sudo ./apply_binaries.sh
- This software is now ready to flash as many times as you want without repeating any of the above.
A typical command line flash, if the Jetson is connected in recovery mode with the USB-C connector, would be this from “Linux_for_Tegra/
”:
sudo ./flash.sh jetson-xavier mmcblk0p1
You’ll want to have a monitor connected to the Jetson so you can perform the first boot setup (though a serial console can do this too).
Note that this only installs the operating system. None of the options, e.g., CUDA or multimedia content is part of this. You would then need to install these yourself, e.g., using the apt-get
mechanism. Assuming the NVIDIA repository is available (and it should be), then you could examine the output of this:
apt search nvidia
apt search libnv
apt search l4t
Keep in mind that dependencies mean that if you install an NVIDIA package which uses a library, then dependencies will install this for you (you don’t necessarily have to install each package one at a time…installing some packages will trigger installing others without you having to specify). Also, not all of those packages will be missing from your system since the earlier “sudo ./apply_binaries.sh
” would have installed things the operating system depends on. I suggest starting with installing this since it is sort of at the heart of other optional packages:
# This just gets the existing content up to date:
sudo apt update
sudo apt upgrade
# Now install CUDA:
sudo apt-get install nvidia-l4t-cuda
Using JetPack/SDKM is better since it knows about all that applies and will neither miss packages, nor install unneeded content. Also, note that package “nvidia-l4t-jetpack
” might install more than you counted on and fill the filesystem. Don’t install this latter package unless you need it.