Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DORGM-0006lE-J3 for mharc-grub-devel@gnu.org; Wed, 20 Apr 2005 22:17:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DORGK-0006kL-7R for grub-devel@gnu.org; Wed, 20 Apr 2005 22:17:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DORGI-0006k9-E1 for grub-devel@gnu.org; Wed, 20 Apr 2005 22:17:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DORGI-0006Oa-9u for grub-devel@gnu.org; Wed, 20 Apr 2005 22:17:50 -0400 Received: from [209.86.89.67] (helo=smtpauth07.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DORHi-0005Xz-C2 for grub-devel@gnu.org; Wed, 20 Apr 2005 22:19:18 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth07.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DORFM-0003Ww-IL for grub-devel@gnu.org; Wed, 20 Apr 2005 22:16:52 -0400 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <87is2i4qjl.fsf@student.han.nl> References: <20050417183350.GA30191@miracle> <87r7h96vo7.fsf@student.han.nl> <1ef9095696e3f129979d08a7d385e1d2@penguinppc.org> <87is2i4qjl.fsf@student.han.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <927b71c54c4ae6806ebfe44cd1671580@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Wed, 20 Apr 2005 21:16:50 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec799a0526ec4ea15aeec5952da6123de9f6350badd9bab72f9c350badd9bab72f9c 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: Thu, 21 Apr 2005 02:17:52 -0000 On Apr 19, 2005, at 12:36 PM, Marco Gerards wrote: > Hollis Blanchard writes: > >> 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. > > What happens? Is it something I could try to reproduce on the > PegasosII? Boot GRUB, run suspend, "dev /chosen .properties". You'll notice the device arguments are missing from bootpath. >> 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. > > Right... > >> Problem 2 could be worked around by blacklisting firmwares based on >> the /openprom properties. Here is the briQ's output: > > With blacklist you mean setting some additional flags that describe > which bugs the firmware has? Yes. >> 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? > > It does. It has both a CodeGen and bplan copyright property. The > SmartFirmware-version is 1.2 here. The model is "Pegasos2,1.2". It > seems to me that this SmartFirmware-version is not interesting because > it looks like this version is not changed for every build. > > The most interesting property is "built-on", which we can use to > detect if a specific version has the bug or not. Right now I'm inclined to set a "0_BASED_PARTITION" flag if the SmartFirmware-version property exists. Later on if bplan fixes it then they will need to provide some other property we can examine. After I check in my patch I will work on these workarounds. -Hollis