Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LDSn9-0007jv-Re for mharc-grub-devel@gnu.org; Thu, 18 Dec 2008 19:00:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDSn8-0007jc-LC for grub-devel@gnu.org; Thu, 18 Dec 2008 19:00:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDSn7-0007jQ-N1 for grub-devel@gnu.org; Thu, 18 Dec 2008 19:00:29 -0500 Received: from [199.232.76.173] (port=40680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDSn7-0007jL-HE for grub-devel@gnu.org; Thu, 18 Dec 2008 19:00:29 -0500 Received: from flatline.sindominio.net ([82.144.4.26]:51631) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDSn6-0006KZ-Hx for grub-devel@gnu.org; Thu, 18 Dec 2008 19:00:29 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id 0CF34A17E6DC for ; Fri, 19 Dec 2008 01:00:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M6q09YOVeaib for ; Fri, 19 Dec 2008 01:00:23 +0100 (CET) Received: from nubol.oskuro.net (unknown [85.52.167.17]) by flatline.sindominio.net (Postfix) with ESMTP id 38600A1787FF for ; Fri, 19 Dec 2008 01:00:23 +0100 (CET) Received: by nubol.oskuro.net (Postfix, from userid 1000) id E34443AFA58; Fri, 19 Dec 2008 01:00:19 +0100 (CET) Date: Fri, 19 Dec 2008 01:00:19 +0100 From: Jordi Mallach To: grub-devel@gnu.org Message-ID: <20081219000019.GA12448@nubol.oskuro.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: State of GRUB on PowerPC 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: Fri, 19 Dec 2008 00:00:30 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello list, Many months after my last try, I've given GRUB2 a go on my G4-based Apple laptop. For this, I used Debian's 1st of December snapshot packaged to experimental. Thanks to daChaac, the IRC hero once again ;) the executive summary changed =66rom "frustrating failure" to "works with quite a few quirks". - grub-install generated an incorrect device.map. I've discussed this here before: my OpenFirmware calls my hard disk "hd", not "hd0", but grub-mkdevicemap will insist in adding the number. I corrected that manually. - GRUB2 will load correctly and will display a menu, but will fail to load Linux, giving a fun error "initrd: command not found". Some modules needed by my grub.cfg are missing: _linux, linux, elf and search. Loading linux.mod was challenging. `insmod linux` would result in a "file not found" error. I have two partitions that matter when booting: hd,2 is the Apple_bootstrap hfs partition, and holds all my grub stuff. hd,3 is my Debian partition, and holds /usr/lib/grub. daChaac helped me finding the deps for linux.mod, and loading them sequentially made the module load: grub> insmod elf grub> insmod (hd,3)/usr/lib/grub/powerpc-ieee1275/_linux.mod grub> insmod (hd,3)/usr/lib/grub/powerpc-ieee1275/linux.mod This gets linux loaded, and things start to be smoother. However, going back to the menu and trying to boot fails with "you need to load your kernel first". Damn. Right, my menu entry includes a search command, which isn't loaded grub> insmod search But this still fails miseraby. On the command-line, I copied the "search --fs-uuid --set" line from my grub.cfg, and 1) it printed "no such device" and errored out ($?=3D12, GRUB_ERR_UNKNOWN_DEVICE) 2) set my root variable to (second-boot). Our guess is that this second-boot device has the same uuid as hd or hd,3 and that makes search fail or whatever. if I do "ls", I get hd + its partitions, ide0, ide1, first-boot and second-boot. `ls (first-boot)` gives: Device first-boot: partition table and `ls (first-boot)/` gives the "unknown filesystem" error. Finally, if I get rid of the search command and change my root device to si= mply /dev/hda3, linux is able to boot and I remain happy. So, in short, a few problems: - grub-mkdevicemap insists on calling my drive by another name (hd0 vs hd) - what's going on with linux.mod loading? I won't rule out a hfs fs bug, and I'll format to find out, but it could be a hfs.mod bug too. Some modules load, some others don't. - why wasn't search.mod loaded? - what to do about second-boot confusing search? Ah, also, my menu appears as white on red colours, but this is so minor at this point I was not even going to mention it. :) Hopefully some OF expert can have a look at some of this. Thanks, Jordi --=20 Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/ jordi@sindominio.net jordi@debian.org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/ --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklK5BMACgkQJYSUupF6Il6ngACg4SZOTxXW1Kjs933eNuAm0MS7 pDsAoOexTjR333nq7Drr7ZCB4prwfJOM =6aUM -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--