From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17639 invoked by alias); 7 Jun 2006 10:28:02 -0000 Received: (qmail 17608 invoked by uid 22791); 7 Jun 2006 10:28:00 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.232) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Jun 2006 10:27:19 +0000 Received: by wr-out-0506.google.com with SMTP id 68so141084wri for ; Wed, 07 Jun 2006 03:27:17 -0700 (PDT) Received: by 10.64.10.5 with SMTP id 5mr241817qbj; Wed, 07 Jun 2006 03:27:13 -0700 (PDT) Received: by 10.64.180.15 with HTTP; Wed, 7 Jun 2006 03:27:13 -0700 (PDT) Message-ID: Date: Wed, 07 Jun 2006 10:28:00 -0000 From: "Socrates Socrates" To: "Socrates Socrates" , ecos-discuss@ecos.sourceware.org In-Reply-To: <20060607095227.GR15066@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060606133735.GH15066@lunn.ch> <20060606140356.GJ15066@lunn.ch> <20060606142838.GM15066@lunn.ch> <20060607085706.GP15066@lunn.ch> <20060607095227.GR15066@lunn.ch> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Huge memory footprint for a simple "hello world" X-SW-Source: 2006-06/txt/msg00069.txt.bz2 Thank you for all that info you provided me with. The first 3 steps are fine but "make -s tests" fails: :~/work/atmel/060606$ make -s tests headers finished build finished /home/socrates/work/atmel/060606/install/lib/libtarget.a(redboot_main.o): In function `bist': /opt/ecos/ecos-2.0/packages/redboot/v2_0/src/main.c:626: multiple definition of `cyg_start' tests/context.o:/opt/ecos/ecos-2.0/packages/hal/common/v2_0/tests/context.c:116: first defined here /opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: Warning: size of symbol `cyg_start' changed from 12 to 728 in /home/socrates/work/atmel/060606/install/lib/libtarget.a(redboot_main.o) collect2: ld returned 1 exit status make[1]: *** [/home/socrates/work/atmel/060606/install/tests/hal/common/v2_0/tests/context] Error 1 make: *** [tests] Error 2 On 6/7/06, Andrew Lunn wrote: > On Wed, Jun 07, 2006 at 11:40:54AM +0200, Socrates Socrates wrote: > > Hi Andrew, > > > > Since I have successfully built redboot and uploaded it onto the > > board. What steps do I need to get a simple hellow world app running? > > > I was/am of the impression that from the directory where I built > > redboot, the only file I need was the target.ld file? Am I correct? > > http://ecos.sourceware.org/docs-latest/user-guide/user-guide-programming.html > > You first need to build eCos for real applications. > > ecosconfig new eb55 > ecosconfig tree > make -s > > What ends up in the install directory is what you need for building > applications. You will find all the include files the application > needs, the library containing eCos, the linker file etc. > > You can also build the eCos tests > > make -s tests > > They will then be placed into the install/tests directory tree. The > following page shows you have you can download the test and run it. > > http://ecos.sourceware.org/docs-latest/user-guide/using-commandline-testcase.html > > Once you have that working try an hello world: > > http://ecos.sourceware.org/docs-latest/user-guide/building-and-running-sample-appliations.html > > You download and run this in the same way. > > Andrew > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss