* inflate returned FFFFFFFB
@ 2007-11-13 18:31 Alan Nishioka
0 siblings, 0 replies; only message in thread
From: Alan Nishioka @ 2007-11-13 18:31 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 840 bytes --]
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
alan@nishioka.com
[-- Attachment #2: ppc-gunzip.patch --]
[-- Type: text/plain, Size: 1047 bytes --]
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-13 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 18:31 inflate returned FFFFFFFB Alan Nishioka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox