This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: decompression error: incorrect data check


Mark-

Thanks for the quick reply.  I updated my inflate.c file and ran my test
again and the "Decompression error:  incorrect data check" error didn't
show up.  Unfortunately, it still looks like the end of my file is
getting truncated.  It appears that the file is loaded up until the last
256-byte boundary and then stops, e.g. if the file was 540 bytes (before
compression), only the first 512 bytes get written into memory.  Any
idea why this may be happening?

Thanks,
Jack  

-----Original Message-----
From: Mark Salter [mailto:msalter@redhat.com] 
Sent: Monday, September 09, 2002 12:21 PM
To: Jack Morton
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] decompression error: incorrect data check

>>>>> Jack Morton writes:

> I'm having problems using the load -d command in RedBoot.  When I type
> "load -d -b 0x00080000 -r -m y" and do a y-modem transfer of my zipped
> up file, I get "Decompression error:  incorrect data check".  I tried
> several different files with both x- and y-modem transfers but still
got
> the same error.

> I ran a test where I uploaded a small file (~500 bytes) and dumped out
> the locations in memory where it was supposed to go.  When I compare
the
> data that is in memory with my original uncompressed file, it appears
> that the  majority of the file gets inflated without any problems but
> the last 20 to 30 bytes are missing.

> Anybody know why this is happening?  Has anyone seen this problem
> before?

I was able to easily reproduce it. Looks like a recent change to the way
the input streams are handled by the load command exposed a CRC
calculation
problem in the zlib code.

> BTW, I'm running on an Altera ARM9 Excalibur board with code I checked
> out of CVS yesterday (05Sep2002).

Update ecos/packages/services/compress/zlib/current/src/inflate.c and
try again. I believe it is fixed now.

--Mark

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]