From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29202 invoked by alias); 11 Jul 2009 15:02:54 -0000 Received: (qmail 29024 invoked by uid 22791); 11 Jul 2009 15:02:52 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from alicia.2020media.com (HELO alicia.2020mail.com) (212.124.192.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Jul 2009 15:02:46 +0000 Received: from [212.124.199.38] (helo=[192.168.0.2]) by alicia.2020mail.com with esmtp (Exim 4.30; FreeBSD) id 1MPe5e-000KXJ-AY; Sat, 11 Jul 2009 16:02:14 +0100 Message-ID: <4A58A988.8090405@zynaptic.com> Date: Sat, 11 Jul 2009 15:02:00 -0000 From: Chris Holgate User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Stanislav Meduna CC: eCos Discussion References: <4A5858BE.9000005@meduna.org> <4A587894.3050200@mlbassoc.com> <4A58816D.1030703@meduna.org> In-Reply-To: <4A58816D.1030703@meduna.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] How to write a complicated bootloader? X-SW-Source: 2009-07/txt/msg00077.txt.bz2 Stanislav Meduna wrote: > Andrew Lunn wrote: > >> If your flash is big enough, which it probably is if you >> are using jffs2, it might make sense to have two eCos >> applications, plus redboot. > > Okay, that's what I also thought of as one of the possibilities. An alternative which I'm using for my current project is to make the bootloader as dumb as possible - just capable of verifying a new firmware image in a local SPI flash and then copying it over to the main flash area when requested. That way the new firmware can be transferred to the device under control of the application (using the fully featured driver). My particular SPI bootloader is coded 'on the metal' for the STM32, but I'm sure it wouldn't be too hard to get Redboot to provide the same functionality. Chris. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss