Vision Apps User Guide
Build Environment Setup

IMPORTANT NOTES

  • Make sure you don't skip any of the steps mentioned below
  • ${PSDKRA_PATH} refers to the path where Processor SDK RTOS Automotive (PSDKRA) is installed
  • ${PSDKLA_PATH} refers to the path where Processor SDK Linux Automotive (PSDKLA) is installed
  • All folders like, pdk, tiovx, vision_apps mentioned in the user guide are relative to ${PSDKRA_PATH} unless explicitly stated otherwise.
  • The build is tested on Ubuntu (x86_64) 18.04 system and may not work on earlier or later Ubuntu systems.
  • 20GB of free space is required to install and build PSDKRA
  • Make sure you have sudo access

Step 1a: Download and Install PSDKRA

  • Download and Untar PSDKRA SDK Installer tarball psdk_rtos_auto_j7_xx_xx_xx_xx.tar.gz on a Ubuntu 18.04 (x86_64) machine.
    cd {path/to/file}
    tar xf psdk_rtos_auto_j7_xx_xx_xx_xx.tar.gz

Step 1b: Download and Install PSDKRA Add-on to run in PC Emulation Mode (Optional, only needed for PC emulation mode)

  • Download and Run PSDKRA addon package installer file psdk_rtos_auto_j7_addon_xx_xx_xx_xx-linux-x64-installer.run on a Ubuntu 18.04 (x86_64).
    Note
    The installer is available only through TI mySecure login. Contact your TI representative for getting access.
  • Follow instructions on screen to complete the installation.
    Note
    The Installation Directory should be given as the parent directory of ${PSDKRA_PATH} (If you choose the Browse option, Make sure you are NOT creating a new folder in the parent directory)
    Attention
    To Request for PSDKRA Packages : [LINK]
    mySecure SW Access Link : [LINK]
    Note
    This also contain MCUSW AUTOSAR Configurator package installer

Step 2a: Download and install PSDKLA (Only needed for Linux+RTOS mode)

  • PSDKRA needs PSDKLA to build. Run the installer file ti-processor-sdk-linux-automotive-j7-evm-xx_xx_xx_xx-Linux-x86-Install.bin on the same Ubuntu 18.04 (x86_64) machine.
  • Follow instructions on screen to complete the installation
  • Copy below files (linux filesystem and linux boot files) from PSDKLA folder to base folder of PSDKRA
    cp ${PSDKLA_PATH}/board-support/prebuilt-images/boot-j7-evm.tar.gz ${PSDKRA_PATH}/
    cp ${PSDKLA_PATH}/filesystem/tisdk-default-image-j7-evm.tar.xz ${PSDKRA_PATH}/

Step 2b: Download and Install PSDKQA addon to run in QNX+RTOS mode (Optional, only needed for QNX+RTOS mode)

The PSDKQA addon package is dependent on installation of packages from both QNX and Texas Instruments. Reference PSDKQA Documentation on Getting Started, for details on download and installation.

Once PSDKQA download and installation is complete, proceed with below steps.

Step 3: Proxy Setup

In order to download and compile some components from next step, it is required that your PC network proxy is setup properly. Below instructions show how the network proxy is setup assuming a proxy server named "http://webproxy.ext.ti.com:80" for the domain "ti.com". Modify these appropriately for your network.

Proxy for wget

  • To set the "wget" proxy add below lines in ~/.wgetrc
    http_proxy=http://webproxy.ext.ti.com:80
    https_proxy=http://webproxy.ext.ti.com:80
    ftp_proxy=http://webproxy.ext.ti.com:80
    noproxy=ti.com

Proxy for http access

  • Setup HTTP proxy by adding below lines in your ~/.bashrc
    export HTTPS_PROXY=http://webproxy.ext.ti.com:80
    export https_proxy=http://webproxy.ext.ti.com:80
    export HTTP_PROXY=http://webproxy.ext.ti.com:80
    export http_proxy=http://webproxy.ext.ti.com:80
    export ftp_proxy=http://webproxy.ext.ti.com:80
    export FTP_PROXY=http://webproxy.ext.ti.com:80
    export no_proxy=ti.com

Proxy for "apt-get"

  • Add below line in the file /etc/apt/apt.conf
    Acquire::http::proxy "http://webproxy.ext.ti.com:80";

Proxy for "git"

  • Install corkscrew
    sudo apt-get install corkscrew
  • Create a file ~/.gitconfig and add below content to it
    [user]
    email = <myemail>@ti.com
    name = <myname>
    [core]
    gitproxy = none for ti.com
    gitproxy = /home/<username>/git-proxy.sh
    [http]
    proxy = http://webproxy.ext.ti.com:80
    [https]
    proxy = http://webproxy.ext.ti.com:80
  • Create a file ~/git-proxy.sh and add below lines in it
    #!/bin/sh
    exec /usr/bin/corkscrew webproxy.ext.ti.com 80 $*
  • Make ~/git-proxy.sh as executable
    chmod +x ~/git-proxy.sh

Proxy for "curl"

  • Add below line in ~/.curlrc file
    proxy=http://webproxy.ext.ti.com:80

Step 4: Download and install additional dependencies

Note
'sudo' permission is required to run below script and install some components using apt-get
In case you don't want to install packages with sudo permission pass below argument to this script
--skip_sudo
Open below file and install the packages installed with sudo apt install separately
  • Do below to download and install additional dependencies needed to build PSDKRA.
    cd ${PSDKRA_PATH}
    ./psdk_rtos_auto/scripts/setup_psdk_rtos_auto.sh
    Note
    Make sure to call the script from ${PSDKRA_PATH} as shown above. DO NOT "cd" into psdk_rtos_auto/scripts and call the script