All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Grub2 running address on PowerPC64
@ 2008-11-18 19:02 Manoel
  2008-11-22 20:13 ` Robert Millan
  0 siblings, 1 reply; 2+ messages in thread
From: Manoel @ 2008-11-18 19:02 UTC (permalink / raw)
  To: The development of GRUB 2
  Cc: Carlos Roberto do Nascimento Costa, Segher Boessenkool,
	Hollis Blanchard

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

OF uses the address 0x4000 as base-load (as stated in NOTE section added
by grub-mkelfimage) and grub uses 0x10000 as running address, thus
causing segment overlapping which leads to grub2 unable to load its
modules.

This patch moves the running address to 0x200000 to prevent overlapping,
its the same address used by Yaboot and is know to work well.

the makefile must be regenerated using the command:
 $ ruby genmk.rb < conf/powerpc-ieee1275.rmk> conf/powerpc-ieee1275.mk 


-- 
Best Regards,

Manoel Abranches <mrabran@linux.vnet.ibm.com>
IBM Linux Technology Center Brazil

[-- Attachment #2: running_address.patch --]
[-- Type: text/x-patch, Size: 467 bytes --]

Index: conf/powerpc-ieee1275.rmk
===================================================================
--- conf/powerpc-ieee1275.rmk	(revision 1917)
+++ conf/powerpc-ieee1275.rmk	(working copy)
@@ -85,7 +85,7 @@
 kernel_elf_CFLAGS = $(COMMON_CFLAGS)
 kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
 kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
-	-Wl,-N,-S,-Ttext,0x10000,-Bstatic
+	-Wl,-N,-S,-Ttext,0x200000,-Bstatic
 
 # Scripts.
 sbin_SCRIPTS = grub-install

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

end of thread, other threads:[~2008-11-22 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 19:02 [PATCH] Grub2 running address on PowerPC64 Manoel
2008-11-22 20:13 ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.