This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: stable cygwin ecos?!
- From: teun dot van dot de dot berg at philips dot com
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 14 Sep 2004 10:10:59 +0200
- Subject: Re:[ECOS] stable cygwin ecos?!
Here's how I installed my eCos. I've left out some parts because they are
confidential, but you won't need them. This description is for an ARM
(LPC2106) but it should help you.
--------------------------------------------------
Ecos install & build description
V1.3
Status: validate
Teun van de Berg
Install description
The eCos installation consists of a few parts. For clarity the different
steps are listed here.
Install Cygwin Install eCos Get latest eCos from CVS Apply eCos patch
Build & flash ecos and application
Install eCos
-Install Cygwin and add the following packages gcc, make, sharutils,
tcltk, wget, gdb, and pathutilities.
-Download ecos-install.tcl & ecos-install.db from the ecos website (ftp://ecos.sourceware.org/pub/ecos/)
-Start the ecos setup by invoking "sh ecos-install.tcl ?c ecos-install.db"
-When prompted chose to install the ARM package.
-When the ecos install is complete go to My computer -> Control panel ->
System -> Advanced -> Environment Variables and add:
Cygwin = C:\cygwin\bin
GNUtools = C:\cygwin\opt\ecos\gnutools\arm-elf\bin
-After the ecos installation is complete you need to install
configtool-2.11-setup.exe (http://www.mirror.ac.uk/mirror/sources.redhat.com/ftp/ecos/ct2/old/).
-Now start the ecos config tool. To set the target go to: Build ->
Templates and choose an ARM (pid).
-Now set the paths. Go to Tools -> Paths and set:
Build tools = C:\cygwin\opt\ecos\gnutools\arm-elf\bin
User tools = C:\cygwin\bin
You also need to set Tool -> Repository = C:\cygwin\opt\ecos\ecos-2.0
-When all this is done you can build the ecos kernel. I used the dir:
C:\cygwin\opt\ecos\ecos-2.0\ecos-work and chose test.ecc as file name.
Get latest eCos from CVS
-Install WinCVS (www.wincvs.org)
-Now just set the package to ecos and begin the checkout.
-When that is complete replace the ecos folders and files downloaded
earlier with the new cvs versions. (Don't delete the other folders!)
-Download the patch for the Ashling board (http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000068)
-Now apply the patch (patch ?p1 < PhilipsLpc2106_25Jan04.patch). Note that
you must rename your eCos folder to ecos for this.
-Now make a dir called build in the ecos dir & make it your pwd. Then
invoke ../configure.
-Then invoke make.
-Next invoke make install.
Build (ecos) description
-Start the eCos confiruation tool. Note that if you used this install
description you probably need to change your repository path from ecos-2.0
to ecos.
-Under Build -> Templates select "ARM ASHLING Eval board".
-Change the eCos HAL -> ARM architecture -> Startup type to ROM.
-Save and build the project.
Build (application) description
-First you need to set the path for the GNU tools. In Cygwin type:
PATH=/opt/ecos/gnutools/arm-elf/bin:$PATH ; export PATH
-Now you can invoke make:
make INSTALL_DIR=/opt/ecos/ecos/ecos-work/test_install
-Now to convert you bin file to a hex file (required for the flasher) you
should use: arm-elf-objcopy ?O ihex YourSourceOFile YourTargetHexFile.hex
(Might it be nessecary then you can check your memorymapping by using
arm-elf-objdump -h hello (the elf format not the hex.)
-Ready to flash! (Use the Philips flash utility.)
-------------------------------
>Hi everybody,
>
>Can anyone tell me where I can find a stable and good configuration for
cygwin
>and ecos?? I downloaded the latest version of cygwin and ecos but it
doesn't
>work at all for me. I'm working on a windows machine and I get all sort
of
>strange errors I do not understand. So if anybody can give me a stable
version I
>would appreciate it very much. And I would like to use it with GCC
version 3.2.1
>(because I know this version is stable)
>
>Thanks in advance.
>
>Jeroen Meulendijks
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss