Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup a development environment

106 bytes removed, 15:19, 1 April 2010
m
Cross toolchain for the DSP
make -s
</pre>
this will compile dsplinkk.ko module (it will be placed in the $DSPLINK/gpp/export/BIN/Linux/OMAP3530/RELEASE directory).
Some examples programs are located in the $DSPLINK/dsp/src/samples and $DSPLINK/gpp/src/samples directories. Compile it with:
=== ''CMEM'' ===
'''NOTENOTA:''' les versions 2.25 et and 2.25.01.06 ont des soucis au niveau des have problems with ''ioctl'' [http://e2e.ti.com/support/arm174_microprocessors/omap_applications_processors/f/42/p/36278/126821.aspx#126821 voir icisee here], ce qui affecte notamment les which affect cache manipulations de cache (writeback et and invalidate). La version Version 2.25.02.08 est sensée corriger cela should solve these problems (à testernot tested). SinonOtherwise, travailler sur les versions you can use 2.24 versions.
<br> ''CMEM'', ou or ''contiguous memory manager'' permet d'allouer de la mémoire partagée entre allows to allocate shared memory between ''ARM'' et and ''DSP''. Il fait partie des It is part of the ''linuxutils'', à télécharger download it from [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/linuxutils/index.html icihere]and decompress it. Aller dans le répertoire Go to linuxutils_2_25_02_08/packages/ti/sdo/linuxutils/cmem et donner l'accès en écriture au fichier directory. Remove the write protection to Rules.make&nbsp;file: <pre>chmod +w Rules.make
</pre>
Puis éditer ce fichier et changer Then edit it and change (adapter si besoinadapt it if needed)&nbsp;: <pre># For "kernel_org" builds
MVTOOL_PREFIX=/usr/local/poky/eabi-glibc/bin/arm-poky-linux-gnueabi-
LINUXKERNEL_INSTALL_DIR=$(HOME)/igep/linux-omap-2.6.28.10-igep0020b-2
</pre>
Puis faire Then execute
<pre>make release
</pre>
pour compiler le module to compile cmemk.ko module (dans le réperoire it will be placed in ./src/moduledirectory).
=== ''Framework Components'' ===
Les ''Framework Components'' incluent entre autres les librairies include some libraries like ''DMAN3'' et and ''ACPY3'', permettant les copies par allowing ''DMA''copy. A télécharger Download it from [http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/FC/index.html icihere] et à décompresser par exemple dans "and decompress it for example in $HOME/TI/framework_components_2_24_01"directory.
<br>
=== ''Local Power Manager (LPM)'' ===
''LPM'' fait aussi partie des also belongs to the ''Linux Utilities'', mais ne semble plus intégré dans les nouvelles but it seems that it is no longer included in the newest versions. Il se trouve avec les anciennes So, you can download it from the older versions de of ''linuxutils'', [http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/linuxutils/old.html icihere].
''LPM'' permet de redémarrer le allows to reset the ''DSP'' à la volée. En effetIndeed, by default, par défaut ''DSPLink'' garde dans la mémoire keeps in the cache le programme exécuté par le memory the program executed by the ''DSP''. La même So, the same application peut donc être lancée plusieurs fois à la suitecan be executed several times, par contre si une nouvelle application est lancéebut if a new applications is run, il y aura plantage; dthe ''DSP'où l'intérêt de will crash; that is why we need ''LPM''.
Aller dans le répertoire Go to the local_power_manager_1_24/packages/ti/bios/power/modules/omap3530/lpm et éditer le directory end edit the Makefile pour changerto change: <pre>LINUXKERNEL_INSTALL_DIR = $(HOME)/igep/linux-omap-2.6.28.10-igep0020b-2
MVTOOL_PREFIX = /usr/local/poky/eabi-glibc/bin/arm-poky-linux-gnueabi-
DSPLINK_REPO = $(HOME)/igep/dsplink_linux_1_63
</pre>
puis compiler the compile
<pre>make
</pre>
le module the lpm_omap3530.ko sera fait dans le répertoire courentmodule will be placed in the current directory.
Les exécutables The lpmON.x470uC et and lpmOFF.x470uC sont déjà compilés et se trouvent dans les répertoiresexecutables are already compiled and can be found in the following directories:
local_power_manager_1_24/packages/ti/bios/power/test/bin/ti_platforms_evm3530/linux/debug/
local_power_manager_1_24/packages/ti/bios/power/test/bin/ti_platforms_evm3530/linux/release/
=== Librairies Libraries ===
Les principales librairies sont les suivantesThe interesting libraries are the followings:
*[http://focus.ti.com/docs/toolsw/folders/print/sprc265.html dsplib]
*[http://focus.ti.com/docs/toolsw/folders/print/sprc542.html IQ Math]
A noter, pour les Note that for ''dsplib v210'', le lien Linux semble ne pas marcherthe linux link seems to be broken. A partir de la From Windows version Windows, il faut changer le fichier you will have to change C64x+DSPLIB/dsplib_v210/dsplib64plus.hfiles. Tous les chemins relatifs sont en Indeed, all relative paths are in Windows notation Windows (eg "\" qu'il faut remplacer par des ), which you will have to change to "/".
<!-- pour loop fft, changer le fichier sources pour mettre le chemin des fichiers c de dsplib
0
edits