linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Gunzip call fix for PPC kernel images >4MB
@ 2006-08-16  9:31 Benjamin Heyne
  2006-08-17  5:04 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin Heyne @ 2006-08-16  9:31 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Tom Rini, Paul Mackerras, Milton Miller

If Kernel images for PPC grow >4MB inflating of the kernel fails.
Increasing the link/load address doesn't help. Problem is 
solved by replacing the fixed address of the gunzip() call in
misc-embedded.c with CONFIG_BOOT_LOAD.

Signed-off-by: Benjamin Heyne <benjamin.heyne@uni-dortmund.de>
---

--- arch/ppc/boot/simple/misc-embedded.c.orig 2006-08-16 10:56:10.000000000 +0200 
+++ arch/ppc/boot/simple/misc-embedded.c 2006-08-16 10:56:55.000000000 +0200 
@@ -213,7 +213,7 @@ load_kernel(unsigned long load_addr, int 
	*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");
 	{

-- 
Benjamin Heyne
=======================================================
 Arbeitsgebiet Datentechnik, Universitaet Dortmund
 Information Processing Lab, University of Dortmund

 Otto-Hahn-Strasse 4, 44227 Dortmund, Germany
 Fon: +49 231 755 7017, Fax: +49 231 755 7019
 www.dt.e-technik.uni-dortmund.de, Raum/Room P1-04-217

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

end of thread, other threads:[~2006-09-04 18:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16  9:31 [PATCH] Gunzip call fix for PPC kernel images >4MB Benjamin Heyne
2006-08-17  5:04 ` Tom Rini
2006-08-17 16:09   ` Dan Malek
2006-08-17 17:04     ` Tom Rini
2006-08-18  8:10   ` Benjamin Heyne
2006-09-04 18:36     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).