Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LDdpQ-0001gG-2B for mharc-grub-devel@gnu.org; Fri, 19 Dec 2008 06:47:36 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDdpO-0001fI-7J for grub-devel@gnu.org; Fri, 19 Dec 2008 06:47:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDdpL-0001dk-Iy for grub-devel@gnu.org; Fri, 19 Dec 2008 06:47:33 -0500 Received: from [199.232.76.173] (port=35463 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDdpL-0001dC-E8 for grub-devel@gnu.org; Fri, 19 Dec 2008 06:47:31 -0500 Received: from igw1.br.ibm.com ([32.104.18.24]:59259) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDdpJ-00064n-Om for grub-devel@gnu.org; Fri, 19 Dec 2008 06:47:30 -0500 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw1.br.ibm.com (Postfix) with ESMTP id A141F32C1A6 for ; Fri, 19 Dec 2008 09:42:52 -0200 (BRDT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mBJCktNu3919994 for ; Fri, 19 Dec 2008 09:46:55 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mBJBlLe0032686 for ; Fri, 19 Dec 2008 09:47:21 -0200 Received: from [9.18.198.175] ([9.18.198.175]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mBJBlLdl032660 for ; Fri, 19 Dec 2008 09:47:21 -0200 From: Manoel Rebelo Abranches To: The development of GRUB 2 In-Reply-To: <20081219000019.GA12448@nubol.oskuro.net> References: <20081219000019.GA12448@nubol.oskuro.net> Content-Type: text/plain; charset="UTF-8" Date: Fri, 19 Dec 2008 09:47:13 -0200 Message-Id: <1229687234.7900.12.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (tstamp-) Subject: Re: 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 11:47:34 -0000 I'm working in a patch to make the install process better. I =C4=BAl send= it soon, once some license issues are resolved.=20 On Fri, 2008-12-19 at 01:00 +0100, Jordi Mallach wrote: > Hello list, >=20 > Many months after my last try, I've given GRUB2 a go on my G4-based App= le > laptop. >=20 > For this, I used Debian's 1st of December snapshot packaged to experime= ntal. >=20 > Thanks to daChaac, the IRC hero once again ;) the executive summary cha= nged > from "frustrating failure" to "works with quite a few quirks". >=20 > - 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. grub-mkconfig will not use that in the future but use ofpathname instead. > - 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. >=20 > Loading linux.mod was challenging. `insmod linux` would result in a "fi= le > 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. >=20 > daChaac helped me finding the deps for linux.mod, and loading them > sequentially made the module load: >=20 > 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 >=20 > This gets linux loaded, and things start to be smoother. >=20 > However, going back to the menu and trying to boot fails with "you need > to load your kernel first". Damn. >=20 > Right, my menu entry includes a search command, which isn't loaded >=20 > grub> insmod search >=20 > But this still fails miseraby. >=20 > 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). >=20 > Our guess is that this second-boot device has the same uuid as hd or hd= ,3 > and that makes search fail or whatever. >=20 > 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. >=20 > Finally, if I get rid of the search command and change my root device t= o simply > /dev/hda3, linux is able to boot and I remain happy. >=20 > So, in short, a few problems: >=20 > - 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. that's strange, i did my tests with a FAT partition so I can't tell at the moment. > - why wasn't search.mod loaded? I think the search module isn't working in powerrPC, i have to look better at it.=20 > - what to do about second-boot confusing search? >=20 > 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. :) >=20 > Hopefully some OF expert can have a look at some of this. >=20 > Thanks, > Jordi > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=20 Best Regards, Manoel Abranches IBM Linux Technology Center Brazil