From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32602 invoked by alias); 8 Sep 2006 01:22:06 -0000 Received: (qmail 32594 invoked by uid 22791); 8 Sep 2006 01:22:05 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc1-s22.bay0.hotmail.com (HELO bay0-omc1-s22.bay0.hotmail.com) (65.54.246.94) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Sep 2006 01:22:03 +0000 Received: from hotmail.com ([65.54.229.50]) by bay0-omc1-s22.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Sep 2006 18:22:02 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 7 Sep 2006 18:22:01 -0700 Message-ID: Received: from 65.54.229.220 by by110fd.bay110.hotmail.msn.com with HTTP; Fri, 08 Sep 2006 01:21:58 GMT X-Sender: iucgnaw@msn.com In-Reply-To: From: "wang cui" To: bartv@ecoscentric.com Cc: ecos-discuss@sources.redhat.com Bcc: Date: Fri, 08 Sep 2006 01:22:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed 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] How to build a executed-in-flash application? X-SW-Source: 2006-09/txt/msg00043.txt.bz2 Thank you, Bart. Actually, I did think about the caveats you mentioned, and my product really need the "in the field update" function. That's why I need a ROM RedBoot and ROM applications. With the help of Andrew, I have done it. Anyway, your reply clarifies this issue for me. >From: Bart Veer >To: iucgnaw@msn.com >CC: ecos-discuss@sources.redhat.com >Subject: Re: [ECOS] How to build a executed-in-flash application? >Date: 07 Sep 2006 14:38:37 +0100 > > >>>>> "Wang" == Wang Cui writes: > > Wang> As I know, normally RedBoot use startup type "ROM", and > Wang> application use startup type "RAM", then we can use RedBoot > Wang> "load" application into ram and "go" it. > > Wang> On my target board, this method works pretty well now. But > Wang> since the ram size is only 512K, I want the application > Wang> image executed-in-place in the flash to save ram for usage. > >Having a ROM RedBoot and a RAM application is only one of the standard >scenarios. If you want the application to run from flash then there >should be no need to have RedBoot in the system at all. Instead >configure eCos itself for ROM startup, link your application with >that, and install it in place of RedBoot. The application now has >control over all the hardware. The obvious caveats are: > > 1) you need some way of programming the flash without RedBoot. This > is likely to involve a hardware debug solution such as BDM or > jtag. > > 2) debugging applications in flash is generally a lot harder than > ones in RAM (although that is going to be a problem whenever code > resides in flash, irrespective of whether or not RedBoot is > involved). > > 3) upgrading an application in the field becomes more difficult. > > 4) not all platforms will be tested in this scenario. Depending on > your hardware there may be platform HAL issues. > >Andrew has been describing an alternative approach where RedBoot is >still in use and the application resides in a non-standard location in >flash. That can also be made to work, but having a ROM startup >application would be more conventional. > >Bart > >-- >Bart Veer eCos Configuration Architect >http://www.ecoscentric.com/ The eCos and RedBoot experts -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss