Putting Demo Applications in the Third-Party Menu

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

When using the DVSDK, you can add your own demos to the Third-Party Menu by following the steps on this page. Only four demos can be shown at once in the user-interface. If you add more than four demos, the first four in alphabetical order are shown.

1) Create the following files for your demo:

#!/bin/sh
exec ./mydemoname

Note: The demo application must use relative paths to access any files it needs at runtime. This because the archive is extracted to another location from which the demo is executed.

2) Create a gzipped tar file (ends with .tar.gz) that archives all the files in the previous list. For example, if your files are logo.jpg, readme.txt, and app.sh, you could use the following command:

tar cvzf ti_videophone.tar.gz logo.jpg readme.txt app.sh

Name the tar file using <company>_<demoname>.tar.gz (with no spaces in the file name) as the convention. For example, a video phone demo created by Texas Instruments would be named ti_videophone.tar.gz. The name must be unique since all demos are installed in the same directory.

The three required files must be in the top-level directory of the archive. Other files may be in subdirectories, so long as the demo uses relative references to access them. For example, the following directory structure might be used in the archive:

|-- app.sh
|-- data
|    |-- datafile1
|    `-- datafile2
|-- logo.jpg
`-- readme.txt

To check the format of the file you create, execute the following command in Linux. The result should say "gzip compressed data".

file <filename>.tar.gz 

3) Put your archive in the "thirdpartydemos" subdirectory of the target installation directory. This is where the DVEVM software was installed on the target file system. The default target installation directory is /opt/dvsdk/<platform>, so the default location for demo archives is /opt/dvsdk/<platform>/thirdpartydemos (where <platform> depends on your EVM; for example, it may be "dm365"). Do not extract the contents of the archive in this location. Extraction is performed behind-the-scenes each time the demo is run.

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Putting Demo Applications in the Third-Party Menu here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox