-
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 -
unpack the source package prebuilt package from the tar.gz files
-
cd {path_to_downloaded_files}
-
$ tar xf ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx-prebuilt.tar.gz
-
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:
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/C66/SYSBIOS/PROFILE
You can find other options for running make, for different build methods in this drop-down section.
Make options
- 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 - Insert the microSD card into Ubuntu 18.04 LTS host
- 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.
- 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.
- Run the script as follows to partition and format the microSD card. Answer y to all questions when running the script.
- sudo psdk_rtos/scripts/mk-linux-card.sh /dev/sdb
- Remove and insert the microSD card so the freshly formatted partitions to are auto-mounted on the host PC.
- Copy/untar the file system and boot files to the microSD card by executing the script as follows:
psdk_rtos/scripts/install_to_sd_card.sh
5.2. Copy the test data - 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:
- USER/rootfs/
- $ mkdir -p opt/vision_apps
- $ cd opt/vision_apps
-
{path/to/file}/psdk_rtos_ti_data_set_xx_xx_xx_xx.tar.gz
$ sync - 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:
- USER/rootfs/opt/vision_apps/test_data
- /media/$USER/rootfs/opt/vision_apps/test_data
- ├── harriscorners
- ├── output
- ├── psdkra
└── tivx - 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:
- USER/rootfs/
- $ mkdir -p opt/vision_apps
- $ cd opt/vision_apps
-
{path/to/file}/psdk_rtos_ti_data_set_ptk_xx_xx_xx_xx.tar.gz
$ sync - 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: - Copy the vision apps binaries to the microSD card, as follows:
- make linux_fs_install_sd
- 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. - 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: - 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. - 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.
- | _ |___ ___ ___ ___ | _ |___ ___ ||__ __| |
- | | _| .'| . | . | | __| | . | | | -| _| _|
- |||| |,| || || || ||| ||_||
|___| |___|
- AragoProject http://arago-project.org j7-evm ttyS2
- 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
网友评论