From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OvF7N-00080d-9i for mharc-grub-devel@gnu.org; Mon, 13 Sep 2010 15:55:09 -0400 Received: from [140.186.70.92] (port=34694 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvF7K-0007zm-Qt for grub-devel@gnu.org; Mon, 13 Sep 2010 15:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvF7J-0003fO-H2 for grub-devel@gnu.org; Mon, 13 Sep 2010 15:55:06 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:58371) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvF7J-0003fC-7s for grub-devel@gnu.org; Mon, 13 Sep 2010 15:55:05 -0400 Received: by fxm3 with SMTP id 3so3966124fxm.0 for ; Mon, 13 Sep 2010 12:55:03 -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=glp1f5rMBaJDiMNAGnfY/Zh1BTUyMWZwmfF4Qi/OuHA=; b=DLq4W0eX+j88C8yMYe78DFnzmrALCZbs+hGlD070tdsZ0xBPkZJWVMzj1oi9u+f+lf ZjkJQaLlwVFYGgSwHH0p0LNBoHrVtIaxRZU/ot0AS3UiYdIsOmlNPWcAiXeGe56x9L+X HAP/SDUCVG6bExJOypcyBnbDw6bBfX3Jqzrgg= 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=inkWEOckdGllPXbLQqrttXazWFK/x9/Oeffdp266dm0wRrU1n3LGHFXFoMr22G9qEV X9/tVT0u33Klr+NmtjK96+Zm8HBWSRIWhXV+cEu89ybtbz2yL762fMBhAEl83zxxC5dW vtsKMf/ndsPiITFMBGyMJW+jdrUAIQf34S9O4= Received: by 10.223.116.200 with SMTP id n8mr1224179faq.18.1284407703889; Mon, 13 Sep 2010 12:55:03 -0700 (PDT) Received: from debian.bg45.phnet (235-174.62-81.cust.bluewin.ch [81.62.174.235]) by mx.google.com with ESMTPS id s20sm3059287faa.28.2010.09.13.12.55.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Sep 2010 12:55:02 -0700 (PDT) Message-ID: <4C8E818D.4040103@gmail.com> Date: Mon, 13 Sep 2010 21:54:53 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 MIME-Version: 1.0 To: grub-devel@gnu.org, Doug Nazar References: <4C4E2FC5.10607@gmail.com> <20100727152625.GX2632@caffeine.csclub.uwaterloo.ca> <4C4FEF8C.5060200@gmail.com> In-Reply-To: <4C4FEF8C.5060200@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigB5560639B7C8EB2BE12A2BF7" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Subject: Re: Big Endian fix patch 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: Mon, 13 Sep 2010 19:55:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB5560639B7C8EB2BE12A2BF7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/28/2010 10:51 AM, Doug Nazar wrote: > On 2010-07-27 11:26 AM, Lennart Sorensen wrote: >> On Mon, Jul 26, 2010 at 09:00:53PM -0400, Doug Nazar wrote: >> >>> I'll run it through the grinder in a bit. >> So with my patch I am booting of the md raid1 very successfully (other= >> than manually having to fix grub-mkimage run since grub-install doesn'= t >> understand the machine yet. I am working on fixing that now.) > > Ok, finally made some progress. Ran into several issues, some of them > obviously QEMU/OpenBios that I'm not sure if GRUB should work around. > With your patch the raid mostly worked, small problem with too many > devices because OpenBios creates several aliases for some devices. > Also I think you missed the endianess when setting the level. > > This patch includes the following: > > - Fix the ofdisk_hash system. We weren't making a copy of the devpath > so never found the cached item again. > - Extend the ofdisk_hash to cache the disk size > - Scan for a disk size using seek (probably want to set a different > start size). Required for metadata 1.0 arrays > - Optimize checking of raid level > - If we find a duplicate disk (claims to be same index in the array), > skip it or else level 0 arrays wont be found > - QEMU/OpenBios doesn't seem to like if the prev & name parameters of > ieee1275_next_property are the same pointer which caused no devices to > be found > I merged ofdisk branch so I believe most of these fixes aren't necessary anymore except determining the disk size. Some firmwares seem to react badly to size scanning (like my Netra X-1 does). How long does it take on your system? Perhaps we should introduce a separate function -get_disk_size_really_need_it on disk device which is used for the case like this when total_sectors is set to UNKNOWN but it's needed for something more substantial then reporting to user or sanity checks. Could you adjust your patch accordingly? > The issues that I came across which are in QEMU/OpenBios: > > - The rows are misreported. screen-#rows is set to 75 when in fact > there are only 60 rows. Worked around using -prom-env parameter > - Aliases don't take into account the index (i.e. disk@1). I ended up > with > disk /pci/pci-ata/ata-1/disk > hd /pci/pci-ata/ata-1/disk > ide0 /pci/pci-ata/ata-1/disk > ide1 /pci/mac-io/ata-3/disk > ide2 /pci/mac-io/ata-3/disk > > when ide1 should be disk@0 and ide2 should be disk@1 > - boot command hangs when passed wrong disk or used from boot-command. > Worked around by using load & go > > Things do work, and fixing QEMU/OpenBios is a bit further down the > rabbit hole than I want to go. ;-) > > Thanks, > Doug > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigB5560639B7C8EB2BE12A2BF7 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/ iF4EAREKAAYFAkyOgY0ACgkQNak7dOguQgngWAD6A3eTcaF2QoY7OiaDxLR/p6XU Y0+UQ+/H0zUYkUOSkVMBAIC3h0uOCIuc8dyaEs9bDGs/r65imdQxcwAPsZAgwYbq =MFWz -----END PGP SIGNATURE----- --------------enigB5560639B7C8EB2BE12A2BF7--