Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DNjvq-0001vP-UN for mharc-grub-devel@gnu.org; Tue, 19 Apr 2005 00:01:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNjvo-0001sI-C1 for grub-devel@gnu.org; Tue, 19 Apr 2005 00:01:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNjvl-0001pG-A5 for grub-devel@gnu.org; Tue, 19 Apr 2005 00:01:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNjvl-0001cQ-5o for grub-devel@gnu.org; Tue, 19 Apr 2005 00:01:45 -0400 Received: from [209.86.89.66] (helo=smtpauth06.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DNjvr-0001KV-0I for grub-devel@gnu.org; Tue, 19 Apr 2005 00:01:51 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth06.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DNjtx-0006FY-57 for grub-devel@gnu.org; Mon, 18 Apr 2005 23:59:53 -0400 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <1ef9095696e3f129979d08a7d385e1d2@penguinppc.org> References: <20050417183350.GA30191@miracle> <87r7h96vo7.fsf@student.han.nl> <1ef9095696e3f129979d08a7d385e1d2@penguinppc.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Mon, 18 Apr 2005 22:59:51 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79dd9bc66ba69c1cdc6acb163cce9c902e350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [patch] set prefix on PPC - briQ results 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, 19 Apr 2005 04:01:48 -0000 I've tested the patch on briQ. As far as I can tell, CodeGen's "SmartFirmware" is crap, frequently suffering mysterious failures that require unplugging and waiting (unplugging and replugging rapidly isn't enough). It also suffers frequent ATA failures, where the disk or controller simply stop responding. 1. (major) Firmware does not properly set /chosen/bootpath to include the partition number. 2. (major) Partition numbering *seems* to be 0-based. I had a lot of problems booting, but I'm pretty sure it is. 3. (minor) /chosen/bootpath is this: /pci@FF500000/isa@6/ide@i1F0/disk@0,0 but the "hd" devalias is this: /pci@FF500000/isa@6/ide@i1f0/disk@0,0 Note the differing case of "f". This prevents the devalias matching from succeeding. I've fixed this by using strncasecmp instead of strncmp. There are various other problems, such as ignoring arguments to the "boot" command and instead always using boot-device and boot-file. Also I get unexplained errors like these: ok boot hda:0,/grubof.chrp error: error while trying to load or boot but this works: ok " hda:0" " /grubof.chrp" (load) go Problem 1 could be worked around by taking the yaboot approach: iterate over all disk partitions looking for a file named "/grub/grub.cfg" (i.e. /boot/grub/grub.cfg). This fallback can be used if we do not find a grub.cfg in prefix. Problem 2 could be worked around by blacklisting firmwares based on the /openprom properties. Here is the briQ's output: ok dev /openprom ok .properties relative-addressing model "BRIQ,1.0.2.60" SmartFirmware-version "1.1" CodeGen-copyright "SmartFirmware(tm) Copyright 1996-2000 by CodeGen, Inc. All Rights Reserved." name "openprom" Does the Pegasos have a SmartFirmware-version property? -Hollis