From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ETq3o-0006q4-8h for mharc-grub-devel@gnu.org; Sun, 23 Oct 2005 20:19:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETq3m-0006py-KG for grub-devel@gnu.org; Sun, 23 Oct 2005 20:19:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETq3l-0006pl-Ta for grub-devel@gnu.org; Sun, 23 Oct 2005 20:19:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETq3l-0006pi-QU for grub-devel@gnu.org; Sun, 23 Oct 2005 20:19:29 -0400 Received: from [166.84.1.73] (helo=mail2.panix.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETq3l-0005xX-Q6 for grub-devel@gnu.org; Sun, 23 Oct 2005 20:19:29 -0400 Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail2.panix.com (Postfix) with ESMTP id 35BC09DEB6 for ; Sun, 23 Oct 2005 20:19:29 -0400 (EDT) Received: from huxley.attbi.com (c-24-218-217-227.hsd1.ma.comcast.net [24.218.217.227]) by mailspool2.panix.com (Postfix) with ESMTP id 25A7011F76A for ; Sun, 23 Oct 2005 20:19:29 -0400 (EDT) Received: from huxley.attbi.com (localhost [127.0.0.1]) by huxley.attbi.com (8.13.4/8.13.4/Debian-3) with ESMTP id j9O0JQHP015656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 23 Oct 2005 20:19:26 -0400 Received: (from smallm@localhost) by huxley.attbi.com (8.13.4/8.13.4/Submit) id j9O0JQvE015655 for grub-devel@gnu.org; Sun, 23 Oct 2005 20:19:26 -0400 From: Mike Small Date: Sun, 23 Oct 2005 20:19:26 -0400 To: The development of GRUB 2 Message-ID: <20051024001926.GD16993@panix.com> References: <6c133058b121311fc4d5992867264a45@penguinppc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c133058b121311fc4d5992867264a45@penguinppc.org> User-Agent: Mutt/1.5.9i Subject: Re: [PPC] quick test please? device tree path translation 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: Mon, 24 Oct 2005 00:19:30 -0000 On Sun, Oct 23, 2005 at 05:53:44PM -0500, Hollis Blanchard wrote: > Hi, could PPC people give the attached shell script a try? For example, > $ ./ofpathname /dev/hda > /pci@80000000/pci-bridge@d/pci-ata@1/@0/disk@0 > > I'd like to make sure that the resulting Open Firmware device tree path > is accurate. I think we should use this script for GRUB installation, > which means that when the user says "grub-install /dev/hda2" this > script will tell us the proper setting of the OF "boot-device" > variable. > > It seems to be working fine for disk, CD, and Zip drive on my Blue & > White G3, which has a slightly unusual ATA setup. I expect it to work > just fine on simple systems like laptops, but I'm particularly > interested in more unsual systems like Pegasos, or systems with lots of > IO and disks. > > You can validate by comparing the output with > /proc/device-tree/aliases/hd, for example, or just try it out. > > -Hollis Seems to work for me. It gives the same answers as ofpath (packaged with yaboot 1.0.8), except for a usb floppy drive, which your script can handle but ofpath cannot. The machine is a 466Mhz G4 Powermac (Digital Audio) with an IDE harddrive and cdrom drive, and a usb floppy drive... $ ./ofpathname /dev/hda /pci@f2000000/mac-io@17/ata-4@1f000/disk@0 $ ./ofpathname /dev/hdc /pci@f2000000/mac-io@17/ata-3@20000/disk@0 $ ./ofpathname /dev/sda /pci@f2000000/usb@19/scsi@0/sd@0,0 (for comparison) # ofpath /dev/hda /pci@f2000000/mac-io@17/ata-4@1f000/disk@0: # ofpath /dev/hdc /pci@f2000000/mac-io@17/ata-3@20000/disk@0: # ofpath /dev/sdc ofpath: /proc/device-tree is broken. Do not use BootX to boot, use yaboot. ofpath: The yaboot HOWTO can be found here: http://www.alaska.net/~erbenson/doc So your script seems better. -- Mike Small smallm@panix.com