Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DNGrY-0008SJ-P3 for mharc-grub-devel@gnu.org; Sun, 17 Apr 2005 16:59:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNGrV-0008R4-HI for grub-devel@gnu.org; Sun, 17 Apr 2005 16:59:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNGrT-0008QD-CP for grub-devel@gnu.org; Sun, 17 Apr 2005 16:59:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNGqa-000859-8L for grub-devel@gnu.org; Sun, 17 Apr 2005 16:58:28 -0400 Received: from [209.86.89.65] (helo=smtpauth05.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DNGSr-0007Bg-A3 for grub-devel@gnu.org; Sun, 17 Apr 2005 16:33:57 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth05.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DNGRV-0007Tw-2r for grub-devel@gnu.org; Sun, 17 Apr 2005 16:32:33 -0400 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <87r7h96vo7.fsf@student.han.nl> References: <20050417183350.GA30191@miracle> <87r7h96vo7.fsf@student.han.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <1ef9095696e3f129979d08a7d385e1d2@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Sun, 17 Apr 2005 15:32:31 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79b0644d94cad63a7a05341a5c8f330dc2350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [patch] set prefix on PPC 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: Sun, 17 Apr 2005 20:59:26 -0000 On Apr 17, 2005, at 2:38 PM, Marco Gerards wrote: > Hollis Blanchard writes: > >> Updated patch which uses devaliases. > > On my pegasos the devalias is looked up perfectly for both ethernet > and the harddisk. :) > >> + if (partition) >> + { >> + unsigned int partno = grub_strtoul (partition, 0, 0); >> + partno--; /* GRUB partition numbering is 0-based. */ > > On my pegasos the partition numbering is 0-based as well. Are you sure? This behavior is not CHRP-compliant. The spec is quite clear in that regard: 11.1.2. Open Method Algorithm ... If the partition component is present, it selects the desired partition, where partition 0 refers to the entire disk, partition 1 refers to the first partition, partition 2 to the second, and so forth. Instead, perhaps our MS-DOS partition map enumeration differs from the firmware's. In that case, firmware would not be "0-based", but simply different. This deserves further investigation. I will see what my briQ does, but not tonight. I think that this failure on Pegasos does not warrant delaying the prefix patch further, since the patch does not break any existing functionality and adds important functionality on Macs. Can Pegasos be fixed later? > So when I run `boot hd:4 grub2', I get `prefix=(hd,3)'. This should be > `prefix=(hd,4)'. So my pegasos has proven me right already about what > I said about firmware. :-/ If this is the case we will need another flag for grub_ieee1275_flags. -Hollis