Installation#
Please see the NVIDIA DriveOS Installation Guide for complete system requirements, to install the NVIDIA® DriveOS™ package repository and DriveOS packages, flash the NVIDIA DRIVE® AGX™ Thor system, setup minicom and networking for secure shell (SSH) and network file system (NFS), and for other important installation information.
Host#
We assume that your host operating system is the latest release of Ubuntu Desktop 24.04 LTS “Noble Numbat” and that all packages installed by apt are updated to their most recent version. Furthermore, we assume that you have installed the appropriate NVIDIA DriveOS packages from the NVIDIA DriveOS package repository following the procedures in the NVIDIA DriveOS Installation Guide.
Runtime and Tools#
Note
If you are using the DriveOS Docker container, the STM runtime and tools are already installed under /usr/local/driveworks inside
the container.
Install the following packages from the Ubuntu apt package repository on the host system:
sudo apt update
sudo apt --no-install-recommends install \
libc6 libgcc-s1 libstdc++6 zlib1g
Install the cuda-libraries-12-8 package on the host system:
sudo dpkg -i driveos-cuda-repo-ubuntu2404-*-local_*_amd64.deb
sudo cp /var/driveos-cuda-repo-ubuntu2404-*-local/driveos-cuda-*-keyring.gpg \
/usr/share/keyrings
sudo apt update
sudo apt --no-install-recommends install cuda-libraries-12-8
Install the nvsci package on the host system:
sudo apt --no-install-recommends install ./nvsci_*.deb
Unpack the following archives on the host system:
sudo tar --keep-directory-symlink --no-overwrite-dir -xzf \
driveworks-shared-linux-host-x86-*.tar.gz -C /
sudo tar --keep-directory-symlink --no-overwrite-dir -xzf \
driveworks-stm-linux-host-x86-*.tar.gz -C /
The STM runtime and tools are now installed under /usr/local/driveworks on the host system.
Samples#
Note
If you are using the DriveOS Docker container, the STM samples are already installed under /usr/local/driveworks inside the
container.
We assume that you have followed the steps above to install the STM runtime and tools.
Install the following packages from the Ubuntu apt package repository on the host system:
sudo apt update
sudo apt --no-install-recommends install \
cmake g++ libc6-dev make
Install the cuda-toolkit-12-8 package on the host system:
sudo apt --no-install-recommends install cuda-toolkit-12-8
Unpack the following archives onto the host system:
sudo tar --keep-directory-symlink --no-overwrite-dir -xzf \
driveworks-stm-samples-linux-host-x86-*.tar.gz -C /
The STM samples are now installed under /usr/local/driveworks on the host system.
Target#
We assume that you have flashed your NVIDIA DRIVE AGX Thor target system using the appropriate NVIDIA DriveOS packages from the DriveOS package repository and finalized your target system setup following the procedures in the “NVIDIA DriveOS Installation Guide.”
Runtime and Tools#
The STM runtime and tools are precompiled under /usr/local/driveworks on the target system.
Samples#
Install the following packages from the Ubuntu apt package repository on the host system:
sudo apt update
sudo apt --no-install-recommends install minicom
Connect to the target system using minicom and copy the samples from the host system to the target system as follows:
sudo minicom -w -D /dev/ttyACM0 -R utf8 -t xterm
scp -r '<user>@<host>:driveworks-stm-samples-*-aarch64-*.tar.gz' .
sudo tar --keep-directory-symlink --no-overwrite-dir -xzf \
driveworks-stm-samples-*-aarch64-*.tar.gz -C /
where <user> is the username on the host system and <host> is the hostname or IP address of the host system. If you are using
the DriveOS Docker container, the archive may be found at /drive/extra/public/driveworks-stm-samples-*-aarch64-*.tar.gz inside the
container.
Finally, for targets running Linux, merge the configuration file /usr/local/driveworks/targets/aarch64-Linux/config/nvsciipc.cfg
with the file /etc/nvsciipc.cfg on the target system:
sudo mv /etc/nvsciipc.cfg /etc/nvsciipc.cfg.old
awk '!seen[$0]++' /etc/nvsciipc.cfg.old \
/usr/local/driveworks/targets/aarch64-Linux/config/nvsciipc.cfg \
| sudo tee /etc/nvsciipc.cfg
The STM samples are now installed under /usr/local/driveworks on the target system.