0
edits
Changes
m
NoteNota: certains des outils de cette some of the software of this section nécessitent un compte sur le site de need an account on TI pour pouvoir les téléchargerwebsite. La The main page principale des téléchargements est for the downloads is [http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/index.html celle-cithis one].
A télécharger Download it from [http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/rtsc/index.html icihere] et installer and install it (par exemple dans le répertoire 'for example in $HOME/TI/xdctoolsdirectory). ''XDC Tools'' is needed for ''DSP Link'' compilation.
Ajouter une Then, add an environment variable d'environnement 'DSPLINK contenant le chemin du répertoire de '' with the path to the directory of ''DSPLINK''. For exemple, par exemple en ajoutant au edd the following line to .bashrc la ligne suivantefile: (penser à faire un remember to log out/log in ensuiteafter this) <pre>export DSPLINK=$HOME/igep/dsplink_linux_1_63/dsplink
aller dans le répertoire go to $(DSPLINK)/config/bin et lancer directory and execute: <pre>perl dsplinkcfg.pl --platform=OMAP3530 --nodsp=1 --dspcfg_0=OMAP3530SHMEM --dspos_0=DSPBIOS5XX --gppos=OMAPLSP --comps=PONSLRMC
pour configurer This will configure ''DSPLINK''. Pour comprendre ce que fait chacune de ces optionsTo understand each of the option we passed, lancer simplement run: <pre>perl dsplinkcfg.pl
et ajouter les and add options au fur et à mesureone by one. Si tout se passe bienIf everything is alright, le the following message suivant devrait apparaitre will appear: <pre>Please edit the following files for toolchains, kernel sources, etc changes.
ce sont les fichiers à éditer pour adapter à notre which are the files we need to edit and adapt to our configuration.
Pour le fichier For $DSPLINK/make/Linux/omap3530_2.6.mkfile, changer change (et adapter si besoinand adapt if needed) les valeurs suivantesthe following values: <pre># ============================================================================
Pour le fichier For $DSPLINK/gpp/src/Rules.mkfile, changer change (et adapter si besoinand adapt if needed) : <pre>ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
ainsi que and also: <pre>ifeq ("$(TI_DSPLINK_GPPOSPREFIX)", "uc")
Pour le fichier Finally, for $DSPLINK/make/DspBios/c64xxp_5.xx_linux.mkfile, changer change (et adapter si besoinand adapt if needed) : <pre># ----------------------------------------------------------------------------
Aller ensuite dans le répertoire do the same in $DSPLINK/dspgpp/src et faire directory: <pre>make -s
de même dans le répertoire $DSPLINK/gpp/src : <pre>make -s</pre> ce qui aura pour effet de compiler le module this will compile dsplinkk.ko module (dans le répertoire in the $DSPLINK/gpp/export/BIN/Linux/OMAP3530/RELEASEdirectory) .
Des programmes exemples se trouvent dans les répertoires Some examples programs are located in the $DSPLINK/dsp/src/samples et and $DSPLINK/gpp/src/samples, à compiler avec directories. Compile it with:<pre>make</pre>
→Chaine de développement croisée DSP
=== Copy kernel and ''rootfs'' in memory card ===
= Chaine de développement croisée Cross toolchain for the ''DSP'' =
=== ''Code generation tools'' ===
''TI CGT'' est le is the cross compilateur pour le compiler for the ''DSP''. Récupérer la dernière Download last version [https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm icihere] et installer and install it (par exemple dans le répertoire for example in $HOME/TI/TI_CGTdirectory).
=== ''DSP BIOS'' ===
''DSP BIOS'' est le système d'exploitation résidant dans le is the operating system running on the ''DSP''. A télécharger Download it from [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dspbios/index.html icihere] et installer and install it (par exemple dans le répertoire for example in $HOME/TI/BIOSdirectory).
=== ''XDC Tools'' ===
=== ''DSP Link'' ===
''DSPLink'' permet la allows communication entre between ''ARM'' et and ''DSP''. A télécharger Download it from [http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/link/link_1_60/index.html icihere]. Décompresser le par exemple dans le répertoire Uncompress it into the $HOME/igep/dsplinkdirectory.
</pre>
</pre>
</pre>
GPP side distribution file: $DSPLINK/make/Linux/omap3530_2.6.mk
GPP side distribution file: $DSPLINK/gpp/src/Rules.mk
DSP side distribution file: $DSPLINK/make/DspBios/c64xxp_5.xx_linux.mk
</pre>
# Set the values of necessary variables to be used for the OS.
# ============================================================================
# Base directory for the GPP OS
# ----------------------------------------------------------------------------
BASE_BUILDOS :=${HOME}/igep/linux-omap-2.6.28.10-igep0020b-2
# ----------------------------------------------------------------------------
# Base for toolchain
# ----------------------------------------------------------------------------
BASE_TOOLCHAIN := /usr/local/poky/eabi-glibc
# ----------------------------------------------------------------------------
# Base directory for include files provided by GPP OS
# ----------------------------------------------------------------------------
BASE_OSINC := $(BASE_BUILDOS)/include
OSINC_GENERIC := $(BASE_OSINC)OSINC_PLATFORM := $(BASE_TOOLCHAIN)/lib/gcc/arm-poky-linux-gnueabi/4.3.3/includeOSINC_TARGET := $(BASE_TOOLCHAIN)/arm-poky-linux-gnueabi/libc/usr/include
# ============================================================================
# Name of the compiler
# ----------------------------------------------------------------------------
COMPILER := $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-gccLD := $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-ld
CROSS_COMPILE := arm-poky-linux-gnueabi-
export CROSS_COMPILE
# ARCHIVER2 - This denotes the archiver.
# ============================================================================
ARCHIVER := $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-ar
# ============================================================================
# LINKER - The compiler is used for linking purpose as well.
# ============================================================================
LINKER := $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-gcc
</pre>
KERNEL_DIR := ${HOME}/igep/linux-omap-2.6.28.10-igep0020b-2
TOOL_PATH := /usr/local/poky/eabi-glibc/bin
endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
</pre>
CG_PREFIX = arm-linux-uclibcgnueabi-
MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(TOOL_PATH)/arm-linux-uclibcgnueabi-
endif # ifeq ("$(TI_DSPLINK_GPPOSPREFIX)", "uc")
</pre>
# Base directory for the DSP OS
# ----------------------------------------------------------------------------
BASE_CGTOOLS := $(BASE_INSTALL)/TI_CGT_C6000_6.1.13
BASE_CGTOOLSBIN := $(BASE_CGTOOLS)/bin
</pre>
Then, go to the $DSPLINK/dsp/src directory and execute:
<pre>
make -s
</pre>
</pre>
=== ''CMEM'' ===
<!-- pour loop fft, changer le fichier sources pour mettre le chemin des fichiers c de dsplib
changer aussi le chemin des .h dans tskloop.c -->
= Configurer ''DSPLINK'' pour la compilation de projets =