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]

diff -ur linux-2.6.23.1-orig/arch/ppc/boot/simple/misc-embedded.c 
linux-2.6.23.1/arch/ppc/boot/simple/misc-embedded.c
--- linux-2.6.23.1-orig/arch/ppc/boot/simple/misc-embedded.c    2007-10-12 
12:43:44.000000000 -0400
+++ linux-2.6.23.1/arch/ppc/boot/simple/misc-embedded.c 2007-11-08 
12:06:12.000000000 -0500
@@ -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");
        {
diff -ur linux-2.6.23.1-orig/arch/ppc/boot/simple/misc.c 
linux-2.6.23.1/arch/ppc/boot/simple/misc.c
--- linux-2.6.23.1-orig/arch/ppc/boot/simple/misc.c     2007-10-12 
12:43:44.000000000 -0400
+++ linux-2.6.23.1/arch/ppc/boot/simple/misc.c  2007-11-08 13:08:34.000000000 
-0500
@@ -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 */
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to