Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KtUb7-0001PU-KP for mharc-grub-devel@gnu.org; Fri, 24 Oct 2008 17:53:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtUb6-0001Os-3S for grub-devel@gnu.org; Fri, 24 Oct 2008 17:53:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtUb3-0001Me-Nv for grub-devel@gnu.org; Fri, 24 Oct 2008 17:53:31 -0400 Received: from [199.232.76.173] (port=35624 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtUb3-0001MR-H7 for grub-devel@gnu.org; Fri, 24 Oct 2008 17:53:29 -0400 Received: from igw2.br.ibm.com ([32.104.18.25]:46095) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KtUb2-0003Eq-8f for grub-devel@gnu.org; Fri, 24 Oct 2008 17:53:29 -0400 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw2.br.ibm.com (Postfix) with ESMTP id D7C1D17F4B2 for ; Fri, 24 Oct 2008 19:52:13 -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 m9OLqvcB4149412 for ; Fri, 24 Oct 2008 18:52:57 -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 m9OLrDiJ028302 for ; Fri, 24 Oct 2008 19:53:13 -0200 Received: from [9.18.199.59] ([9.18.199.59]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m9OLrDkv028269; Fri, 24 Oct 2008 19:53:13 -0200 From: Manoel To: Hollis Blanchard In-Reply-To: <1224788935.16720.38.camel@localhost.localdomain> References: <1224622323.31194.81.camel@localhost.localdomain> <1224784802.9254.56.camel@manoel-laptop> <1224788935.16720.38.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 24 Oct 2008 19:53:21 -0200 Message-Id: <1224885201.7358.53.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: The development of GRUB 2 , Carlos Roberto do Nascimento Costa Subject: Re: PPC64 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: Fri, 24 Oct 2008 21:53:32 -0000 Changing the load-base worked in the P5 machine but when I tested in the P6 machine I got the following message: Relocation overflow In function grub_arch_dl_relocate_symbols. It means that I'm lacking memory? On Thu, 2008-10-23 at 14:08 -0500, Hollis Blanchard wrote: > On Thu, 2008-10-23 at 16:00 -0200, Manoel wrote: > > > > I talked with some folks at #pppc64 on freenode an they suggest that > > the > > OF is loading things in the wrong place could a problem with my > > load-base: > > > > real-base c00000 c00000 > > virt-base ffffffff ffffffff > > real-size 1000000 1000000 > > virt-size ffffffff ffffffff > > load-base 4000 4000 > > > > they suggested to change load-base from 4000 to 200000 but I hava yet > > to try it. They also said that the note section can override > > load-base (and maybe we have some problem there?) > > It's possible. See below. > > > I'm now reading PARP documentation to learn more about OF behavior. I > > thought these machine were CHRP but they are actually PARP (is that > > right?). Son only today I was able to get the correct documentation. > > PAPR was based on the older CHRP specification. > > > > Look at the segment list again: > > > > Program Headers: > > > > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align > > > > LOAD 0x0000b4 0x00010000 0x00010000 0x0cbe4 0x14098 RWE 0x10 > > > > GNU_STACK 0x00cc98 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4 > > > > LOAD 0x00cc98 0x0002d000 0x0002d000 0x5c1c8 0x5c1c8 RWE 0x4 > > > > NOTE 0x068e60 0x00000000 0x00000000 0x0002c 0x00000 R 0x4 > > > > > NOTE 0x068e60 0x00000000 0x00000000 0x0002c 0x00000 R 0x4 > > this line look somehow wrong. NOTE will be loaded at the address 0? > > and will occupy no memory? that is the same as don't having NOTE at > > all right? > > NOTE is interpreted by the loader (firmware), but not actually loaded > into memory. This is a binary structure that can be used to set some of > the environment variables you mention above. > > The NOTE segment (segment, not section) is created by > util/elf/grub-mkimage.c . You can see that load-base is set to 0x4000 in > that code. Since your text starts at 0x10000, that means your binary can > be at most 0xc000 bytes (48KB) large before it overlaps the text area. > That isn't necessarily a problem; firmware is probably using memmove() > (which handles overlapping areas) to load the segments into place. > > It's probably worth trying a different load-base to see if that could be > the problem here. > -- Best Regards, Manoel Abranches IBM Linux Technology Center Brazil