From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EcbDR-0006fa-Eg for mharc-grub-devel@gnu.org; Wed, 16 Nov 2005 23:17:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EcbDP-0006fU-OT for grub-devel@gnu.org; Wed, 16 Nov 2005 23:17:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EcbDO-0006fI-54 for grub-devel@gnu.org; Wed, 16 Nov 2005 23:17:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EcbDO-0006fF-2p for grub-devel@gnu.org; Wed, 16 Nov 2005 23:17:38 -0500 Received: from [166.84.1.74] (helo=mail3.panix.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EcbDO-0000xj-1z for grub-devel@gnu.org; Wed, 16 Nov 2005 23:17:38 -0500 Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail3.panix.com (Postfix) with ESMTP id BD82413AA27 for ; Wed, 16 Nov 2005 23:17:37 -0500 (EST) 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 A9F196A0660 for ; Wed, 16 Nov 2005 23:17:37 -0500 (EST) 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 jAH4HaCj027781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 16 Nov 2005 23:17:36 -0500 Received: (from smallm@localhost) by huxley.attbi.com (8.13.4/8.13.4/Submit) id jAH4HaQK027780 for grub-devel@gnu.org; Wed, 16 Nov 2005 23:17:36 -0500 From: Mike Small Date: Wed, 16 Nov 2005 23:17:36 -0500 To: grub-devel@gnu.org Message-ID: <20051117041735.GD3883@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: grub-install on powermac newworld 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, 17 Nov 2005 04:17:40 -0000 I'd meant to try the grub-install script for powerpc a long time ago, when Hollis sent out the patch in October, but got distracted. Now that I have tried it, a couple of comments: 1. The path to ofpathname is hard-coded in the script as /usr/sbin. For me running on debian that doesn't seem right. Since it's not currently part of a package, I'd probably end up putting it in /usr/local/sbin instead. Maybe its presence and location should be detected by configure? Also, there's a script named ofpath that comes with yaboot that would be present in most distributions which I suspect could be detected and used for the same purpose if ofpathname weren't present, if that's something you'd want to do. 2. The script seems to assume that /boot/grub/ will be where my boot partition is mounted. This was mentioned in the original mail, and I could set things up this way, but in my opinion it would be more natural to be able to specify the install directory exactly without mandating any particular directory structure. eg if I enter $ grub-install --root-directory=/mnt ...(which is how I ran it, forgetting that part of the email) then grub and its modules would go directly into /mnt and not into a /mnt/boot/grub. I didn't really exercise the nvsetenv part of the script since I've had problems setting the boot device on this machine before (466 Powermac G4 - it seems to want to add ,\\:tbxi to whatever boot-device string I set) and, since I didn't follow the directory structure the script was expecting, it stopped before trying to set the env variables ("/mnt/boot/grub is not a mount point!"). Let me know if it would be helpful to test out that part and I'll give it a try with my boot partion mounted at /boot/grub. After I moved the files from /mnt/boot/grub to the root of my boot partition (which is hfs) and rebooted, grub seemed to work okay (more than okay really, I love that you can cat files from the bootloader - neat stuff) until I typed in an initrd command. Then I got the error message: "Can not claim memory." This was with a backported 2.6.12 kernel from a debian developer's site (Sven Luther) but the same thing happened with the standard Sarge 2.6.8 kernel. The kernel was 4641711 bytes and the initrd image was 4820992 bytes. Is grub/ppc at the point where it makes sense to be testing initrd yet? I was about to reboot with an extra debugging message to try to get more information, thinking this might have something to do with the values of these variables in grub_rescue_cmd_initrd... addr = linux_addr + linux_size; size = grub_file_size (file); ... but I don't really know how grub_claimmap is supposed to work here or what exactly to look for or report. -- Mike Small smallm@panix.com