From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LSN6J-0006O7-Ug for mharc-grub-devel@gnu.org; Wed, 28 Jan 2009 21:57:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSN6I-0006O2-Sw for grub-devel@gnu.org; Wed, 28 Jan 2009 21:57:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSN6G-0006Nq-LM for grub-devel@gnu.org; Wed, 28 Jan 2009 21:57:53 -0500 Received: from [199.232.76.173] (port=47305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSN6G-0006Nn-Ha for grub-devel@gnu.org; Wed, 28 Jan 2009 21:57:52 -0500 Received: from c60.cesmail.net ([216.154.195.49]:36357) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1LSN6F-0005nG-VA for grub-devel@gnu.org; Wed, 28 Jan 2009 21:57:52 -0500 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 28 Jan 2009 21:57:50 -0500 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 50E1434C6D for ; Wed, 28 Jan 2009 21:58:31 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1233040781.5108.98.camel@thor.local> References: <1233040781.5108.98.camel@thor.local> Content-Type: text/plain; charset="UTF-8" Date: Wed, 28 Jan 2009 21:57:47 -0500 Message-Id: <1233197867.2727.39.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 (2.24.3-1.fc10) Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: State of GRUB on PowerPC 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: Thu, 29 Jan 2009 02:57:55 -0000 On Tue, 2009-01-27 at 08:19 +0100, Michel Dänzer wrote: > I was able to reproduce Jordi's findings on my PowerBook G4. (Well, > except device.map seems to get generated correctly and the search > command seems to work for me, maybe this is due to differences between > our OF device trees or something like that) > > After some printf-style debugging over the weekend, the failure to load > some modules indeed turns out to be an hfs.mod bug: the problem is that > strncasecmp() doesn't match the HFS B-tree sort order, which in > particular breaks lookup of files with an underscore in their name. The > first attached patch fixes this using a lookup table from Linux > fs/hfs/string.c. Actually, the return value of grub_strncasecmp() was incorrect until recently. Maybe the current version would work for you? I'm not against your patch, but I'd like to understand how important it is for GRUB. Please write a ChangeLog entry for the patch. > The failure to auto-load some modules like search was also caused by > this, the auto-loading process aborts after failing to load a module. It > might be better to continue auto-loading other modules anyway. Patches are welcome. With explanations, please. > BTW, I also need the second attached patch to be able to boot my > self-built 32 bit kernels configured to support 2GB lowmem. > elf->ehdr.ehdr32.e_entry ends up as 0x70000000. Strange. The original mask should ensure that elf->ehdr.ehdr32.e_entry is less than 0x40000000. -- Regards, Pavel Roskin