[U-Boot-Users] booting linux kernel problem...

Geir Thomassen chaos at in.fer.no
Wed Feb 19 23:52:30 CET 2003

Michael Frey wrote:
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... Error: inflate() returned -2

-2 = Z_STREAM_ERROR, meaning the data is corrupt (truncated ?).

Quick workaround:

Compress the kernel instead (make zImage). You don't gain anything
by compressing your image twice.

I saw a similar problem and traced it back to troubles with malloc()
because armboot_real_end wasn't initialized correctly. See my mail:
"Memory layout on PXA" a couple of days ago.

If you are going to use initrd (eg. bootm 0x30000 0x40000) you need
to modify the initrd loading code also (at least I had to...),
since the code doesn't load the initrd to RAM. It passes a
pointer to the image in flash to the kernel instead.


More information about the U-Boot mailing list