Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OcKLU-000528-Ag for mharc-grub-devel@gnu.org; Fri, 23 Jul 2010 11:39:32 -0400 Received: from [140.186.70.92] (port=36124 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcKLP-000500-Jp for grub-devel@gnu.org; Fri, 23 Jul 2010 11:39:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcKLO-00007D-C5 for grub-devel@gnu.org; Fri, 23 Jul 2010 11:39:27 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:41584) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcKLO-000075-7f for grub-devel@gnu.org; Fri, 23 Jul 2010 11:39:26 -0400 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id 7B6802223 for ; Fri, 23 Jul 2010 11:39:25 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 6E29922A2; Fri, 23 Jul 2010 11:39:25 -0400 (EDT) Date: Fri, 23 Jul 2010 11:39:25 -0400 To: The development of GNU GRUB Message-ID: <20100723153925.GL2632@caffeine.csclub.uwaterloo.ca> References: <20100722212326.GJ2632@caffeine.csclub.uwaterloo.ca> <4C492F0B.6020701@gmail.com> <20100723135737.GK2632@caffeine.csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100723135737.GK2632@caffeine.csclub.uwaterloo.ca> User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 15:39:30 -0000 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/phcode= r' 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 ya= boot > > > can do the job, but it doesn't deal with software raid, ext4, LVM o= r > > > anything else useful. > > > > > > I have managed to get as far as booting to a grub prompt from disk. > > > Unfortunately it doesn't appear to be seeing any disks at that poin= t. > > > > > > The way I got it this far was to create an 8MB (smallest cfdisk wou= ld > > > make) PReP boot partition, and then run grub-mkimage -n -o /tmp/gru= b -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 t= he > > raid and lvm-related modules you don't need. OFW exposes ghost device= s > > 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 seems > to be behaving as if it doesn't detect any disks. So I fixed ofpathname (it was not working because it did find /sys -name $device, which mathes multiple things on modern kernels). I changed the 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. It set the boot_device=3D/pci@800000020000200/pci1014,02BD@1/sas/disk@20000:4,\grub /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. 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: Welcome to GRUB! = = = =20 = = = =20 error: no device is set. Entering rescue mode... = = = =20 grub rescue> So what do I do then to get it to know what device to use? --=20 Len Sorensen