From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKKhS-00055A-W4 for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 16:42:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKKhR-00053R-0L for grub-devel@gnu.org; Wed, 30 Jan 2008 16:42:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKKhP-00052r-KJ for grub-devel@gnu.org; Wed, 30 Jan 2008 16:42:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKKhP-00052m-6c for grub-devel@gnu.org; Wed, 30 Jan 2008 16:42:27 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JKKhO-0004BE-Pa for grub-devel@gnu.org; Wed, 30 Jan 2008 16:42:26 -0500 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 30 Jan 2008 16:42:26 -0500 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 041C6619058 for ; Wed, 30 Jan 2008 16:42:25 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <877ihtc9h4.fsf@xs4all.nl> References: <1201490732.20392.15.camel@rd> <20080128090910.GC13368@thorin> <20080128093028.GA29689@thorin> <1201527891.15848.6.camel@dv> <20080128162900.GA9715@thorin> <877ihtc9h4.fsf@xs4all.nl> Content-Type: text/plain Date: Wed, 30 Jan 2008 16:42:25 -0500 Message-Id: <1201729345.8103.36.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms 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: Wed, 30 Jan 2008 21:42:29 -0000 On Tue, 2008-01-29 at 09:38 +0100, Marco Gerards wrote: > Robert Millan writes: > > > On Mon, Jan 28, 2008 at 08:44:51AM -0500, Pavel Roskin wrote: > >> > What do you suggest? > >> > >> I would prefer to have GRUB_MOD_GAP is all headers. Once it's not > >> needed, it could be removed across the board. > > > > Ok, does this seem fine? > > Am I missing something, or didn't you explain what GRUB_MOD_GAP is > supposed to do...? To be honest, I do not know what it is about. If it's not there, PowerMac OpenFirmware would not load the grub image made by grub-mkimage. Instead, it will report "CLAIM failed". The modules use to be loaded at 3 Mb. Then they were moved directly after the core (kernel.elf), which created the problem. Search for the shortest gap that doesn't result in "CLAIM failed" indicated that it's 0x8000 (32k). I tried adding more code to kernel.elf, and the gap of 32k was still sufficient. I assume that if the result of grub-mkimage is a valid ELF file, like kernel.elf, "CLAIM failed" would not happen. -- Regards, Pavel Roskin