public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] small custom bootloader to start an app stored in flash
@ 2014-10-21  8:27 Oleg Uzenkov
  2014-10-21 11:02 ` Gary Thomas
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Oleg Uzenkov @ 2014-10-21  8:27 UTC (permalink / raw)
  To: eCos Discussion

Hello Everyone,

I would like to make a small custom bootloader (not considering RedBoot) 
that would implement a simple function of checking a flag (some bytes in 
memory) and then jumping to one of the applications stored in internal 
flash.

Something like this:

internal flash memory:

------------------  0x08000000
| bootloader  |
|                    |
------------------
|_____            |
|flag |            |
------------------
|                    |
|                    |
------------------
| app1           |
|                    |
------------------
| app2           |
|                    |
------------------
|                    |
|                    |
--------------

Basically, if flag is true then start app1 else start app2.

I suppose bootloader would be a simple eCos app with ROM startup. 
Applications in flash probably should also be built for ROM startup.
When the jump is made app's .data and .bss sections should be copied 
into RAM...

Any ideas how to make a jump to start an app? May be some sample code 
showing how to do it in eCos? May be someone has done it already?

I would appreciate any help on this.

Best wishes,

Oleg

-- 
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] 17+ messages in thread

end of thread, other threads:[~2014-10-24  9:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-21  8:27 [ECOS] small custom bootloader to start an app stored in flash Oleg Uzenkov
2014-10-21 11:02 ` Gary Thomas
2014-10-21 13:25 ` Edgar Grimberg
     [not found] ` <CAPrjMDAi=cqTSQ-d-c9FF53W-c6=v0j8rzSLQfuTcBQUY43Zpw@mail.gmail.com>
2014-10-22 11:08   ` Oleg Uzenkov
2014-10-22 13:17     ` Edgar Grimberg
2014-10-22 14:40       ` Oleg Uzenkov
2014-10-23  9:55         ` Edgar Grimberg
2014-10-23 12:53           ` Edgar Grimberg
2014-10-23 15:03             ` Oleg Uzenkov
2014-10-23 19:25               ` Rainer Arndt
2014-10-23 21:21               ` Sergei Gavrikov
2014-10-24  7:44                 ` Oleg Uzenkov
2014-10-24  8:36                   ` Sergei Gavrikov
2014-10-24  9:13                     ` Sergei Gavrikov
2014-10-24  9:13                     ` Oleg Uzenkov
2014-10-22 19:01     ` Rainer Arndt
2014-10-23 11:50       ` Oleg Uzenkov

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