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 <[EMAIL PROTECTED]>
IBM Linux Technology Center Brazil
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
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to