Setting Up Linux and Foundation Using DRIVE OS Local Debian Packages
Follow these steps from Installation Using DRIVE OS Local Debian Packages and get the Debian packages.
Install the following packages to set up NVIDIA DRIVE OS PDK for Yocto
build:
nv-driveos-build-<PDK>-linux-<RELEASE>-<BUILD>-<GCID>
nv-driveos-linux-oss-src-<RELEASE>-<BUILD>-<GCID>
nv-driveos-linux-yocto-<RELEASE>-<BUILD>-<GCID>
nv-driveos-linux-yocto-oss-src-<RELEASE>-<BUILD>-<GCID>
nv-driveos-foundation-oss-src-<RELEASE>-<BUILD>-<GCID>
nv-driveos-linux-tegra2aurix-updater-<RELEASE>-<BUILD>-<GCID>
Installing and Setting Up the Toolkits
Note:
CUDA, CuDNN, and TensorRT packages for Yocto are distributed through NVOnline. Contact your NVIDIA representative for access to these packages.
Follow these steps to install and set up the toolkits:
Install CUDA Toolkit on the Host
Note: This step is
mandatory if CUDA is enabled with Yocto. CUDA toolkit must be installed on
the host before Yocto build initialization. Skip this section if CUDA
toolkit is already installed.
- Follow the installation steps described in Installing CUDA Debian Packages under Installation Using DRIVE OS Local Debian Packages.
- Copy the CUDA arm64 Debian package into a specific path as follows:
mkdir <top>/drive-linux/toolkits/cuda/drive-os-av/ cp cuda-repo-ubuntu*_arm64.deb <top>/drive-linux/toolkits/cuda/drive-os-av/
Install CuDNN Packages if Including cuDNN from Yocto
- Follow the installation steps described in Installing cuDNN Debian Packages under Installation Using DRIVE OS Local Debian Packages.
- Copy the cuDNN deb file into a specific path:
mkdir <top>/drive-linux/toolkits/cudnn/ cp cudnn-local-repo-ubuntu2004-<CUDNN_MAJOR_VER>-<CUDNN_MINOR_VER>-local_1.0-1_arm64.deb <top>/drive-linux/toolkits/cudnn
Install TensorRT Packages if Including TensorRT from Yocto
- Follow the installation steps described in Installing TensorRT Debian Packages under Installation Using DRIVE OS Local Debian Packages. Additionally, install tensorrt-safe-cross-aarch64 package if DriveWorks is enabled.
- Copy the TensorRT deb file into a specific path:
mkdir -p <top>/drive-linux/toolkits/tensorRT cp nv-tensorrt-repo-ubuntu2004-cuda${CUDA_VER}trt${TRT_VER}-d6l-target-ga<BUILD_ID>-1_arm64.deb <top>/drive-linux/toolkits/tensorRT
Install NVIDIA Driveworks if Including NVIDIA Driveworks from Yocto
Note:
Before including NVIDIA Driveworks in Yocto builds, you must install CUDA, CuDNN, and TensorRT toolkits and set up the respective Debian packages on the host as described in the preceding sections.
- Follow the installation steps as
follows:
mkdir <top>/drive-linux/toolkits/driveworks sudo dpkg -i driveworks_<dw-ver>-<GCID>_amd64.deb sudo dpkg -i driveworks-data_<dw-ver>-<GCID>_all.deb sudo dpkg -i driveworks-samples_<dw-ver>-<GCID>_amd64.deb sudo dpkg -i driveworks-cross_<dw-ver>~linux<release-ver>-<GCID>_amd64
- [OPTIONAL] Execute the steps below only if enabling STM and CGF with
Yocto:
mkdir <top>/drive-linux/toolkits/driveworks cp driveworks-cgf_<dw-ver>~linux<release-ver>-<GCID>_arm64.deb <top>/drive-linux/toolkits/driveworks cp driveworks-stm_<dw-ver>~linux<release-ver>-<GCID>_arm64.deb <top>/drive-linux/toolkits/driveworks
For more details, see Building the Image with NVIDIA Driveworks.