From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17806 invoked by alias); 15 Aug 2005 16:53:18 -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 17795 invoked by uid 22791); 15 Aug 2005 16:53:13 -0000 Received: from bonn.shuttle.de (HELO bonn.shuttle.de) (194.95.249.247) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 15 Aug 2005 16:53:13 +0000 Received: by bonn.shuttle.de (Postfix, from userid 10) id D980A6C0A7; Mon, 15 Aug 2005 18:53:07 +0200 (CEST) Received: from nullnullsix (nullnullsix.mikrom.local [192.168.0.32]) by mikrom.de (Postfix) with SMTP id B6BAA8CC33 for ; Mon, 15 Aug 2005 18:52:07 +0200 (CEST) Message-ID: <00b701c5a1b9$acb40db0$152ca8c0@nullnullsix> From: "Stefan Sommerfeld" To: References: <000f01c58d71$d64a1f90$152ca8c0@deltaflyer> <1121895012.12697.134.camel@hermes> <001b01c58d73$65cf0a30$152ca8c0@deltaflyer> <1121899772.12697.137.camel@hermes> <009c01c5a1b6$670dbac0$152ca8c0@nullnullsix> <1124123909.29732.13.camel@hermes> Date: Mon, 15 Aug 2005 16:53:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Reboot flashing from eCos system? X-SW-Source: 2005-08/txt/msg00153.txt.bz2 Hi Gary, >> >> coming back to this, because i really need a solution. I tried to load a >> RAM based RedBoot out of my ROM based RedBoot without any luck. Is there >> a >> way to build a "CYGSEM_HAL_USE_ROM_MONITOR" RAM based RedBoot? I made a >> RedBoot which allows me to flash the first sector, but it reports: >> "Sorry, >> 'RedBoot' is a reserved image and cannot be deleted". >> > > There should not be any reason to do so. Simply build the RAM version > of RedBoot, including the FLASH (and maybe network) drivers. Then > when you run it, you'll have complete control and can write to any > portion of the FLASH. This is common practice - I do it all the time. > > Note: there should not be any reason to try and delete the image called > "RedBoot" (which is obviously what you tried although you didn't say > so). You can safely overwrite it with the new contents. For example, > after booting into a RAM version: > > RedBoot> lo -b 0x100000 RedBoot.ROM > RedBoot> fi cr RedBoot > > If you want to rewrite the whole FLASH, you could do something like: > > RedBoot> lo -b 0x100000 -r FLASH.image > RedBoot> fi wr -f 0xFC000000 -b 0x100000 -l 0x1000000 > > (of course, these values and addresses are just examples, you'd need > to fill in the specifics for your platform yourself). If you don't > have enough RAM to hold the whole FLASH image, simply perform multiple > load/fi command pairs to cover the whole thing. Thanks for the info. I currently get a verify error while flashing, but this may be another problem. I'll make same in-depth tests for that. Bye.. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss