linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Okay to change default zImage link/load address?
@ 2007-02-09 18:43 Mark A. Greer
  2007-02-09 18:51 ` Olaf Hering
  0 siblings, 1 reply; 13+ messages in thread
From: Mark A. Greer @ 2007-02-09 18:43 UTC (permalink / raw)
  To: linuxppc-dev, Paul Mackerras

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      :
   {

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

end of thread, other threads:[~2007-02-12 19:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-09 18:43 Okay to change default zImage link/load address? Mark A. Greer
2007-02-09 18:51 ` Olaf Hering
2007-02-09 18:55   ` Mark A. Greer
2007-02-09 19:14     ` Josh Boyer
2007-02-09 22:35       ` David Gibson
2007-02-10  1:27         ` Josh Boyer
2007-02-09 19:34     ` Geoff Levand
2007-02-09 22:40       ` David Gibson
2007-02-09 23:05         ` Geoff Levand
2007-02-09 23:21         ` Mark A. Greer
2007-02-09 23:25           ` Mark A. Greer
2007-02-10  0:53             ` David Gibson
2007-02-12 19:18               ` Mark A. Greer

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).