Okay to change default zImage link/load address?

Mark A. Greer mgreer at mvista.com
Sat Feb 10 05:43:45 EST 2007


The default link (and therefore load address if your fw talks ELF)
is @ 4MB.  This causes problems for at least 2 different platforms
I have (Maple and f101/prpmc280).  The problem is that a large enough
zImage overwrites memory--or stops downloading if it would overwrite
memory--used by the firmware and it ends up complaining about a corrupted
ELF image or just doesn't run properly.

The default in arch/ppc was configurable (CONFIG_BOOT_LOAD) with the
default being 8MB.  8MB worked fine for most if not all 32-bit platforms.

Does anyone know of a problem downloading to 8MB instead of 4MB in
arch/powerpc?  If not, would you object if it changed to 8MB?

The patch below is the change I'm talking about.

Thanks,

Mark
--

diff --git a/arch/powerpc/boot/zImage.lds.S b/arch/powerpc/boot/zImage.lds.S
index 4be3c64..608de2f 100644
--- a/arch/powerpc/boot/zImage.lds.S
+++ b/arch/powerpc/boot/zImage.lds.S
@@ -2,7 +2,7 @@ OUTPUT_ARCH(powerpc:common)
 ENTRY(_zimage_start)
 SECTIONS
 {
-  . = (4*1024*1024);
+  . = (8*1024*1024);
   _start = .;
   .text      :
   {



More information about the Linuxppc-dev mailing list