NVIDIA Tegra
NVIDIA DRIVE OS 5.1 Linux SDK

Developer Guide
5.1.12.0 Release


 
Installing Yocto Linux SDK and PDK
The following steps describe how to install Foundation, the Yocto distribution for Linux, and how to flash your board.
Prerequisites
Ubuntu 16.04 (16-bit distribution)
Bash shell with sudo privileges
Available USB port
Compressed file(s) with the development kit for your NVIDIA® Tegra® platform
50 GB of available disk space
Preparing Your Host Machine
The following sections describe how to prepare your host machine to install Foundation and Linux.
1. If you do not have Ubuntu 16.04 (64-bit distribution), download the Ubuntu installation from:
http://releases.ubuntu.com/trusty
2. Create your installation directory.
The installation of Foundation and Linux requires an installation directory. On your host system, create your installation directory. For example:
mkdir ~/myDRIVEInstallation
Do not use special characters in your directory name.
The following sections use myDRIVEInstallation as the installation directory name. Replace myDRIVEInstallation with your directory name.
Change directory into your new directory:
cd ~/myDRIVEInstallation
3. Install the required Linux packages.
Ensure that you are in your installation directory. Install the required packages:
sudo dpkg --add-architecture i386
 
sudo apt update
 
sudo apt-get install -y lib32z1 lib32ncurses5 lib32stdc++6 libc6-dev:i386 isc-dhcp-server nfs-kernel-server minicom unzip lockfile-progs libbz2-1.0:i386 openjdk-8-jdk gawk wget git-core diffstat texinfo gcc-multilib g++-multilib build-essential chrpath socat xterm make xsltproc docbook-utils fop dblatex xmlto realpath qemu-user libpulse-dev p7zip-full dpkg-dev
4. Copy the required 7z files to your installation directory.
Copy the Foundation 7-Zip volume files into the newly created installation directory.
cp drive-<platform_ver>-foundation-<branch>-<build>.sdk.7z* ~/myDRIVEInstallation
cp drive-<platform_ver>-foundation-<branch>-<build>.pdk.7z* ~/myDRIVEInstallation
Copy the Linux 7-Zip volume files into the newly created installation directory.
cp drive-<platform_ver>-linux-<branch>-<build>-sdk.7z* ~/myDRIVEInstallation
cp drive-<platform_ver>-linux-<branch>-<build>-pdk.7z* ~/myDRIVEInstallation
Installing Foundation
The foundation package provides libraries and flashing scripts that are used by Linux. You must install the foundation package before installing the Linux package.
Note:
A legal notice may appear after executing some of the steps below. Enter any character to see the next page of the notice. Enter q to bypass the remaining notice and to go to the agreement prompt. Answer the prompt with yes.
 
(EULA scroll) Do you accept the terms of the license? yes (enter)
To install Foundation
1. Change directory to your installation directory and extract the contents of the Foundation 7-zip volume files:
cd ~/myDRIVEInstallation
7z e drive-t186ref-foundation-<branch>-<build>.sdk.7z.001
2. Run the toolchain self-extracting RUN file.
bash drive-t186ref-foundation-<branch>-<build>-toolchain.run
3. Run the release self-extracting RUN file. Use the bash command rather than the “./” convention.
bash drive-t186ref-foundation-<branch>-<build>-release-sdk.run
4. Run the open-source self-extracting RUN file and answer the prompt with yes:
bash drive-t186ref-foundation-oss-src.run
5. Extract the platform-specific files by executing the command:
bash drive-t186ref-foundation-<branch>-<build>-e3550specific.run
Enter your sudo password, if prompted.
6. Remove the installation 7z files to free up space:
rm drive-<platform_ver>-foundation-<branch>-<build>.sdk.7z*
You have successfully installed Foundation. The Foundation files reside in the drive-t186ref‑foundation, drive-t186ref-foundation-src, and toolchains subdirectories of the current working directory.
The next step is to install Linux.
Setting the Environment Variables
You must first set the Yocto environment variables before installing the Yocto Linux distribution. Ensure that you are still in your installation directory from the previous step, Installing Foundation. Export the following:
export PDK_TOP=$PWD
export NV_GIT_TOP=$PWD/drive-t186ref-foundation
export TEMPLATECONF=$PWD/drive-t186ref-linux_src/yocto/layers/meta-drive5/conf
export MACHINE=tegra-t19x
Installing the PDK Overlay
Note:
This section is applicable only if you were provided the PDK .run files. If you were not, skip this section and see Binding the Solution.
1. Change directory to your installation directory and extract the contents of the Foundation 7-zip volume files:
cd ~/myDRIVEInstallation
7z e drive-t186ref-foundation-<branch>-<build>.sdk.7z.001
2. Run the release self-extracting RUN file. Use the bash command rather than the “./” convention.
bash drive-t186ref-foundation-<branch>-<build>-release-sdk.run
3. Extract the contents of the Linux 7-zip volume files:
7z e drive-t186ref-linux-5.0.10.3-<build>-pdk.7z.001
4. Execute the PDK overlays:
drive-t186ref-linux-<REL>-<GCID>-oss-minimal-pdk.run
drive-t186ref-linux-<REL>-<GCID>-nv-minimal-pdk.run
5. Clean up the installation files to free up space:
rm drive-<platform_ver>-linux-<branch-<build>-pdk.7z*
rm *.run
rm *.gz
rm *.deb
If prompted with rm: remove write-protected regular file <file>?, answer yes.
You have successfully installed the PDK.
To Install the Yocto Linux Distribution
The next step is to build the Yocto project, bind, and flash. Follow the steps under Building the Yocto Project Based Components in the NVIDIA DRIVE OS Linux PDK Developer Guide.
Note:
To secure the NVIDIA DRIVE platform from unauthorized access, update the default password and username on pre-flashed boards immediately after flashing and prior to enabling any network access. Follow the steps from Changing the Default Target Username and Password.