TI openvx 开发环境

2022-11-03  本文已影响0人  44e46f384a16
  1. unpack the source package prebuilt from the tar.gz files;
    untar PSDK RTOS Source Package ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx.tar.gz
    Untar PSDK RTOS Source Package ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx.tar.gz
    a. cd {path_to_downloaded_files}
    b. tar xf ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx.tar.gz xx_xx_xx_xx.tar.gz

  2. unpack the source package prebuilt package from the tar.gz files

  3. cd {path_to_downloaded_files}

  4. $ tar xf ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx-prebuilt.tar.gz

  5. For convenience, after unpacking, we will refer to the location of unpacked source and prebuilt packages as follows:
    Package Name Description
    Source PSDK_ROOT PSDK RTOS Source Package
    Prebuilt PSDK_PREBUILT_ROOT Prebuilt Package for Demo

Rename and/or move folders.
You can now rename and move the PSDK_ROOT and PSDK_PREBUILT_ROOT folders (both renaming and moving is optional).

mv ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx-prebuilt PSDK_PREBUILT_ROOT
$ mv ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx PSDK_ROOT

Copy the boot image and default file system from prebuilt package with following commands:

cp PSDK_PREBUILT_ROOT/boot-j7-evm.tar.gz PSDK_ROOT/
$ cp PSDK_PREBUILT_ROOT/tisdk-default-j7-evm.tar.xz PSDK_ROOT/

Do the following to download and install additional dependencies needed to build PSDK RTOS:

cd PSDK_ROOT
$ ./psdk_rtos/scripts/setup_psdk_rtos.sh
Select sensor
You can choose between two sensors: D3_IMX390_CM or D3_IMX390_RCM. To select the one you want to use, edit the file PSDK_ROOT/imaging/sensor_drv/src/imx390/imx390_serdes_config.h.
Find the following lines in the config file:
//#define CAM_MODULE_VER 0 //D3_IMX390_CM

define CAM_MODULE_VER 1 //D3_IMX390_RCM

Change the video output to HDMI
By default, the video output is from the DisplayPort. Follow the optional instructions below if you want to change it to HDMI.
How to change the video output to HDMI:
To change the video output to HDMI, edit the following files as shown:
PSDK_ROOT/vision_apps/apps/basic_demos/app_tirtos/common/app_cfg_mcu2_0.h
• Undefine the ENABLE_DSS_EDP macro.
• Define the macro ENABLE_DSS_HDMI.
PSDK_ROOT/vision_apps/vision_apps_build_flags.mak
o Set BUILD_ENABLE_ETHFW variable to no
For additional information about changing makefile options, please refer to the following files given by the following pathnames:
• PSDK_ROOT/vision_apps/docs/user_guide/BUILD_INSTRUCTIONS.html#MAKEFILE_OPTIONS
• PSDK_ROOT/vision_apps/docs/user_guide/ETHFW_DEMOS.html#ETHFW_HOWTO_DISABLE

Ensure correct build flags
Edit the file PSDK_ROOT/tiovx/build_flags.mak. Make sure following variables are set to values listed below.
BUILD_EMULATION_MODE=no
BUILD_TARGET_MODE=yes
BUILD_LINUX_A72=yes
PROFILE=release

How to build the PSDK
PSDK_ROOT/vision_apps/docs/user_guide/BUILD_INSTRUCTIONS.htm
Relevant page content:
• Quick steps to build vision apps for Linux + TI-RTOS mode.
• Build vision apps without prebuilt libraries.

Make Vision Apps
Build the source code using the prebuilt libraries provided in the SDK installer using the following commands:
cd PSDK_ROOT/vision_apps make vision_apps

For faster execution on a multicore host processor you can use make vision_apps -jN where "N" is the number of parallel threads.
The resulting RTOS/Linux executable are stored below:

PSDK_ROOT/vision_apps/out/J7/A72/LINUX/PROFILE PSDK_ROOT/vision_apps/out/J7/R5F/SYSBIOS/PROFILE
PSDK_ROOT/vision_apps/out/J7/C66/SYSBIOS/PROFILE PSDK_ROOT/vision_apps/out/J7/C71/SYSBIOS/PROFILE
You can find other options for running make, for different build methods in this drop-down section.
Make options

  1. How to prepare a microSD card for boot
    The step-by-step instructions given here should be sufficient to build the PSDK. If you encounter problems or need more details, please refer to following page in the SDK user guide.
    SDK User Guide: Run Instructions
    5.1. Format and partition
  2. Insert the microSD card into Ubuntu 18.04 LTS host
  3. Use the command df -h to identify the device used by the microSD card. In the following instructions we use /dev/sdb. Make sure you use the correct designation for the microSD card in your system.
  4. If there are any partitions on the microSD card you must delete them. This can be done using the gparted utility, which provides an easy-to-use GUI for all relevant operations.
  5. Run the script as follows to partition and format the microSD card. Answer y to all questions when running the script.
  6. cd PSDK_ROOT sudo psdk_rtos/scripts/mk-linux-card.sh /dev/sdb
  7. Remove and insert the microSD card so the freshly formatted partitions to are auto-mounted on the host PC.
  8. Copy/untar the file system and boot files to the microSD card by executing the script as follows:
    cd PSDK_ROOT psdk_rtos/scripts/install_to_sd_card.sh
    5.2. Copy the test data
  9. Untar the demo input files located in the previously downloaded file psdk_rtos_ti_data_set_xx_xx_xx_xx.tar.gz to the microSD card in the folder as follows:
  10. cd /media/USER/rootfs/
  11. $ mkdir -p opt/vision_apps
  12. $ cd opt/vision_apps
  13. tar --strip-components=1 -xf{path/to/file}/psdk_rtos_ti_data_set_xx_xx_xx_xx.tar.gz
    $ sync
  14. Verify the folder structure at the location where the files were unpacked (untar-ed). After running untar, a folder test_data is created in the folder opt/vision_apps on the microSD card. That is, the folder on the microSD card is as shown here:
  15. tree -L 1 -d /media/USER/rootfs/opt/vision_apps/test_data
  16. /media/$USER/rootfs/opt/vision_apps/test_data
  17. ├── harriscorners
  18. ├── output
  19. ├── psdkra
    └── tivx
  20. Untar the demo input files located in the previously downloaded file psdk_rtos_ti_data_set_ptk_xx_xx_xx_xx.tar.gz to the microSD card at the folder shown here:
  21. cd /media/USER/rootfs/
  22. $ mkdir -p opt/vision_apps
  23. $ cd opt/vision_apps
  24. tar xf{path/to/file}/psdk_rtos_ti_data_set_ptk_xx_xx_xx_xx.tar.gz
    $ sync
  25. Verify that you see the folder test_data_ptk in the folder opt/vision_apps on the microSD card.
    5.3. Copy executable files
    Do the following:
  26. Copy the vision apps binaries to the microSD card, as follows:
  27. cd PSDK_ROOT/vision_apps make linux_fs_install_sd
  28. Eject and remove the microSD card from the host PC.
    The microSD card is now ready for use as boot media for your TDA4 Reference Camera System.
  29. Running applications on your TDA4 Reference Camera System
    These instructions apply to both the ISXEVB TDA4 DevKit and the TDA4VM EVB.
    6.1. Software: First boot
    When starting the TDA4 Reference Camera System for the first time, do the following:
  30. On your host PC, launch a terminal emulator such as Minicom and enter the command:
    $ sudo minicom –D /dev/ttyUSB0
    The baud rate between TDA4VM board and host PC is 115,200.
  31. Insert the previously prepared microSD card your TDA4 Reference Camera System and turn on the power switch. Linux starts and the login screen is displayed on the terminal.

  32. | _ |___ ___ ___ ___ | _ |___ ___ ||__ __| |
  33. | | _| .'| . | . | | __| | . | | | -| _| _|
  34. |||| |,| || || || ||| ||_||
  35.            |___|                   |___|
    
  36. AragoProject http://arago-project.org j7-evm ttyS2
  37. Arago2020.09 j7-evm ttyS2

j7-evm login:
Software downloads
SDK Package Description
ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx.tar.gz PSDK RTOS Source Package
ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx-prebuilt.tar.gz Prebuilt Package for Demo
psdk_rtos_ti_data_set_xx_xx_xx.tar.gz TI Sample Data for vision apps demos
psdk_rtos_ti_data_set_ptk_xx_xx_xx.tar.gz TI sample data for vision apps PTK demos

上一篇下一篇

猜你喜欢

热点阅读