本文档的目的是帮助你在一个Host PC 上使用DriveInstall来配置Drive PX2基本开发环境。
系统要求
这里我们称笔记本为Host Machine(宿主机),称开发平台PX2 为Target。
Host Machine
- Ubuntu Linux 14.04 or 16.04 LTS, 需要连接网络.
在需要代理服务器访问Internet的网络环境中,您可以通过从终端窗口运行下面的命令来设置http_proxy环境变量:
http_proxy=http://username:password@proxy_ip:proxy_port ./DriveInstall_${VERSION}_SDK_${BUILD}.run
然后DriveInstall会使用这个代理来下载所需要的软件,如果你无法下载到软件,我稍后会把已下载的文件上传。
注意在用户和密码中不要有特殊字符(e.g., !,@,#, etc.)
整个安装过程大概需要34G的空间。
Target System
NVIDIA PX2 开发平台:
下载 DriveInstall 5.0.5.0b
第一次安装,如果您是第一次执行一个干净的安装,使用以下步骤
- 在Host PC上创建一个目录来存储安装文件.
- 在新建的目录下,下载
DriveInstall_5.0.5.0b_SDK_${BUILD}.run
.- 你可以从下面链接下载DriveInstall文件,如果你无法登录,我稍后也会上传:
https://developer.nvidia.com/nvidia-drive-downloads
- 你可以从下面链接下载DriveInstall文件,如果你无法登录,我稍后也会上传:
- 安装路径中不要有'.',这回引起安装问题。
关于升级DriveInstall:
如果你要从版本 5.0.5.0/5.0.5.0a 升级到 版本 5.0.5.0b, 使用下面步骤:
- On the host machine, download
DriveInstall_5.0.5.0b_SDK_${BUILD}.run
into the same directory as the previous installation (5.0.5.0/5.0.5.0a), where${BUILD}
refers to the build string for the installer you have.- SDK users can download DriveInstall from:
https://developer.nvidia.com/nvidia-drive-downloads
- SDK users can download DriveInstall from:
- 同样 安装路径中不要有'.',这回引起安装问题。
安装 DriveInstall 5.0.5.0b
- 为
.run
添加可执行权限, 打开终端执行:cd <path_where_files_are_located> chmod +x DriveInstall_${VERSION}_SDK_${BUILD}.run
- 在安装过程中会有几次提示输入密码,如果你不想在安装过程跳出提示,那么把下面两行代码添加到.run文件最后:
# sudo visudo %sudo ALL=NOPASSWD: ALL
- 执行安装:
cd <path_where_file_is_located> ./DriveInstall_${VERSION}_SDK_${BUILD}.run
IMPORTANT NOTE: The installer has an embedded terminal window; you will need to follow the instructions that may appear in this window, in order to complete the installation.
安装过程类似如下:
- The installer will allow you to specify the installation and download directories.
For an upgrade installation from version 5.0.5.0/5.0.5.0a to 5.0.5.0b, point the download directory to the same one that was used for the previous download. The installation directory can be left as default (~/NVIDIA/Drive/), or you can point it to a new location.
- Next, select the appropriate target device that you are using.
- The Component Manager opens, which allows you to customize which components to install. Full installation is selected by default.
You can search for a specific component by typing the first letter of the component name in the search bar.
- The installer will pop up a window to ask for permission to use during the installation process; you will need to enter your sudo password here.
- If flashing the device is selected, DriveInstall will configure minicom automatically. Follow onscreen instructions to flash the device.
- Prior to flashing:
- For instructions on connecting your target device, see the documentation for:
- DriveInstall will ask to set up hardware connections. For example, when flashing Tegra A, it prompts:
- Unplug all other USB-serial adapters from the host before plugging in the DRIVE PX 2 USB debug cable.
- Make sure to EXIT ALL minicom terminal windows connected to the DRIVE PX 2 device.
- Connect the DRIVE PX 2 device to the Internet with an ethernet cable.
Please ensure all these hardware connections are set up correctly before continuing. Without these connections, DriveInstall may fail during post-flash setup.
- Note for DRIVE PX 2 AutoChauffeur (P2379) users: before flashing Tegra A or B, the AURIX switch must be toggled to RUN mode.
- When flashing is completed, DriveInstall will power cycle the device.
Required software is installed on first boot-up of the target system. This can take up to 10 minutes.
- After the post-installation tasks have been completed, the installation will be complete.
Silent Installation
To configure DriveInstall to run in silent mode, do the following:
- Configure the host system to allow your username to run the installation without a password.
# sudo visudo %your_username ALL=NOPASSWD: ALL
Replace
your_username
with your actual username. - All minicom consoles should be closed before flashing starts.
- Use the following environment variable to specify that the installer should run in silent mode:
launcher_silent_mode=install
Supported values for this variable include the following:
install
— install all components in silent modeuninstall
— uninstalls all components from host in silent mode
- Use the following environment variable to select your platform:
development_platform
Supported values for this variable include the following:
autocruise autochauffeur
Using the above method, an example command to run the silent installer would be:
launcher_silent_mode=install development_platform=autocruise ./DriveInstall_${VERSION}_SDK_${BUILD}.run
More information about DriveInstall silent mode
- Default download and install directory:
- For SDK users, the default download directory is:
/home/user/NVIDIA/Drive_Downloads/
You can either let DriveInstall automatically download components to this directory or put the already downloaded components to this directory before installation.
- The default install directory will be:
/home/user/NVIDIA/Drive/
- For SDK users, the default download directory is:
- All components will be selected include flashing that are available for selected platform.
- Flashing is performed after all other components are installed. If you do not want to flash your target device, please close DriveInstall after flashing begins.
Post Install Steps
![]() |
Make sure the AURIX firmware is upgraded after installing the DRIVE SDK! This is necessary to ensure full functionality of cameras and other DRIVE PX 2 board functions. |
For this DRIVE SDK release, the AURIX Firmware should be updated automatically after flashing to the DRIVE PX 2 board. To confirm that this was successful enter the following command:
sudo /usr/bin/nv_aurix_update -get_fw_version
The output should read:
Flashed EB fw version 4.02.02.00
If the version on this platform does not match the above, perform the following steps to complete the firmware update:
- Remove the network cable from the DRIVE PX 2 Ethernet connector(s).
- From a host console or target terminal (for AutoChauffeur/P2379, Tegra A only) enter the following:
sudo /bin/bash /etc/systemd/scripts/nv_aurix_check_fw.sh -auto_update
- System will reboot.
- Enter the above command a second time, system will again reboot.
- Enter the above command a third time, the output should confirm the AURIX Firmware is current.
- Reconnect the network cable to the DRIVE PX 2 platform Ethernet connector.
See the DRIVE 5.0 Linux SDK documentation topic Flashing and Using the Platform -> Flashing AURIX and the Release Notes for more information about checking and flashing the AURIX firmware from the Tegra and Windows host.
Uninstall Steps
- To uninstall individual components from the host, run the DriveInstall
.run
file. At the Component Manager window, choose Uninstall in the Action column for the component you wish to remove. - To fully uninstall DriveInstall for Linux from the host, please run
<Install_Dir>/_installer/DriveInstall_Uninstaller
in terminal.