NVIDIA Tegra
NVIDIA DRIVE OS 5.1 Linux SDK

Developer Guide
5.1.15 Release


 
Installing and Flashing Foundation and Ubuntu Linux SDK and PDK
 
Preparing Your Host Machine
Installing Foundation
Setting the Environment Variables
Installing the PDK Overlay
Binding the Solution
Flashing the Board
Installing Yocto Linux SDK and PDK
Preparing Your Host Machine
Installing Foundation
Setting the Environment Variables
Installing the PDK Overlay
To Install the Yocto Linux Distribution
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:
http://releases.ubuntu.com/bionic
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 gcc-multilib g++-multilib isc-dhcp-server nfs-kernel-server minicom cpp gcc gcc-5-multilib linux-libc-dev linux-libc-dev:i386 unzip lockfile-progs libbz2-1.0:i386 openjdk-8-jdk gawk wget git-core diffstat texinfo build-essential chrpath socat xterm make xsltproc docbook-utils fop dblatex xmlto qemu-user libpulse-dev dpkg-dev cmake python
4. Copy the required .run files to your installation directory.
drive-t186ref-foundation-<branch>-<build>-toolchain.run
drive-t186ref-foundation-<branch>-<build>-release-sdk.run
drive-t186ref-foundation-oss-src.run
drive-t186ref-foundation-<branch>-<build>-e3550specific.run
drive-t186ref-linux-<branch>-<build>-oss-minimal-sdk.run
drive-t186ref-linux-<branch>-<build>-initramfs.run
drive-t186ref-linux-<branch>-<build>-driveos-[oobe/core]-rfs.run
drive-t186ref-linux-<REL>-<GCID>-nv-minimal-pdk.run
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:
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.
6. Create a new foundation directory:
mkdir foundation
7. Change into the newly created foundation directory:
cd foundation
8. Back out to your installation directory:
cd ../
9. Execute:
export NV_GIT_TOP=$PWD
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 Ubuntu environment variables before installing the Ubuntu Linux distribution. Ensure that you are still in your installation directory from the previous step, Installing Foundation. Export the following:
export ARCH=arm64
export CROSS_COMPILE=<top>/toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
export CROSS32CC=<top>/toolchains/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-
export LOCALVERSION="-tegra"
To install the NVIDIA Linux SDK
1. Ensure that you are still in your installation directory from the previous step, Installing Foundation.
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)
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.
4. Execute the Ubuntu rootfs filesystem installation script:
bash drive-t186ref-linux-<branch>-<build>-driveos-[oobe/core]-rfs.run
5. Execute the following script and answer the prompt with yes:
drive-t186ref-linux-<branch>-<build>-initramfs.run
6. Clean up the installation files to free up space:
rm *.run
rm *.gz
rm *.deb
If prompted with rm: remove write-protected regular file <file>?, answer yes.
You have successfully installed Linux. The Linux files reside in the drive-t186ref‑linux subdirectory of the current working directory.
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 .run files:
cd ~/myDRIVEInstallation
2. Run the release self-extracting RUN file. Use the bash command rather than the “./” convention.
bash drive-t186ref-foundation-<branch>-<build>-release-pdk.run
3. Execute the PDK overlays:
drive-t186ref-linux-<REL>-<GCID>-oss-minimal-pdk.run
drive-t186ref-linux-<REL>-<GCID>-nv-minimal-pdk.run
4. Clean up the installation files to free up space:
rm *.run
rm *.gz
rm *.deb
If prompted with rm: remove write-protected regular file <file>?, answer yes.
You have successfully installed the PDK. The next step is to bind the solution.
Binding the Solution
Ensure that you are still in your installation directory. Execute:
cd drive-t186ref-foundation
drive-t186ref-foundation$ make -f Makefile.bind PCT=linux BOARD=<e3550b01-t194a | e3550b01-t194b | e3550b01-t194ia | e3550b03-t194a | e3550b03-t194b | e3550b03-t194ia> PCT_VARIANT=<dev| dev_driveav | cs | c2c>
You are now ready to flash the board.
Flashing the Board
Note:
Python 3.5 or later must be installed.
Ensure that you are still at drive-t186ref-foundation from the previous step. To flash the board, execute:
./tools/host/flashtools/bootburn_t19x/bootburn.sh -b <e3550b01-t194a | e3550b01-t194b | e3550b01-t194ia | e3550b03-t194a | e3550b03-t194b | e3550b03-t194ia> -B qspi -x /dev/ttyUSB3
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.