本文档的目的是帮助你在一个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 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
注意: DriveInstall有内置窗口,为了顺利安装,留意窗口提示,按照指示操作.
安装过程类似如下:
-
指定安装路径和下载路径.
- 选择你所使用的平台版本。
- 默认全部安装,也可以点击右上角custom进行定制化安装,只安装自己需要的工具。
-
- 过程中会有窗口提示,要求输入计算机密码
- 如果选择刷写设备(PX2),minicom会自动配置,然后根据提示对设备进行刷写.
- 刷写前:
- 按照下面链接连接设备:
- DriveInstall 要求连接设备 ,比如刷写Tegra A, 它会有如下提示:
- 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.
- DRIVE PX 2 AutoChauffeur (P2379)用户需要注意: 刷写Tegra A 或 B之前, AURIX 开关必须处于RUN 模式.
- 刷写完成之后, 设备会自动重启,耗时约10分钟。
- 安装顺利完成...
Silent Installation(一键安装模式)
为了不让DriveInstall安装过程中总是提示,可做如下操作:
- 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.