This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: AW: cat zImage >/dev/mtd1 does not work
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Weiguang Shi <wgshizz at yahoo dot com>
- Cc: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 19 Jan 2007 11:18:09 -0700
- Subject: Re: AW: [ECOS] cat zImage >/dev/mtd1 does not work
- References: <481462.9151.qm@web30408.mail.mud.yahoo.com>
Weiguang Shi wrote:
That's even better and was the solution that I was looking for.
The question is how, from the OS, can I update the FIS. Obviously
I need to know the structure of the "FIS directory" partition and
find the offset of that checksum and insert a '0' there by
- reading the whole partition into ram,
- changing the bit, erasing the partition on the flash,
- and finally flashing the modified partition in the ram back.
Any suggestions as to where to start?
<redboot/fis.h>
Also, drivers/mtd has some RedBoot FIS parsing code in it. You could
look at it for pointers.
--- Gary Thomas <gary@mlbassoc.com> wrote:
Note: you don't really need to change RedBoot. Just update the
FIS [directory] entry for the image you are changing, either with
the corrected checksum, or the value 0. RedBoot ignores the checksum
when the stored value is 0.
--
------------------------------------------------------------
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