From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OcLdp-00061k-6V for mharc-grub-devel@gnu.org; Fri, 23 Jul 2010 13:02:33 -0400 Received: from [140.186.70.92] (port=52663 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcLdl-0005xV-Ny for grub-devel@gnu.org; Fri, 23 Jul 2010 13:02:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcLdk-00065v-8L for grub-devel@gnu.org; Fri, 23 Jul 2010 13:02:29 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:57718) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcLdj-00065l-St for grub-devel@gnu.org; Fri, 23 Jul 2010 13:02:28 -0400 Received: by fxm20 with SMTP id 20so5723401fxm.0 for ; Fri, 23 Jul 2010 10:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=FLG+JHrsuF1qiLbAHYGDxWa+4MjCHh21AokhhU9y4KA=; b=ontR8hD5r98q7c2cagIHTdkZgUfTdJpWLEd1fzMQ8Gq7PXBwG7CRDEJwSOIjKFJheV c4swZKc2XtKELG22x1NSmI40PNQBvIfMpdX8wwOPlJ0u084kdefcl1lFm76eJ8pghb7x Gpdt/BbABxVQWH0713eRqckiaadYiIu9KP/YI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=cn0njq1YrgNSwIyu8JQDq9xN3QEXBDNFt/rZPjQmKE5w3PiqeOJEvRqGRa4k3G4kOo wJqXhrUQjMKsNm26VJ1DAZzVV60l057ceA34cxPF037fHwfsvCj+sQZ8p3tvoVvDoYGT PMwRcQCgH8cFnJ1TeVn+CMa9w6hH6pP8SdHWo= Received: by 10.223.113.5 with SMTP id y5mr3493329fap.93.1279904546699; Fri, 23 Jul 2010 10:02:26 -0700 (PDT) Received: from debian.bg45.phnet (vpn-global-dhcp3-196.ethz.ch [129.132.210.196]) by mx.google.com with ESMTPS id w11sm154419fao.37.2010.07.23.10.02.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Jul 2010 10:02:25 -0700 (PDT) Message-ID: <4C49CB17.5040307@gmail.com> Date: Fri, 23 Jul 2010 19:02:15 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: grub-devel@gnu.org References: <20100722212326.GJ2632@caffeine.csclub.uwaterloo.ca> <4C492F0B.6020701@gmail.com> <20100723135737.GK2632@caffeine.csclub.uwaterloo.ca> <20100723153925.GL2632@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20100723153925.GL2632@caffeine.csclub.uwaterloo.ca> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigBA489666F6D8E1228B321ABA" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:02:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBA489666F6D8E1228B321ABA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/23/2010 05:39 PM, Lennart Sorensen wrote: > On Fri, Jul 23, 2010 at 09:57:37AM -0400, Lennart Sorensen wrote: > =20 >> On Fri, Jul 23, 2010 at 07:56:27AM +0200, Vladimir '=CF=86-coder/phcod= er' Serbinenko wrote: >> =20 >>> On 07/22/2010 11:23 PM, Lennart Sorensen wrote: >>> =20 >>>> I am trying to use grub2 to boot an IBM p520 power6 box. I know yab= oot >>>> 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 disk. >>>> Unfortunately it doesn't appear to be seeing any disks at that point= =2E >>>> >>>> The way I got it this far was to create an 8MB (smallest cfdisk woul= d >>>> make) PReP boot partition, and then run grub-mkimage -n -o /tmp/grub= -O >>>> powerpc-ieee1275 *.mod in the ieee1275 grub directory. I then dd'd >>>> /tmp/grub to /dev/sda1 (the PReP boot partition). >>>> >>>> =20 >>>> =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). >> >> 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. >> =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. > > It set the > boot_device=3D/pci@800000020000200/pci1014,02BD@1/sas/disk@20000:4,\gru= b > > /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 Right now grub2 lists only aliased devices. You can either alias your disk or directly use: prefix=3D(/pci@800000020000200/pci1014\,02BD@1/sas/disk@20000,4)/ I have some code on ls issue but the problem is to reliably determine if = 2 nodes are really the same device --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigBA489666F6D8E1228B321ABA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxJyxcACgkQNak7dOguQglqmQEAl2B1vTLkU9SPNL+r2e2Anpd9 XUie6IgidDsXSa6jJNkBAJe6ndjZMaoVVSNiMXUyQSszWWemhuDRKMI6qibehKZ/ =0oqB -----END PGP SIGNATURE----- --------------enigBA489666F6D8E1228B321ABA--