Changes between Version 9 and Version 10 of BeagleBoard_DSPLink

Show
Ignore:
Timestamp:
07/02/09 17:15:41 (4 years ago)
Author:
ravishi
Comment:

Moved original instructions to BeagleBoard_CodecEngine. These instructions are for using compiling DSPLink applications from source.

Legend:

Unmodified
Added
Removed
Modified
  • BeagleBoard_DSPLink

    v9 v10  
    1414There are multiple files needed to begin building applications in DSPLink.  Registration at the TI website is needed for all files from TI and the user license(s) must be accepted. 
    1515 
    16 === DSP/BIOS Link === 
     16==== DSP/BIOS Link ==== 
    1717 
    1818Download the DSP/BIOS Link.  I used version 1.61.03 for linux. 
     
    2525}}} 
    2626 
    27 === Arm Toolchain === 
    28 Download the Arm Toolchain.  Select target platform as ARM GNU/Linux and the Host platform as IA32 GNU/Linux.  Make sure not to select the source option. 
     27==== Arm Toolchain ==== 
     28Download the Arm Toolchain which contains a lot of useful tools for compiling on an Arm processor.  Although it included arm cross compilers, we will be using the cross compilers created by our OpenEmbedded build.  Select target platform as ARM GNU/Linux and the Host platform as IA32 GNU/Linux.  Make sure not to select the source option. 
    2929http://www.codesourcery.com/sgpp/lite/arm/releases/2008q1 
    3030 
    31 === Linux Kernel === 
     31Untar the tar.bz2 file to your home directory.   
     32{{{ 
     33$ cd ~/ 
     34$ tar xvjf ~/Desktop/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 
     35}}} 
     36 
     37==== Linux Kernel ==== 
    3238A Linux Kernel is needed to compile DSPLink applications.  The linking Kernel must be the same version or a compatible version with the Kernel on the BeagleBoard.  
    3339 
     
    3945Fortunately, our OpenEmbedded build created enough of a kernel to use for compiling DSPLink.  This kernel is located at ~/oe/tmp/staging/.  Therefore, there is nothing to download as long as the OpenEmbedded process was followed. 
    4046 
    41 === DSP/BIOS, XDCTools, and C6x compiler === 
     47==== DSP/BIOS, XDCTools, and C6x compiler ==== 
    4248You will need to download and install three binary files: C6x Compiler, DSP/BIOS Link, and XDCtools. 
    4349 * DSP/BIOS and XDCtools can be found at https://www-a.ti.com/downloads/sds_support/targetcontent/index.html 
     
    6773 * C6x Compiler -> $HOME/TI/cg6x_6_0_16 
    6874 
    69 === Local Power Manager === 
     75==== Local Power Manager ==== 
    7076 
    7177Download the  Local Power Manager (LPM).  I used LPM version 1.23.01 which can be found at http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent//linuxutils/linuxutils_2_23/index.html .  Untar the file in your TI directory and then untar ti_bios_power,omap3530.tar. 
     
    7682}}} 
    7783 
    78 === Optional - Platform Support Package === 
     84==== Optional - Platform Support Package ==== 
    7985 
    8086Download the OMAP35x Platform Support Package (PSP) from TI's website.  Download release 02.01.01.08. 
     
    9096 * DSP side distribution file: $DSPLINK/make/DspBios/c64xxp_5.xx_linux.mk 
    9197 
    92 If you have followed the previous steps of installing all three files, you can use the custom versions of these files I created.  
    93  
     98If you have followed the previous steps of installing all other files without changing the directory locations, you can use the custom versions of these files I created and attached to this wiki.  They can be found at the bottom of the wiki.  It would be best to not replace your existing files with these files and instead, compare the two files and note the differences.  If any folder locations do not match up, fix them.  
    9499 
    95100== Building DSPLink Files == 
     
    99104$ echo export DSPLINK=$HOME/dsplink_1_60/dsplink >>$HOME/.bashrc 
    100105}}} 
    101 Now you will need to compile the GPP source API, the GPP/DSP source code, and the GPP/DSP samples.  
     106Everything should now be set up to compile your sample applications.  To do this, you will need to compile the GPP source API, the GPP/DSP source code, and the GPP/DSP samples. If you receive any errors, check your three makefiles for the correct directory locations. 
    102107{{{ 
    103108$ cd $DSPLINK/gpp/src/api 
     
    152157DSPLINK_REPO = ${HOME}/dsplink_1_61_03/ 
    153158}}} 
    154 Now perform make and it will create the lpm_omap3530.ko module needed.  Remove any preexisting lpm module and then copy this module to the target in the proper modules location.  You may want to backup the prexisting lpm module if it exists.  In the code below, replace <target> with the location of your target files system, i.e. /media/disk-1 if SD card. 
     159Now perform make and it will create the lpm_omap3530.ko module needed.  Remove any existing lpm module and then copy this module to the target in the proper modules location.  You may want to backup the existing lpm module if it exists.  In the code below, replace <target> with the location of your target files system, i.e. /media/disk-1 if SD card. 
    155160{{{ 
    156161$ make 
     
    173178}}} 
    174179 
    175 beagle# depmod -a cmemk  // Installs dependencies 
     180== Running and Executing Samples == 
     181