inflate returned FFFFFFFB
After adding files to initramfs, I get the following error:
Uncompressing Linux...inflate returned FFFFFFFB
This is caused by zlib_inflate returning -5 or Z_BUF_ERROR.
The attached patch fixes this problem for me.
It is also available at
http://www.nishioka.com/misc/ppc-gunzip.patch
It probably also fixes the problem at
http://ozlabs.org/pipermail/linuxppc-embedded/2006-August/023851.html
and only 15 months too late.
It moves the link/load address higher in memory and tells gunzip it has more space to uncompress. You need to change the address in .config
make menuconfig
Advanced setup -->
[*] Prompt for advanced configuration options
[*] Set the boot link/load address
(0x00800000) Link/load address for booting
This is my first post to this list.
Please tell me if I am missing anything.
Alan Nishioka
[email protected]
arch/ppc/boot/simple/misc-embedded.c +1 -1
@@ -212,7 +212,7 @@ *cp =0 ;puts ("\nUncompressing Linux..." ); -gunzip (0 ,0x400000 , zimage_start, &zimage_size); +gunzip (0 ,CONFIG_BOOT_LOAD , zimage_start, &zimage_size);flush_instruction_cache ();puts ("done.\n" ); {
arch/ppc/boot/simple/misc.c +1 -1
@@ -216,7 +216,7 @@puts ("\n" );puts ("Uncompressing Linux..." ); -gunzip (NULL ,0x400000 , zimage_start, &zimage_size); +gunzip (NULL ,CONFIG_BOOT_LOAD , zimage_start, &zimage_size);puts ("done.\n" );/* get the bi_rec address */