Drive PX2环境配置之刷机_ Download and Install DriveInstall 5.0.5.0b Linux

 本文档的目的是帮助你在一个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上创建一个目录来存储安装文件.
  2. 在新建的目录下,下载 DriveInstall_5.0.5.0b_SDK_${BUILD}.run.
  3. 安装路径中不要有'.',这回引起安装问题。

关于升级DriveInstall:

如果你要从版本 5.0.5.0/5.0.5.0a 升级到 版本 5.0.5.0b, 使用下面步骤: 

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

    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.

    安装过程类似如下: 

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

  5. Next, select the appropriate target device that you are using.

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

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

  8. If flashing the device is selected, DriveInstall will configure minicom automatically. Follow onscreen instructions to flash the device.
  9. 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:
      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.

    • Note for DRIVE PX 2 AutoChauffeur (P2379) users: before flashing Tegra A or B, the AURIX switch must be toggled to RUN mode.
  10. 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.

  11. 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: 

  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.

猜你喜欢

转载自blog.csdn.net/wanzew/article/details/81604357