From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8855 invoked by alias); 6 May 2005 14:14:11 -0000 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 Received: (qmail 8818 invoked from network); 6 May 2005 14:14:04 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (206.168.96.204) by sourceware.org with SMTP; 6 May 2005 14:14:04 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id 2D39F1000F1; Fri, 6 May 2005 08:14:03 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 9FED41000EF; Fri, 6 May 2005 08:13:53 -0600 (MDT) From: Gary Thomas To: Gatien Gillon Cc: Sean Christensen , eCos Discussion In-Reply-To: <200505061408.QAA28569@web1.ulb.ac.be> References: <200505061408.QAA28569@web1.ulb.ac.be> Content-Type: text/plain Date: Fri, 06 May 2005 14:14:00 -0000 Message-Id: <1115388832.1464.11.camel@hermes> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: re:Re: [ECOS] eCos Romable ? (on AT91EB55) X-SW-Source: 2005-05/txt/msg00079.txt.bz2 On Fri, 2005-05-06 at 16:08 +0200, Gatien Gillon wrote: > I don't have a JTAG > > When I compile I get a big image 835 kb wich is too big to > send. what command emust I type to get a smaller image so I > can send it to redboot : with load ymodem and then write it > with fi wr to the ROM ? Your image isn't really that big (at least according to the GDB load info you just sent, it's less than 90KB) The rest is ELF overhead (mostly debug info) Use arm-elf-objcopy (look at the CDL for some examples) to strip this down to the raw binary. That's what you want to download and then write to FLASH. > > Does anybody know the adresse of the EB55 board ? > > (I'm really lost I'm quite a newby) > > > > >Here is the way I do it. > > > >If you are not retaining Redboot, rebuild eCos lib with ROM startup. > >Compile / link your program to the ROM eCos lib. Strip your executible of debugging > >/ symbols (arm-elf-objcopy). Use a JTAG flash loader to program your > >application to 0x10000000 (start of ROM). Done. Resetting the board > >should run the program. > > > >If you want to retain Redboot, modify the .ldi file in HAL to a ROM > >address just above the Redboot sectors. Rebuild eCos with ROM > >startup. Compile / link your program to the ROM eCos lib. Strip your executible of debugging > >/ symbols. Use a JTAG flash loader to program your > >application to the start sectors just past Redboot sectors. > >Use the Redboot 'fconfig' script command to have Redboot to 'go' to the > >start of the application. > > > >If you don't have a JTAG / loader, use redboot 'load' to temperarly put > >the executable into some unused RAM space. Then use 'fis write' to put the > >program into the ROM start location. > > > > > >-S > > > >On Fri, 6 May 2005, Gatien Gillon wrote: > > > >> The plateforme is AT91EB55 > >> I have my application I've debugged it using redboot sending it with GDB now I'd like to put it a the FLASH memory so that when I reset my board my app starts immediatly without having to send it using GDB > >> > >> >On Fri, 2005-05-06 at 14:22 +0200, Gatien Gillon wrote: > >> >> How can I put eCos in a way it starts automatically on > >> >> a reboot without having to send an image using GDB ? > >> > > >> >This is [normally] a supported way of configuring eCos programs. > >> > > >> > CYG_HAL_STARTUP = ROM > >> > > >> >What platform/target? > >> > > >> >-- > >> >------------------------------------------------------------ > >> >Gary Thomas | Consulting for the > >> >MLB Associates | Embedded world > >> >------------------------------------------------------------ > >> > > >> > > >> >-- > >> >Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > >> >and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > >> > > >> > > >> > >> > >> > >> -- > >> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > >> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > >> > >> > >> > > > > > > > -- Gary Thomas -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss