[U-Boot] [PATCH] zlib: allow 0 as destination pointer

rhabarber1848 rhabarber1848 at web.de
Mon Jul 27 20:02:13 CEST 2009


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




More information about the U-Boot mailing list