使用DriveInstall对PX2进行自动化软件安装

 本文档的目的是帮助你在一个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 

第一次安装,如果你是第一次执行安装,使用以下步骤

  1. 在Host PC上创建一个目录来存储安装文件,在新建的目录下,下载 DriveInstall_5.0.5.0b_SDK_${BUILD}.run,你可以从下面链接下载DriveInstall文件,如果你无法登录,我稍后也会上传:https://developer.nvidia.com/nvidia-drive-downloads
  2. 安装路径中不要有'.',这回引起安装问题。

安装 DriveInstall 5.0.5.0b

  1. .run 添加可执行权限, 打开终端执行:
    cd <path_where_files_are_located> 
    chmod +x DriveInstall_${VERSION}_SDK_${BUILD}.run
  2. 在安装过程中会有几次提示输入密码,如果你不想在安装过程跳出提示,那么把下面两行代码添加到.run文件最后:
    # sudo visudo
    %sudo ALL=NOPASSWD: ALL
  3. 执行安装:

    cd <path_where_file_is_located> 
    ./DriveInstall_${VERSION}_SDK_${BUILD}.run

    注意: DriveInstall有内置窗口,为了顺利安装,留意窗口提示,按照指示操作.

    安装过程类似如下: 

  4. 指定安装路径和下载路径.

  5. 选择你所使用的平台版本。
  6. 默认全部安装,也可以点击右上角custom进行定制化安装,只安装自己需要的工具。
  7.  

  8. 过程中会有窗口提示,要求输入计算机密码

  9. 如果选择刷写设备(PX2),minicom会自动配置,然后根据提示对设备进行刷写.
  10. 刷写前:
    • 按照下面链接连接设备:
    • DriveInstall 要求连接设备 ,比如刷写Tegra A, 它会有如下提示:
      1. Unplug all other USB-serial adapters from the host before plugging in the DRIVE PX 2 USB debug cable.
      2. Make sure to EXIT ALL minicom terminal windows connected to the DRIVE PX 2 device.
      3. 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 模式.
  11. 刷写完成之后, 设备会自动重启,耗时约10分钟。

     

  12. 安装顺利完成...

Silent Installation(一键安装模式)

为了不让DriveInstall安装过程中总是提示,可做如下操作: 

  1. 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.

  2. All minicom consoles should be closed before flashing starts.
  3. 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 mode
    • uninstall — uninstalls all components from host in silent mode
  4. 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/
  • 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:

  1. Remove the network cable from the DRIVE PX 2 Ethernet connector(s).
  2. 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.
  3. Enter the above command a second time, system will again reboot.
  4. Enter the above command a third time, the output should confirm the AURIX Firmware is current.
  5. 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

  1. 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.
  2. To fully uninstall DriveInstall for Linux from the host, please run <Install_Dir>/_installer/DriveInstall_Uninstaller in terminal.
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值