fastr / ti-dvsdk-3-overlay

Overlays for TI's dvsdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note: Each branch has a slightly different README, tailored for that branch. Please select the appropriate branch.

Goal

A quick, easy, hassle-free DVSDK setup.

This guide is adapted from this blog post, which is more verbose.

If this guide doesn't answer your questions, read that as well.

Downloads

According to TI's Getting Started Guide: OMAP35x DVEVM Software Setup, you'll need the following packages:

For compiling code which uses the DSP intrinsics you'll need dsplib64plus, dsplib64plus.h, dsplib64plus.lib

Installation

I'll assume that you've downloaded the above to ~/Downloads and that you accept the default paths

DVSDKDIR=~/dvsdk

cd ~/Downloads
# Accept the defaults
./dvsdk_3_01_00_10_Setup.bin --mode console --prefix ${DVSDKDIR}
./cs1omap3530_setupLinux_1_01_00-prebuilt-dvsdk3.01.00.10.bin --mode console --prefix ${DVSDKDIR}/dvsdk_3_01_00_10
sudo ./ti_cgt_c6000_6.1.12_setup_linux_x86.bin --mode console
echo 'export C6000_C_DIR=/opt/TI/C6000CGT6.1.12/include:/opt/TI/C6000CGT6.1.12/lib' >> ~/.bashrc
echo 'export C6X_C_DIR=${C6000_C_DIR}' >> ~/.bashrc
source ~/.bashrc

Although CSTOOL_PREFIX should allow you to change your toolchain prefix, it's hard coded to arm-none-linux-gnueabi in some places.

If your compiler toolchain uses a different prefix you will need to link it to the name TI's tools expect.

Example (Overo on OpenEmbedded):

cd ${OVEROTOP}/tmp/sysroots/i686-linux/usr/armv7a/bin
ls | cut -d'-' -f5-99 | while read COMP
do
  ln -s arm-angstrom-linux-gnueabi-${COMP} arm-none-linux-gnueabi-${COMP} 
done

Configuration

You can overlay the dvsdk with this repository

cd ~/dvsdk/dvsdk_3_01_00_10
git init
git remote add fastr git://github.com/fastr/ti-dvsdk-3-overlay.git
git fetch fastr
git checkout overo -f

Which essentially makes these changes:

~/dvsdk/dvsdk_3_01_00_10/Rules.make

* `DVSDK_INSTALL_DIR=$(HOME)/dvsdk/dvsdk_3_01_00_10`
* `CODEGEN_INSTALL_DIR=/opt/TI/C6000CGT6.1.12`
* `OMAP3503_SDK_INSTALL_DIR=$(HOME)/AM35x-OMAP35x-PSP-SDK-03.00.01.06`
* `CSTOOL_DIR=$(HOME)/CodeSourcery/Sourcery_G++_Lite`
* `CSTOOL_PREFIX=$(CSTOOL_DIR)/bin/arm-angstrom-linux-gnueabi-`

Test

cd ~/dvsdk/dvsdk_3_01_00_10
make help
make clobber # super clean
make everything
make linux cmem sdma lpm dsplink

About

Overlays for TI's dvsdk