TI openvx 开发环境

  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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,406评论 6 503
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,732评论 3 393
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,711评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,380评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,432评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,301评论 1 301
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,145评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,008评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,443评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,649评论 3 334
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,795评论 1 347
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,501评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,119评论 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,731评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,865评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,899评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,724评论 2 354