Changes

How to setup a development environment

270 bytes removed, 15:04, 1 April 2010
m
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'' =
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].
=== ''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'' ===
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.
=== ''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.
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
</pre>
aller dans le répertoire go to $(DSPLINK)/config/bin et lancer&nbsp;directory and execute: <pre>perl dsplinkcfg.pl --platform=OMAP3530 --nodsp=1 --dspcfg_0=OMAP3530SHMEM --dspos_0=DSPBIOS5XX --gppos=OMAPLSP --comps=PONSLRMC
</pre>
pour configurer This will configure ''DSPLINK''. Pour comprendre ce que fait chacune de ces optionsTo understand each of the option we passed, lancer simplement&nbsp;run: <pre>perl dsplinkcfg.pl
</pre>
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&nbsp;will appear: <pre>Please edit the following files for toolchains, kernel sources, etc changes.
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>
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># ============================================================================
# Set the values of necessary variables to be used for the OS.
# ============================================================================
# Base directory for the GPP OS
# ----------------------------------------------------------------------------
BASE_BUILDOS &nbsp;:=${HOME}/igep/linux-omap-2.6.28.10-igep0020b-2
# ----------------------------------------------------------------------------
# Base for toolchain
# ----------------------------------------------------------------------------
BASE_TOOLCHAIN &nbsp;:= /usr/local/poky/eabi-glibc
# ----------------------------------------------------------------------------
# Base directory for include files provided by GPP OS
# ----------------------------------------------------------------------------
BASE_OSINC &nbsp;:= $(BASE_BUILDOS)/include
OSINC_GENERIC &nbsp;:= $(BASE_OSINC)OSINC_PLATFORM &nbsp;:= $(BASE_TOOLCHAIN)/lib/gcc/arm-poky-linux-gnueabi/4.3.3/includeOSINC_TARGET &nbsp;:= $(BASE_TOOLCHAIN)/arm-poky-linux-gnueabi/libc/usr/include
# ============================================================================
# Name of the compiler
# ----------------------------------------------------------------------------
COMPILER &nbsp;:= $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-gccLD &nbsp;:= $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-ld
CROSS_COMPILE &nbsp;:= arm-poky-linux-gnueabi-
export CROSS_COMPILE
# ARCHIVER2 - This denotes the archiver.
# ============================================================================
ARCHIVER &nbsp;:= $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-ar
# ============================================================================
# LINKER - The compiler is used for linking purpose as well.
# ============================================================================
LINKER &nbsp;:= $(BASE_CGTOOLS)/arm-poky-linux-gnueabi-gcc
</pre>
Pour le fichier For $DSPLINK/gpp/src/Rules.mkfile, changer change (et adapter si besoinand adapt if needed)&nbsp;: <pre>ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
KERNEL_DIR &nbsp;:= ${HOME}/igep/linux-omap-2.6.28.10-igep0020b-2
TOOL_PATH &nbsp;:= /usr/local/poky/eabi-glibc/bin
endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
</pre>
ainsi que&nbsp;and also: <pre>ifeq ("$(TI_DSPLINK_GPPOSPREFIX)", "uc")
CG_PREFIX = arm-linux-uclibcgnueabi-
MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(TOOL_PATH)/arm-linux-uclibcgnueabi-
endif # ifeq ("$(TI_DSPLINK_GPPOSPREFIX)", "uc")
</pre>
Pour le fichier Finally, for $DSPLINK/make/DspBios/c64xxp_5.xx_linux.mkfile, changer change (et adapter si besoinand adapt if needed)&nbsp;: <pre># ----------------------------------------------------------------------------
# Base directory for the DSP OS
# ----------------------------------------------------------------------------
BASE_CGTOOLS &nbsp;:= $(BASE_INSTALL)/TI_CGT_C6000_6.1.13
BASE_CGTOOLSBIN&nbsp;:= $(BASE_CGTOOLS)/bin
</pre>
Then, go to the $DSPLINK/dsp/src directory and execute:
<pre>
make -s
</pre>
Aller ensuite dans le répertoire do the same in $DSPLINK/dspgpp/src et faire&nbsp;directory: <pre>make -s
</pre>
de même dans le répertoire $DSPLINK/gpp/src&nbsp;: <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>
=== ''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 =
0
edits