This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Adding commands to RedBoot
- To: Warren Jasper <Warren dot Jasper at bops dot com>
- Subject: Re: [ECOS] Adding commands to RedBoot
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 18 Sep 2001 21:29:33 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <6476CB7C06B86D46A0C5BF34EACD3833037276@rtpsrv001.rtp.bops.com>
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