Installing Yocto Linux SDK

The following steps describe how to install Foundation, the Yocto distribution for Linux, and how to flash your board.
Prerequisites
Ubuntu 18.04 (64-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 18.04 (64-bit distribution), download the Ubuntu installation from:
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 .run files to your installation directory.
Foundation .run files:
cp drive-<platform_ver>-foundation-<branch>-<build>-toolchain.run ~/myDRIVEInstallation
cp drive-<platform_ver>-foundation-<branch>-<build>-release-sdk.run ~/myDRIVEInstallation
cp drive-<platform_ver>-foundation-<branch>-<build>-e3550specific.run ~/myDRIVEInstallation
drive-t186ref-foundation-oss-src.run
Linux .run files:
cp drive-<platform_ver>-linux-<branch>-<build>-oss-minimal-sdk.run ~/myDRIVEInstallation
cp drive-<platform_ver>-linux-<branch>-<build>-oss-src.run ~/myDRIVEInstallation
cp drive-<platform_ver>-linux-<branch>-<build>-nv-minimal-sdk.run ~/myDRIVEInstallation
cp drive-<platform_ver>-linux-<branch>-<build>-nv-minimal-sdk.run ~/myDRIVEInstallation

Installing Foundation and Linux

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:
cd ~/myDRIVEInstallation
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.
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.
To install NVIDIA Linux SDK
1. Change directory to your installation directory:
cd ~/myDRIVEInstallation
2. Execute the OSS installation script:
bash drive-t186ref-linux-<branch>-<build>-oss-minimal-sdk.run
Enter your sudo password, if prompted.
Answer N to the following prompts:
Would you like the installation to configure nfs-kernel-server [arN?]? (? for help) ?
Would you like the installation to configure isc-dhcp-server [arN?]? (? for help)
Would you like the installation to configure minicom [arN?]? (? for help)
Execute:
bash drive-t186ref-linux-<branch>-<build>-oss-src.run
3. Execute the NVIDIA installation script and answer y when asked if you are installing with Yocto.
bash drive-t186ref-linux-<branch>-<build>-nv-minimal-sdk.run

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.