Install DRIVE OS Linux Debian Packages
Uninstall Steps for Local Repo Debian Packages
If you have previously installed DRIVE OS, the existing DRIVE OS first needs to be uninstalled. This will help maintain content integrity and avoid any conflicts.
To remove or uninstall, please follow these instructions:
sudo -E apt-get -y --purge remove "nv-driveos*"
sudo apt-get -y autoremove
Optional step: The DRIVE OS Debian Package uninstall will not remove any data from
$NV_WORKSPACE
.
If you want to remove, please follow the below instruction:
sudo rm -rf $NV_WORKSPACE
Installation Steps for Local Repo Debian Packages
Instructions for installing local repo Debian packages.
To install the local repo Debian packages, use
dpkg
.sudo dpkg -i ./nv-driveos-repo-sdk-linux-[VERSION]-[GCID]_[VERSION]_amd64.deb
Install top-level DRIVE OS SDK Debian packages:
export NV_WORKSPACE=/path/where/SDK/needs/to/be/installed
If using SDK Local Repo Debian packages:
sudo -E apt -f -y install nv-driveos-build-[SDK]-[OS]-[RELEASE]-[GCID] 2>&1 | tee nv-driveos-build-[SDK]-[OS]-[RELEASE]-[GCID]_install.log
After a successful installation of
nv-driveos-build-[SDK]-[OS]-[RELEASE]-[GCID]
, the SDK install
directory structure will be as following:
$NV_WORKSPACE directory structure |
Sub-directories |
---|---|
drive-foundation |
|
drive-linux |
|
drive-linux_src |
|
toolchains |
|
After exporting NV_WORKSPACE, the following commands should be run:
sudo apt update
sudo apt upgrade
Installation Steps for the Extra Packages
Install the below CUDA 11.4 Debian packages for Linux available under the same folder.
sudo dpkg -i ./cuda-repo-ubuntu2004-11-4-local_[CUDA-VERSION]-[DRIVER-VERSION]-1_amd64.deb sudo cp /var/cuda-repo*/cuda*keyring.gpg /usr/share/keyrings/ sudo apt-key add /var/cuda-repo-ubuntu2004-11-4-local/[filename].pub sudo dpkg -i ./cuda-repo-cross-aarch64-ubuntu2004-11-4-local_[CUDA-VERSION]-1_all.deb sudo cp /var/cuda-repo*/cuda*keyring.gpg /usr/share/keyrings/ sudo apt-key add /var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local/[filename].pub sudo apt update sudo apt -y install cuda-toolkit-11-4 -y sudo apt -y install cuda-cross-aarch64-11-4 -y
In case of any issue with the installation, remove old packages and reinstall.
sudo rm /var/lib/apt/lists/_var_cuda* sudo apt --fix-broken install -y sudo apt autoremove -y sudo apt remove--purge -y "cuda*" sudo apt remove--purge -y "*cublas*" sudo apt remove--purge -y "*nsight*" sudo apt autoremove -y
Install the cuDNN Debian packages for Linux:
sudo apt install ./cudnn-local-repo-ubuntu2004-[CUDNN-VERSION].deb sudo cp /var/cudnn*/cudnn*keyring.gpg /usr/share/keyrings/ sudo apt-key add /var/cudnn-local-repo-ubuntu2004-[CUDNN-VERSION]/[filename].pub sudo apt update sudo apt install libcudnn8 -y sudo apt install libcudnn8-dev -y sudo apt install libcudnn8-samples -y
-
Install the cuDNN Debian packages for cross-compiling on Linux:
sudo apt install ./cudnn-local-repo-cross-aarch64-ubuntu2004-[CUDNN-VERSION].deb sudo apt-key add /var/cudnn-local-repo-cross-aarch64-ubuntu2004-[CUDNN-VERSION]/[filename].pub sudo apt update sudo apt install libcudnn8-cross-aarch64 -y
Install TensorRT Debian packages for Linux:
sudo dpkg -i nv-tensorrt-repo-ubuntu2004-cuda11.4-trt[RELEASE]-x86-host-[ea|ga]-[BUILD-DATE]_1-1_amd64.deb sudo apt-key add /var/nv-tensorrt-repo-ubuntu2004-cuda11.4-trt[RELEASE]-x86-host-[ea|ga]-[BUILD-DATE]/[filename].pub sudo apt update sudo apt install tensorrt -y
Install TensorRT Debian packages for cross-compiling on Linux:
sudo dpkg -i nv-tensorrt-repo-ubuntu2004-cuda11.4-trt[RELEASE]-d6l-cross-ga-20221229_1-1_amd64.deb sudo apt-get install tensorrt-cross-aarch64 -y
P3898-Specific Package Installation
If you are using a P3898 platform (see DRIVE Platform Supported Boards for more information), install the below platform-specific package for DRIVE OS Linux:
sudo -E apt install ./nv-driveos-linux-p3898-specific
If there are any issues with the installation, remove old packages and reinstall with teh following commands:
sudo -E apt-get -y --purge remove "nv-driveos-linux-p3898-specific*"
sudo apt-get -y autoremove
Flash DRIVE OS Linux
Instructions for BIND PCT
cd $NV_WORKSPACE/drive-foundation
./make/bind_partitions -b <board-variant> linux
Instructions for Flashing
-
Put the DRIVE AGX system into reset mode from the Aurix MCU console.
Connect to the Aurix MCU console:
sudo minicom -w -D /dev/ttyACM1
From the Aurix MCU console:
tegrarecovery x1 on tegrareset x1
-
Flash:
tools/flashtools/bootburn/bootburn.py -b <board-variant>
sudo
for the following commands:
bootburn.py
create_bsp_images.py
flash_bsp_images.py