public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  Error uncompressing kernel image
@ 2009-02-20 15:49 Alemao
  2009-02-20 16:01 ` Jerry Van Baren
  2009-02-23  7:18 ` Michael Lawnick
  0 siblings, 2 replies; 3+ messages in thread
From: Alemao @ 2009-02-20 15:49 UTC (permalink / raw)
  To: u-boot

Hi all,

I have two JFFS2 images, both with the _same_ kernel inside.

But the images differs in size, cause one is for debugging and has
some additional apps:

debug.im   = 13 MB
release.im = 6.2 MB


Im loading kernel and dtb via fsload:

fsload 2000000 uImage
fsload 4000000 mpc8343.dtb
bootm 2000000 - 4000000


When I use release.im, no problems. But when I use debug.im:

   Verifying Checksum ... OK
   Uncompressing Kernel Image ... Error: inflateInit2() returned -4
GUNZIP ERROR - must RESET board to recover
Resetting the board.


In u-boot/include/zlib.h:232:

#define Z_MEM_ERROR    (-4)


In u-boot/lib_generic/zlib.c:342: (inflateInit2() function)

--------
  if ((z->state = (struct internal_state FAR *)
       ZALLOC(z,1,sizeof(struct internal_state))) == Z_NULL)

    return Z_MEM_ERROR;
--------

Any ideas why this is happening?

Maybe scanning JFFS2 is consuming a lot of memory?

My board has 128 MB of DDR SDRAM, I think space is not a problem, so
is there a place that I can set for exemple max values for
allocations?

Im using U-boot-1.2.0.

Cheers,

--
Alemao

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-23  7:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20 15:49 [U-Boot] Error uncompressing kernel image Alemao
2009-02-20 16:01 ` Jerry Van Baren
2009-02-23  7:18 ` Michael Lawnick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox