From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8855 invoked by alias); 6 May 2004 14:56:45 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 8846 invoked from network); 6 May 2004 14:56:44 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 6 May 2004 14:56:44 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id D741B100B66; Thu, 6 May 2004 08:56:43 -0600 (MDT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 26D0B100B65; Thu, 6 May 2004 08:56:43 -0600 (MDT) From: Gary Thomas To: Thomas Koeller Cc: eCos Discussion In-Reply-To: <200405061652.49353.thomas.koeller@baslerweb.com> References: <20040506065556.51970.qmail@web40913.mail.yahoo.com> <409A4DB8.4010404@rawbw.com> <200405061652.49353.thomas.koeller@baslerweb.com> Content-Type: text/plain Organization: MLB Associates Message-Id: <1083855402.5389.546.camel@hermes> Mime-Version: 1.0 Date: Thu, 06 May 2004 14:56:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spam-Status: No, hits=0.3 required=5.0 tests=AWL autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on hermes.chez-thomas.org Subject: Re: [ECOS] zlib_uncompress usage(more info) X-SW-Source: 2004-05/txt/msg00088.txt.bz2 On Thu, 2004-05-06 at 08:52, Thomas Koeller wrote: > Zlib needs _huge_ buffers in RAM. A description of how to > estimate the amount of ram required can be found in > packages/services/compress/zlib/current/include/zconf.h. Or look at how RedBoot does it. > > tk > > > John Newlin wrote: > > Most likely you need to skip around the gzip header (or strip the header > > prior to programming the image into flash) > > > > If you have the zlib code, look in gzio.c for the function check_header > > as an example > > > > -john > > > > bhanuprakash kandimalla wrote: > > >Just want to put some more info to my previous mail. > > > > > >Hello Ecos World: > > >Did any one use the zlib uncompress function. This > > >funtion has the following structure:uncompress(dest, > > >dest_len, source, source_len). Is there anylimit on > > >the souce_len to use. I have a compressed image stored > > >in boot flash and want to uncompress onto RAM. The > > >source file is of 177768 bytes. Some how when I use > > >this function, it always returns Z_MEM_ERROR. (I used > > >the Cygwin tool to create the compressed image > > >(gzip)). > > > > > >>>This Z_MEM_ERROR is returning from inflate_blocks() > > > > > >function. What does this mean... > > > > > >Can someone suggest me where I am doing wrong. I > > >appreciate any help. > > >Thanks in advance > > > > > > > > > > > > > > >__________________________________ > > >Do you Yahoo!? > > >Win a $20,000 Career Makeover at Yahoo! HotJobs > > >http://hotjobs.sweepstakes.yahoo.com/careermakeover > > -- > -------------------------------------------------- > > Thomas Koeller, Software Development > Basler Vision Technologies > > thomas dot koeller at baslerweb dot com > http://www.baslerweb.com > > ============================== -- Gary Thomas 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