How to Install and Configure JetPack SDK#
Depending on your Jetson device, there are multiple ways to install JetPack.
SD Card Image#
For NVIDIA Jetson Orin Nano developer kit users and Jetson Xavier NX developer kit users, the simplest JetPack installation method is to follow the steps at the Getting Started web page to download and write an image to your microSD card, then use it to boot the developer kit.
Note
If you have not previously run a JetPack 5.x release on your Jetson Xavier NX Developer kit, you must first update its QSPI before using this JetPack 5.0.2 SD Card image. You can download an updated QSPI image, and then follow the QSPI update instructions from the Jetson Linux Developer Guide.
NVIDIA SDK Manager#
NVIDIA SDK Manager supports JetPack installation on these Jetson products:
NVIDIA Jetson AGX Orin Developer Kit
NVIDIA Jetson Orin Nano Developer Kit
NVIDIA Jetson AGX Xavier Developer Kit
NVIDIA Jetson Xavier NX Developer Kit
NVIDIA Jetson AGX Orin 32GB module on a Jetson AGX Orin Developer Kit carrier board
NVIDIA Jetson AGX Xavier series modules on a Jetson AGX Xavier Developer Kit carrier board
NVIDIA Jetson Xavier NX modules on a Jetson Xavier NX Developer Kit carrier board
A Linux host computer running Ubuntu Linux x64 version 20.04 or 18.04 is required to run SDK Manager. Detailed instructions can be found here:
Package Management Tool#
NVIDIA offers JetPack components as Debian packages. The Debian package management server can be accessed at https://repo.download.nvidia.com/jetson/.
Install JetPack Components on Jetson Linux#
This step assumes that your Jetson developer kit has been flashed with and is running L4T 35.6.1. The following commands install all other JetPack components that correspond to your version of Jetson Linux L4T:
sudo apt update
sudo apt install nvidia-jetpack
To view individual Debian packages that are part of nvidia-jetpack metapackage, enter the command:
sudo apt show nvidia-jetpack
Refer to the NVIDIA Jetson Linux Developer Guide for details about L4T-specific Debian packages.
If disk space is limited, use these commands:
sudo apt update
apt depends nvidia-jetpack \| awk '{print $2}' \| xargs -I {} sudo apt
install -y {}
Upgrade JetPack#
To upgrade from previous JetPack 5.x releases, first edit etc/apt/sources.list.d/nvidia-l4t-apt-source.list to point to the 35.6 repo (just change the version to r35.6 in both lines). Next, use the following commands, then physically reboot the system:
sudo apt update
sudo apt dist-upgrade
sudo apt install --fix-broken -o Dpkg::Options::="--force-overwrite"
If you see the below error:
ERROR. Procedure for A_kernel-dtb update FAILED.
Use the following three commands, then re-attempt the upgrade. Do not reboot the device after running the below command, and before re-attempting the upgrade:
sudo parted /dev/mmcblk0 -s rm 4
sudo parted /dev/mmcblk0 -s resizepart 3 67.9MB
sudo parted /dev/mmcblk0 mkpart A_reserved_on_user 67.9MB 101MB
Please select “Ignore” when prompted.
List of Debian Packages#
The following is a list of Debian update packages for JetPack components for Jetson devices as of the time of JetPack 5.1.4. Please refer to the Jetson Linux Developer Guide for the list of Jetson Linux Debian packages.
Component Group |
Packages |
|
---|---|---|
CUDA Toolkit for L4T |
cuda cuda-11-4 cuda-cccl-11-4 cuda-comman d-line-tools-11-4 cuda-compat-11-4 c uda-compiler-11-4 cuda-cudart-11-4 cud a-cudart-dev-11-4 cu da-cuobjdump-11-4 cuda-cupti-11-4 cu da-cupti-dev-11-4 c uda-cuxxfilt-11-4 cuda-d ocumentation-11-4 cud a-driver-dev-11-4 cuda-gdb-11-4 cuda-gdb-src-11-4 cu da-libraries-11-4 cuda-l ibraries-dev-11-4 cuda-m inimal-build-11-4 cuda-nvcc-11-4 c uda-nvdisasm-11-4 c uda-nvml-dev-11-4 cuda-nvprune-11-4 cuda-nvrtc-11-4 cu da-nvrtc-dev-11-4 cuda-nvtx-11-4 |
cuda- profiler-api-11-4 cuda-runtime-11-4 cuda-samples-11-4 cu da-sanitizer-11-4 cuda-toolkit-11-4 cuda-toolkit-1 1-4-config-common cuda-toolkit -11-config-common cuda-tool kit-config-common cuda-tools-11-4 cuda- visual-tools-11-4 libcublas-11-4 l ibcublas-dev-11-4 libcudla-11-4 libcudla-dev-11-4 libcufft-11-4 libcufft-dev-11-4 libcurand-11-4 l ibcurand-dev-11-4 libcusolver-11-4 lib cusolver-dev-11-4 libcusparse-11-4 lib cusparse-dev-11-4 libnpp-11-4 libnpp-dev-11-4 nvidia-gds |
cuDNN |
libcudnn8 libcudnn8-dev |
libcudnn8-samples |
TensorRT |
graphsurgeon-tf libnvinfer-bin libnvinfer-dev libn vinfer-plugin-dev l ibnvinfer-plugin8 l ibnvinfer-samples libnvinfer8 lib nvonnxparsers-dev libnvonnxparsers8 |
libnvparsers-dev libnvparsers8 onnx-graphsurgeon p ython3-libnvinfer pytho n3-libnvinfer-dev tensorrt tensorrt-dev tensorrt-libs uff-converter-tf |
OpenCV |
libopencv-dev libopencv libopencv-python |
libopencv-samples opencv-licenses |
VPI |
libnvvpi2 python3.8-vpi2 python3.9-vpi2 |
vpi2-demos vpi2-dev vpi2-samples |
NVIDIA container runtime with Docker integration |
libnvidia- container-tools lib nvidia-container0 lib nvidia-container1 |
nvidia- container-runtime nvidia- container-toolkit nvidia-docker2 |
Multimedia API |
nvidia-l4t-jets on-multimedia-api |
|
CUPVA |
cupva-2.0-l4t |
The following is a list of meta-packages that are available to easily install on Jetson. At a higher level, the nvidia-jetpack meta-package includes nvidia-jetpack-runtime meta-package and nvidia-jetpack-dev meta-package. nvidia-jetpack-runtime includes runtime only parts of JetPack components and does not include samples, documentation, etc. Meanwhile, the nvidia-jetpack-dev meta-package includes everything required for development.
You can install either the higher level meta-packages using apt install, OR install individual component meta-packages depending on your requirements. These meta-packages can be installed either on top of Jetson Linux, or in a container running on Jetson Linux.
JetPack Debian Packages on Host#
NVIDIA provides a group of Debian packages that add or update JetPack components on the host computer.
To prepare the host computer to install JetPack components, do the following steps:
Enter the following command to install the public key of the x86_64 repository of the public APT server:
$ sudo apt-key adv --fetch-key http://repo.download.nvidia.com/jetson/jetson-ota-public.asc
Add the following x86_64 repository to the host system’s source list.
For an Ubuntu 18.04 host:
deb http://repo.download.nvidia.com/jetson/x86_64/bionic r35.6 main
For an Ubuntu 20.04 host:
deb http://repo.download.nvidia.com/jetson/x86_64/focal r35.6 main
Enter the following command:
$ sudo apt update
Use apt to download and install the required packages:
$ sudo apt-get install cuda-cross-aarch64-11-4 cuda-cupti-cross-aarch64-11-7 cuda-sanitizer-11-7 cuda-toolkit-11-4 libnvvpi2 nsight-compute-2022.2.1 nsight-compute-addon-l4t-2022.2.1 nsight-graphics-for-embeddedlinux-2022.3.0.0 nsight-systems-2022.3.3 nvsci python3.8-vpi2 vpi2-demos vpi2-cross-aarch64-l4t vpi2-dev vpi2-samples
The following table lists JetPack components that you can install with apt, and the packages that contain them.
Component Group |
Packages |
|
---|---|---|
CUDA |
cuda cuda-11-4 cuda-cccl-11-4 cuda-comm and-line-tools-11-4 cuda-compat-11-4 cuda-compiler-11-4 cuda-cudart-11-4 c uda-cudart-dev-11-4 cuda-cuobjdump-11-4 cuda-cupti-11-4 cuda-cupti-dev-11-4 cuda-cuxxfilt-11-4 c uda-demo-suite-11-4 cuda -documentation-11-4 c uda-driver-dev-11-4 cuda-drivers cuda-drivers-470 cuda-dr ivers-fabricmanager cuda-driver s-fabricmanager-470 cuda-gdb-11-4 cuda-gdb-src-11-4 cuda-libraries-11-4 cuda -libraries-dev-11-4 cuda -minimal-build-11-4 cuda-nsight-11-4 cuda- nsight-compute-11-4 cuda- nsight-systems-11-4 cuda-nvcc-11-4 cuda-nvdisasm-11-4 cuda-nvml-dev-11-4 cuda-nvprof-11-4 cuda-nvprune-11-4 cuda-nvrtc-11-4 cuda-nvrtc-dev-11-4 cuda-nvtx-11-4 cuda-nvvp-11-4 cud a-profiler-api-11-4 cuda-runtime-11-4 cuda-samples-11-4 cuda-sanitizer-11-4 cuda-toolkit-11-4 cuda-toolkit -11-4-config-common cuda-toolk it-11-config-common cuda-to olkit-config-common cuda-tools-11-4 cud a-visual-tools-11-4 libcublas-11-4 libcublas-dev-11-4 libcufft-11-4 libcufft-dev-11-4 libcurand-11-4 libcurand-dev-11-4 |
libcusolver-11-4 libcusolver-dev-11-4 libcusparse-11-4 libcusparse-dev-11-4 libnpp-11-4 libnpp-dev-11-4 libnvidia-cfg1-430 libnvidia-cfg1-470 libnvidia-common-430 libnvidia-common-470 libnvidia-compute-430 libnvidia-compute-470 libnvidia-decode-430 libnvidia-decode-470 libnvidia-encode-430 libnvidia-encode-470 libnvidia-extra-470 libnvidia-fbc1-430 libnvidia-fbc1-470 libnvidia-gl-430 libnvidia-gl-470 libnvidia-ifr1-430 libnvidia-ifr1-470 libnvidia-nscq-470 libnvjpeg-11-4 libnvjpeg-dev-11-4 libxnvctrl-dev libxnvctrl0 nsight-compute-2021.2.8 nsight-systems-2022.3.1 nvidia-compute-utils-430 nvidia-compute-utils-470 nvidia-dkms-430 nvidia-dkms-470 nvidia-driver-430 nvidia-driver-470 nvidia-fabricmanager-470 nvid ia-fabricmanager-dev-470 nvidia-headless-430 nvidia-headless-470 nvi dia-headless-no-dkms-430 nvi dia-headless-no-dkms-470 nvidia-kernel-common-430 nvidia-kernel-common-470 nvidia-kernel-source-430 nvidia-kernel-source-470 nvidia-modprobe nvidia-settings nvidia-utils-430 nvidia-utils-470 xserv er-xorg-video-nvidia-430 xserv er-xorg-video-nvidia-470 |
CUDA cross-compile package (host) |
cuda-cccl -cross-aarch64-11-4 cuda-cross-aarch64 cuda -cross-aarch64-11-4 cuda-cudart -cross-aarch64-11-4 cuda-cupti -cross-aarch64-11-4 cuda-driver -cross-aarch64-11-4 cuda-nsight-com pute-addon-l4t-11-4 cuda-nvcc -cross-aarch64-11-4 cuda-nvml -cross-aarch64-11-4 cuda-nvrtc -cross-aarch64-11-4 |
cuda -nvtx-cross-aarch64-11-4 cuda-profile r-api-cross-aarch64-11-4 libc ublas-cross-aarch64-11-4 lib cudla-cross-aarch64-11-4 lib cufft-cross-aarch64-11-4 libc urand-cross-aarch64-11-4 libcus olver-cross-aarch64-11-4 libcus parse-cross-aarch64-11-4 l ibnpp-cross-aarch64-11-4 nsight-co mpute-addon-l4t-2021.2.8 |
Computer Vision – VPI (host) |
libnvvpi2 python3.8-vpi2 python3.9-vpi2 vpi 2-cross-aarch64-l4t |
vpi2-demos vpi2-dev vpi2-samples |
Developer Tools |
nsig ht-systems-2022.5.2 nsight-compute -addon-l4t-2022.2.1 nsig ht-compute-2022.2.1 |
nsight-graphics-for- embeddedlinux-2022.6.0.0 cuda- cupti-cross-aarch64-11-7 cuda-sanitizer-11-7 |