public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Weiguang Shi <wgshizz@yahoo.com>
Cc: ecos-discuss <ecos-discuss@ecos.sourceware.org>
Subject: Re: AW: [ECOS] cat zImage >/dev/mtd1 does not work
Date: Fri, 19 Jan 2007 18:18:00 -0000	[thread overview]
Message-ID: <45B10B61.1080404@mlbassoc.com> (raw)
In-Reply-To: <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

  reply	other threads:[~2007-01-19 18:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19  7:48 Neundorf, Alexander
2007-01-19  9:00 ` [ECOS] Ecos/redboot on Xscale pxa270 tejas pawaskar
2007-01-19 16:50 ` AW: [ECOS] cat zImage >/dev/mtd1 does not work Weiguang Shi
2007-01-19 16:53   ` Andrew Lunn
2007-01-19 17:50   ` Gary Thomas
2007-01-19 18:08     ` Weiguang Shi
2007-01-19 18:18       ` Gary Thomas [this message]
2007-01-19 18:28         ` Weiguang Shi
2007-01-20  2:00         ` Weiguang Shi
2007-01-20 13:46           ` Gary Thomas
2007-01-23  2:08             ` Weiguang Shi
2007-01-23  8:42               ` Gary Thomas
2007-01-23 19:34                 ` Weiguang Shi
2007-01-23 20:11                   ` Gary Thomas
2007-01-28 21:26                     ` Weiguang Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45B10B61.1080404@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=wgshizz@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).