Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L2Vr3-0005gn-At for mharc-grub-devel@gnu.org; Tue, 18 Nov 2008 14:03:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2Vr0-0005gS-SN for grub-devel@gnu.org; Tue, 18 Nov 2008 14:03:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2Vqz-0005fl-B3 for grub-devel@gnu.org; Tue, 18 Nov 2008 14:03:14 -0500 Received: from [199.232.76.173] (port=43267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2Vqz-0005fi-7U for grub-devel@gnu.org; Tue, 18 Nov 2008 14:03:13 -0500 Received: from igw3.br.ibm.com ([32.104.18.26]:52747) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2Vqy-0006iv-QZ for grub-devel@gnu.org; Tue, 18 Nov 2008 14:03:13 -0500 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw3.br.ibm.com (Postfix) with ESMTP id 395CD3902D7 for ; Tue, 18 Nov 2008 17:00:33 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mAIK2Plr1245320 for ; Tue, 18 Nov 2008 17:02:25 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mAIJ2mgo030570 for ; Tue, 18 Nov 2008 17:02:48 -0200 Received: from [9.18.253.48] ([9.18.253.48]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mAIJ2lPp030487; Tue, 18 Nov 2008 17:02:47 -0200 From: Manoel To: The development of GRUB 2 Content-Type: multipart/mixed; boundary="=-Uov19IUN6gf7qyv6jGlk" Date: Tue, 18 Nov 2008 17:02:33 -0200 Message-Id: <1227034953.17386.29.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (tstamp-) Cc: Carlos Roberto do Nascimento Costa , Segher Boessenkool , Hollis Blanchard Subject: [PATCH] Grub2 running address on PowerPC64 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 19:03:15 -0000 --=-Uov19IUN6gf7qyv6jGlk Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 IBM Linux Technology Center Brazil --=-Uov19IUN6gf7qyv6jGlk Content-Disposition: attachment; filename="running_address.patch" Content-Type: text/x-patch; name="running_address.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 --=-Uov19IUN6gf7qyv6jGlk--