From mboxrd@z Thu Jan 1 00:00:00 1970 From: rhabarber1848 Date: Mon, 27 Jul 2009 20:02:13 +0200 Subject: [U-Boot] [PATCH] zlib: allow 0 as destination pointer References: <200907271730.36098.sr@denx.de> <05a201ca0ec5@st.com> <20090727150928.GA433@mail.gnudd.com> <20090727164031.GA3963@mail.gnudd.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Alessandro Rubini wrote: > The entry point of an image can be 0 (like on PowerPC), so allow next_out > to be NULL in inflate() Hi, this patch solves the inflate() error but now a watchdog reset is triggered during decompression: ## Booting kernel from Legacy Image at 00200000 ... Image Name: Linux-2.4.37.2-dbox2 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 772042 Bytes = 753.9 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... debug: DDF: Calibrating delay loop... debug: DDF: 66.76 BogoMIPS debug: WATCHDOG RESET [...] The neither the old nor the new code incorporate WATCHDOG_RESET() so the new code seems to be slower than the old one which works. I have yet to dig through the zlib code to insert some WATCHDOG_RESET() here and there like I did with the LZMA code. Cheers, rhabarber1848