public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Mark Salter <msalter@redhat.com>
Cc: Winkler Andreas <andreas.aw.winkler@siemens.com>,
	eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: RE: [ECOS] [Fwd: How to enable redboots CRC checking]
Date: Wed, 26 May 2004 13:03:00 -0000	[thread overview]
Message-ID: <1085576105.15478.118.camel@hermes> (raw)
In-Reply-To: <20040526125225.A30307907B@deneb.localdomain>

On Wed, 2004-05-26 at 06:52, Mark Salter wrote:
> On Wed, 2004-05-26 at 06:15, Winkler Andreas wrote:
> 
> > What i get is
> > 
> > RedBoot> loa -r -b 0x01008000 jffs2k
> > Using default protocol (TFTP)
> > Raw file loaded 0x01008000-0x010c27c7, assumed entry at 0x01008000
> > RedBoot> fi cr kernel
> > ... Erase from 0x50040000-0x50100000: ......
> > ... Program from 0x01008000-0x010c27c8 at 0x50040000: ......
> > ... Unlock from 0x50fe0000-0x51000000: .
> > ... Erase from 0x50fe0000-0x51000000: .
> > ... Program from 0x0ffe0000-0x10000000 at 0x50fe0000: .
> > ... Lock from 0x50fe0000-0x51000000: .
> > RedBoot> fi wr -f 0x50060000 -b 0x1008000 -l 100
> > * CAUTION * about to program FLASH
> >             at 0x50060000..0x5007ffff from 0x01008000 - continue (y/n)? y
> > ... Erase from 0x50060000-0x50080000: .
> > ... Program from 0x01008000-0x01028000 at 0x50060000: .
> > RedBoot> fi loa kernel
> > RedBoot> e
> > Using base address 0x01008000 and length 0x000ba7c8
> > Uncompressing Linux...........
> > 
> > invalid compressed format (err=2)
> > 
> >  -- System halted
> > 
> > Any idea, what could be my fault?
> 
> Could you explain what you are trying to accomplish by the "fi wr"
> command above? 
> 
> You download the kernel image and write it to flash from 0x50040000
> to 0x500fa7c8. Then you write the first 100 bytes of the kernel
> image to 0x50060000 which is in the middle of the kernel image you
> wrote in the previous step. So of course the kernel decompresses
> until it hits the area you corrupted, at which point it complains
> about the invalid compressed image.

I think he's just trying to test RedBoot's checking of the CRC,
by corrupting the data and showing that the Linux de-compressor
detects it properly.
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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:[~2004-05-26 12:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-26 12:29 Winkler Andreas
2004-05-26 12:51 ` Andrew Lunn
2004-05-26 12:52 ` Gary Thomas
2004-05-26 13:00 ` Mark Salter
2004-05-26 13:03   ` Gary Thomas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-26 15:48 Winkler Andreas
2004-05-26 13:20 Winkler Andreas
2004-05-26 13:28 ` Gary Thomas
2004-05-26 13:16 Winkler Andreas
2004-05-26 12:55 Winkler Andreas
2004-05-26 13:16 ` Gary Thomas
2004-05-19 12:15 Winkler Andreas
2004-05-19 10:36 Winkler Andreas
2004-05-19 10:46 ` Gary Thomas
2004-05-05 10:13 Jonathan Larmour
2004-05-05 10:52 ` Gary Thomas

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=1085576105.15478.118.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=andreas.aw.winkler@siemens.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=msalter@redhat.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).