Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Oe8vM-0002DL-TF for mharc-grub-devel@gnu.org; Wed, 28 Jul 2010 11:52:04 -0400 Received: from [140.186.70.92] (port=59877 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe8vJ-0002DC-Pm for grub-devel@gnu.org; Wed, 28 Jul 2010 11:52:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe8vI-0003g5-EQ for grub-devel@gnu.org; Wed, 28 Jul 2010 11:52:01 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:38491) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe8vI-0003fw-6M for grub-devel@gnu.org; Wed, 28 Jul 2010 11:52:00 -0400 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id 5EE242598; Wed, 28 Jul 2010 11:51:59 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 458936601; Wed, 28 Jul 2010 11:51:58 -0400 (EDT) Date: Wed, 28 Jul 2010 11:51:58 -0400 To: Lennart Sorensen Message-ID: <20100728155158.GE2632@caffeine.csclub.uwaterloo.ca> References: <4C4E2FC5.10607@gmail.com> <20100727152625.GX2632@caffeine.csclub.uwaterloo.ca> <4C4FEF8C.5060200@gmail.com> <20100728150037.GC2632@caffeine.csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100728150037.GC2632@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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: The development of GNU GRUB 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: Wed, 28 Jul 2010 15:52:03 -0000 On Wed, Jul 28, 2010 at 11:00:37AM -0400, Lennart Sorensen wrote: > On Wed, Jul 28, 2010 at 04:51:24AM -0400, Doug Nazar wrote: > > 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. > > OK, no idea how I got by without that. It is currently working for me. > Weird. > > I only use raid1 of course, so that is all I tested with. > > > 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. > > Could this have anything to do with why I can't see disks without > devaliases assigned? > > > - 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 > > QEMU/openbios has many bugs unfortunately. If I could make any sense > of the code I would try to fix some of them, but I simply can't follow > that code. > > > 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. ;-) Well the patch didn't break anything for me, but didn't seem to change anything either. So so far not a problem. I was wondering a bit why tab completion for ls doesn't work on md 1.x devices. If I do: ls (md/0, I get ls (md/0, Well since I don't have any partitions, that doesn't help anything). Also if I do: ls (md/0)/ I get nothing. ls (md/0)/ does work, but the tab completion refuses to believe it could work. I miss tab completition. :) -- Len Sorensen