This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RedBoot porting


>>>>> "Andrew" == Andrew Lunn <andrew.lunn@ascom.ch> writes:

>> One way this could be accomplished is by providing a function (in
>> RAM application) that saves the virtual vector table, fills it with
>> pointers to NOP functions (in RAM) which count usage.

Andrew> Another simpler option is to make the ROM copy itself into RAM
Andrew> and run from there. Some of the HALs already support this for
Andrew> apps, but has it been tested for redboot? It also means you
Andrew> can then overwrite the redboot image in FLASH while its
Andrew> running the copy in RAM. With the app and the boot loader
Andrew> becoming closer tied together its becoming more important to
Andrew> be able to upgrade the bootloader in the field as well as the
Andrew> application.

This should work already for targets that support it. Adding the
support to new targets it relatively simple (only really requires PIC
startup code that initializes the system, copies everything to RAM and
jumps there). Remember, RedBoot _is_ just an application (as far as I
know, anyway).

Jesper

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]