public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Reboot flashing from eCos system?
@ 2005-07-20 21:27 Stefan Sommerfeld
  2005-07-20 21:30 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Sommerfeld @ 2005-07-20 21:27 UTC (permalink / raw)
  To: ecos-discuss

Hi,

Is it possible to re-flash reboot from a running ecos system? I need to 
flash a whole system (inclusive reboot) for production, but i'm not sure if 
i can flash reboot besides the normal system (ecos and configs).

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ECOS] Reboot flashing from eCos system?
  2005-07-20 21:27 [ECOS] Reboot flashing from eCos system? Stefan Sommerfeld
@ 2005-07-20 21:30 ` Gary Thomas
  2005-07-20 21:38   ` Stefan Sommerfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2005-07-20 21:30 UTC (permalink / raw)
  To: Stefan Sommerfeld; +Cc: eCos Discussion

On Wed, 2005-07-20 at 23:27 +0200, Stefan Sommerfeld wrote:
> Hi,
> 
> Is it possible to re-flash reboot from a running ecos system? I need to 
> flash a whole system (inclusive reboot) for production, but i'm not sure if 
> i can flash reboot besides the normal system (ecos and configs).

Yes, if your RedBoot runs in ROMRAM mode, then this would be safe.

-- 
------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ECOS] Reboot flashing from eCos system?
  2005-07-20 21:30 ` Gary Thomas
@ 2005-07-20 21:38   ` Stefan Sommerfeld
  2005-07-20 22:49     ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Sommerfeld @ 2005-07-20 21:38 UTC (permalink / raw)
  To: ecos-discuss

Hi,
>>
>> Is it possible to re-flash reboot from a running ecos system? I need to
>> flash a whole system (inclusive reboot) for production, but i'm not sure 
>> if
>> i can flash reboot besides the normal system (ecos and configs).
>
> Yes, if your RedBoot runs in ROMRAM mode, then this would be safe.

Thanks ... you're understanding me. I, of course, talked about RedBoot.

Any chance to do this with a ROM RedBoot? I have a pre-installed RedBoot on 
a module which i want to replace. I'm thinking about disabling all IRQ's, 
MMU tables should already be in RAM, so if there's no special locking 
mechanism in RedBoot, flashing should work.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ECOS] Reboot flashing from eCos system?
  2005-07-20 21:38   ` Stefan Sommerfeld
@ 2005-07-20 22:49     ` Gary Thomas
  2005-08-15 16:29       ` Stefan Sommerfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2005-07-20 22:49 UTC (permalink / raw)
  To: Stefan Sommerfeld; +Cc: eCos Discussion

On Wed, 2005-07-20 at 23:38 +0200, Stefan Sommerfeld wrote:
> Hi,
> >>
> >> Is it possible to re-flash reboot from a running ecos system? I need to
> >> flash a whole system (inclusive reboot) for production, but i'm not sure 
> >> if
> >> i can flash reboot besides the normal system (ecos and configs).
> >
> > Yes, if your RedBoot runs in ROMRAM mode, then this would be safe.
> 
> Thanks ... you're understanding me. I, of course, talked about RedBoot.
> 
> Any chance to do this with a ROM RedBoot? I have a pre-installed RedBoot on 
> a module which i want to replace. I'm thinking about disabling all IRQ's, 
> MMU tables should already be in RAM, so if there's no special locking 
> mechanism in RedBoot, flashing should work.

Probably *not* safe as there are many mechanisms within RedBoot that
your application will rely upon, unless you disable 
   CYGSEM_HAL_USE_ROM_MONITOR

-- 
------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ECOS] Reboot flashing from eCos system?
  2005-07-20 22:49     ` Gary Thomas
@ 2005-08-15 16:29       ` Stefan Sommerfeld
  2005-08-15 16:38         ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Sommerfeld @ 2005-08-15 16:29 UTC (permalink / raw)
  To: ecos-discuss

Hi,

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".

Bye...

----- Original Message ----- 
From: "Gary Thomas" <gary@mlbassoc.com>
To: "Stefan Sommerfeld" <zerocom@cs.tu-berlin.de>
Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Sent: Donnerstag, 21. Juli 2005 00:49
Subject: Re: [ECOS] Reboot flashing from eCos system?


> On Wed, 2005-07-20 at 23:38 +0200, Stefan Sommerfeld wrote:
>> Hi,
>> >>
>> >> Is it possible to re-flash reboot from a running ecos system? I need 
>> >> to
>> >> flash a whole system (inclusive reboot) for production, but i'm not 
>> >> sure
>> >> if
>> >> i can flash reboot besides the normal system (ecos and configs).
>> >
>> > Yes, if your RedBoot runs in ROMRAM mode, then this would be safe.
>>
>> Thanks ... you're understanding me. I, of course, talked about RedBoot.
>>
>> Any chance to do this with a ROM RedBoot? I have a pre-installed RedBoot 
>> on
>> a module which i want to replace. I'm thinking about disabling all 
>> IRQ's,
>> MMU tables should already be in RAM, so if there's no special locking
>> mechanism in RedBoot, flashing should work.
>
> Probably *not* safe as there are many mechanisms within RedBoot that
> your application will rely upon, unless you disable
>   CYGSEM_HAL_USE_ROM_MONITOR
>
> -- 
> ------------------------------------------------------------
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ECOS] Reboot flashing from eCos system?
  2005-08-15 16:29       ` Stefan Sommerfeld
