This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: [Fwd: How to enable redboots CRC checking]
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Mark Salter <msalter at redhat dot com>
- Cc: Winkler Andreas <andreas dot aw dot winkler at siemens dot com>,eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 26 May 2004 06:55:05 -0600
- Subject: RE: [ECOS] [Fwd: How to enable redboots CRC checking]
- Organization: MLB Associates
- References: <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