Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OcM3Y-0000b3-Vv for mharc-grub-devel@gnu.org; Fri, 23 Jul 2010 13:29:09 -0400 Received: from [140.186.70.92] (port=50876 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcM3W-0000Y8-6K for grub-devel@gnu.org; Fri, 23 Jul 2010 13:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcM3U-0002Zp-Pf for grub-devel@gnu.org; Fri, 23 Jul 2010 13:29:06 -0400 Received: from e24smtp01.br.ibm.com ([32.104.18.85]:54115) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcM3U-0002ZC-8s for grub-devel@gnu.org; Fri, 23 Jul 2010 13:29:04 -0400 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp01.br.ibm.com (8.14.4/8.13.1) with ESMTP id o6NHWLGE015488 for ; Fri, 23 Jul 2010 14:32:21 -0300 Received: from d24av05.br.ibm.com (d24av05.br.ibm.com [9.18.232.44]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6NHXxQ1708948 for ; Fri, 23 Jul 2010 14:33:59 -0300 Received: from d24av05.br.ibm.com (loopback [127.0.0.1]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o6NHSwY5015308 for ; Fri, 23 Jul 2010 14:28:58 -0300 Received: from [9.8.15.46] ([9.8.15.46]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o6NHSvmH015302 for ; Fri, 23 Jul 2010 14:28:57 -0300 From: Manoel Rebelo Abraches To: The development of GNU GRUB In-Reply-To: <20100723153925.GL2632@caffeine.csclub.uwaterloo.ca> References: <20100722212326.GJ2632@caffeine.csclub.uwaterloo.ca> <4C492F0B.6020701@gmail.com> <20100723135737.GK2632@caffeine.csclub.uwaterloo.ca> <20100723153925.GL2632@caffeine.csclub.uwaterloo.ca> Content-Type: text/plain; charset="UTF-8" Date: Fri, 23 Jul 2010 14:28:55 -0300 Message-ID: <1279906135.16005.17.camel@abranches-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by e24smtp01.br.ibm.com id o6NHWLGE015488 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: grub2 on power6 box. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 17:29:07 -0000 On Fri, 2010-07-23 at 11:39 -0400, Lennart Sorensen wrote: > On Fri, Jul 23, 2010 at 09:57:37AM -0400, Lennart Sorensen wrote: > > On Fri, Jul 23, 2010 at 07:56:27AM +0200, Vladimir '=CF=86-coder/phco= der' Serbinenko wrote: > > > On 07/22/2010 11:23 PM, Lennart Sorensen wrote: > > > > I am trying to use grub2 to boot an IBM p520 power6 box. I know = yaboot > > > > can do the job, but it doesn't deal with software raid, ext4, LVM= or > > > > anything else useful. > > > > > > > > I have managed to get as far as booting to a grub prompt from dis= k. > > > > Unfortunately it doesn't appear to be seeing any disks at that po= int. > > > > > > > > The way I got it this far was to create an 8MB (smallest cfdisk w= ould > > > > make) PReP boot partition, and then run grub-mkimage -n -o /tmp/g= rub -O > > > > powerpc-ieee1275 *.mod in the ieee1275 grub directory. I then dd= 'd > > > > /tmp/grub to /dev/sda1 (the PReP boot partition). > > > > > > > > =20 > > > You need to add -p "". Also avoid= the > > > raid and lvm-related modules you don't need. OFW exposes ghost devi= ces > > > so assembling raids which involves looking at all devices is slow > >=20 > > I will try that (although I think I did). > >=20 > > I can't even get it to do ls on any disk or anything. It really seem= s > > to be behaving as if it doesn't detect any disks. >=20 > So I fixed ofpathname (it was not working because it did find /sys -nam= e > $device, which mathes multiple things on modern kernels). I changed th= e > find to find /sys -type d -name $device and now that works. So now I > can run grub-install, but of course that just creates a /boot/grub/grub > file with the main grub and a filesystem module attached. It doesn't > actually boot. >=20 > It set the > boot_device=3D/pci@800000020000200/pci1014,02BD@1/sas/disk@20000:4,\gru= b >=20 > /dev/sda4 is a fat16 partition mounted as /boot/grub. Unfortunately I > am not convinced the IBM boxes know how to read filesystems or boot > files. It seems it only wants to read raw from a PReP boot partition. OF can read FAT12 filesystem. you could format it with fat 12 and then mount it at /boot/grub. then you can use grub-install and grub-mkconfig to create a grub.cfg I think the easiest way is to set a devalias in OF to point to you device: devalias hd /pci@800000020000200/pci1014,02BD@1/sas/disk@20000=20 then it should appear when you use the 'ls' command. you could also set boot-device to hd:,grub=20 since OF can read FAT12 filesystem it will be able to find grub there. > So when I dd /boot/grub/grub to /dev/sda1 (an 8MB PReP boot partition) > the system does start grub, but of course since grub was only the core > plus the fat module, it just says: >=20 > Welcome to GRUB! = = = =20 > = = = =20 > error: no device is set. > Entering rescue mode... = = = =20 > grub rescue> >=20 > So what do I do then to get it to know what device to use? >=20 --=20 Best Regards, Manoel Rebelo Abranches Software engineer IBM - Linux Technology Center - Brazil