@ 2005-08-15 16:38         ` Gary Thomas
  2005-08-15 16:53           ` Stefan Sommerfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2005-08-15 16:38 UTC (permalink / raw)
  To: Stefan Sommerfeld; +Cc: eCos Discussion

On Mon, 2005-08-15 at 18:28 +0200, Stefan Sommerfeld wrote:
> Hi,
> 
> 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.

> 
> ----- Original Message ----- 
> From: "Gary Thomas" <gary@mlbassoc.com>
> To: "Stefan Sommerfeld" <zerocom@cs.tu-berlin.de>
> Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
> Sent: Donnerstag, 21. Juli 2005 00:49
> Subject: Re: [ECOS] Reboot flashing from eCos system?
> 
> 
> > On Wed, 2005-07-20 at 23:38 +0200, Stefan Sommerfeld wrote:
> >> Hi,
> >> >>
> >> >> Is it possible to re-flash reboot from a running ecos system? I need 
> >> >> to
> >> >> flash a whole system (inclusive reboot) for production, but i'm not 
> >> >> sure
> >> >> if
> >> >> i can flash reboot besides the normal system (ecos and configs).
> >> >
> >> > Yes, if your RedBoot runs in ROMRAM mode, then this would be safe.
> >>
> >> Thanks ... you're understanding me. I, of course, talked about RedBoot.
> >>
> >> Any chance to do this with a ROM RedBoot? I have a pre-installed RedBoot 
> >> on
> >> a module which i want to replace. I'm thinking about disabling all 
> >> IRQ's,
> >> MMU tables should already be in RAM, so if there's no special locking
> >> mechanism in RedBoot, flashing should work.
> >
> > Probably *not* safe as there are many mechanisms within RedBoot that
> > your application will rely upon, unless you disable
> >   CYGSEM_HAL_USE_ROM_MONITOR

-- 
------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ECOS] Reboot flashing from eCos system?
  2005-08-15 16:38         ` Gary Thomas
@ 2005-08-15 16:53           ` Stefan Sommerfeld
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Sommerfeld @ 2005-08-15 16:53 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [ECOS] Reboot flashing from eCos system?
@ 2005-08-16  7:27 Retallack, Mark (Siemens)
  0 siblings, 0 replies; 8+ messages in thread
From: Retallack, Mark (Siemens) @ 2005-08-16  7:27 UTC (permalink / raw)
  To: Stefan Sommerfeld; +Cc: ecos-discuss

Hi, I have done this. And it works very well (no problems so far!!). 

I load a flash based version of redboot via TFTP or from the filesystem
into ram. I then disable interrupts and use the eCos version of the
flash programming functions (not the redboot ones), to program the first
section of flash with redboot. Note that the flash programming functions
must not use any redboot virtual vector functions (mine don't). You need
to then reboot.  

I have not found a way of making this fail-safe, once you start the
upgrade you cannot stop. However you could make a copy of the original
redboot image and write it back if something failed.


-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Stefan
Sommerfeld
Sent: 20 July 2005 22:28
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Reboot flashing from eCos system?


Hi,

Is it possible to re-flash reboot from a running ecos system? I need to 
flash a whole system (inclusive reboot) for production, but i'm not sure
if 
i can flash reboot besides the normal system (ecos and configs).

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


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-08-16  7:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-20 21:27 [ECOS] Reboot flashing from eCos system? Stefan Sommerfeld
2005-07-20 21:30 ` Gary Thomas
2005-07-20 21:38   ` Stefan Sommerfeld
2005-07-20 22:49     ` Gary Thomas
2005-08-15 16:29       ` Stefan Sommerfeld
2005-08-15 16:38         ` Gary Thomas
2005-08-15 16:53           ` Stefan Sommerfeld
2005-08-16  7:27 Retallack, Mark (Siemens)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).