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: Adding commands to RedBoot


Warren Jasper wrote:
> 
> What is the preferred way to add/extend commands to RedBoot?

If you've looked at the sources, you've probably already seen RedBoot_Cmd.

> Specifically, it would be nice to have 2 command to augment dump, namely:
> 
> edit -b <location> -v <value>
> 
> fill -b <location> -l <length> -v <value>
> 
> Should these functions reside in diag.cxx and just put the calls in
> /redboot/current/main.c?

diag.cxx? Surely not. Put them in main.c beside dump. Although once we
reach that point, we may choose to break some of the commands out of main.c
as it's getting quite big...

> Somewhere they should call the macro HAL_WRITE_UINT32.

Yep, or whatever HAL macros are appropriate. There should probably be a
size argument to edit (byte, halfword, word, or perhaps instead just the
length in bytes).

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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