2. Getting Started

2.1. Build from Source

Important

To run many of the demos in this SDK, the companion Processor SDK Linux Automotive SDK for Jacinto 7 also needs to be downloaded separately.

Refer below table to get started with topic of your interest.

ADAS, Vision, DL See vision apps [LINK]
Gateway
  • See ethernet firmware [LINK]
  • See gateway demos [LINK]
Integrated MCU See MCUSW [LINK]
RTOS Device Drivers See PDK [LINK]

2.2. Running Out of the Box Demos

2.2.1. Step 1: Download Prebuilt PSDKRA

  • Download and Untar the prebuilt files tar ball psdk_rtos_auto_prebuilt_xx_xx_xx.tar.gz
cd {path/to/file}
tar xf psdk_rtos_auto_prebuilt_xx_xx_xx.tar.gz

Note

This contain the prebuilt linux filesystem & linux boot file tarballs, scripts to format sd card & to install the file system to sd card.

This also contain the test data for vision apps demos and PTK demos.

2.2.2. Step 2: Prepare SD card

Warning

ALL contents of SD card will be lost when doing these steps.

  • Insert SD card onto your PC SD card slot and format SD card in two partitions,

    1. FAT32 partition: for boot loader, 64MB size recommended
    2. ext4 partition: for root filesystem, rest of SD card, atleast 16GB SD card recommended.
  • You can use one of two options to format your SD card

    • Option 1: You can use the utility script mk-linux-card.sh to make the partitions

      1. Use the command “df -h” to identify the device used by SD card

      2. Unmount the SD card before running the script

        -Example, if your SD card is on device /dev/sdb having two partitions, do below to unmount them

        umount /dev/sdb1
        umount /dev/sdb2
        
      3. Run the script as below to partition it, answer “y” to all questions asked when running the script

      Warning

      Make sure to give the correct device name to the following script, example /dev/sda is typically local harddisk, if you give this by mistake, your whole hard disk will be wiped off !!!

      sudo mk-linux-card.sh /dev/sdb
      
    • Option 2: You can use “gparted” utility (sudo apt install gparted) to use a GUI based interface to create the partitions.

      • Make sure you set the FAT32 partition flags as “boot”, “lba”
      • Name the FAT32 partition as “BOOT” and the ext4 partition as “rootfs”
  • After formatting, remove and insert the SD card for the freshly formatted partitions to get auto mounted on the host PC.

2.2.3. Step 3: Install Filesystem and Boot Files

  • Copy/untar filesystem and boot files to SD card by executing the script prebuilt_install_to_sd_card.sh as shown below
./install_to_sd_card.sh
sync
  • Eject and remove SD card from PC and insert in EVM

2.2.4. Step 4: Run on EVM

  • Setup the EVM as shown on this page EVM Setup for J721e

    • Connect UART/USB cable and setup UART terminal
    • Connect daughter card for camera, display as required
    • Connect power supply
    • Connect DP display
    • Select SD card boot mode on EVM
    • Insert SD card
  • Power on the EVM

  • You should see bootloader prints on the UART terminal and then bootloader will boot linux kernel and you should see login prompt as below

j7-evm login:
  • On the EVM, Login using below user id, no password
root
  • On the EVM, do below steps to init the environment for the demos
cd /opt/vision_apps
source ./vision_apps_init.sh
  • Now run one of the below scripts/applications to run the demos
./run_app_tidl.sh                     - Image classification demo (needs display)
./run_app_tidl_avp2.sh                - Auto valet parking demo (needs display)
./run_app_dof.sh                      - Dense optical flow demo (needs display)
./run_app_stereo.sh                   - Stereo disparity demo (needs display)
./run_app_c7x.sh                      - C7x sample kernel demo
./run_app_srv.sh                      - 3D SRV 4 camera demo (needs display, Fusion1 board, 4x IMX390 camera)
./run_app_single_cam.sh               - Single camera + VISS + Display demo (needs display, Fusion1 board, 1x IMX390 or compatible camera's)
./run_app_multi_cam.sh                - Multi (4x) camera + VISS + Display demo (needs display, Fusion1 board, 4x IMX390 or compatible camera's)
./vx_app_linux_arm_opengl_mosaic.out  - OpenGL + OpenVX test
./vx_app_linux_arm_ipc.out            - inter processor communication test
./vx_app_linux_arm_mem.out            - memory allocation test
./vx_app_tutorial.out                 - TI OpenVX tutorial
./vx_app_conformance.out              - TI OpenVX conformance tests
  • Once the demo runs, you should see output on the display

Note

Display will be eDP.

  • Type ‘x’ to exit the demo and run another demo.