From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org, Doug Nazar <nazard.michi@gmail.com>
Subject: Re: Big Endian fix patch
Date: Mon, 13 Sep 2010 21:54:53 +0200 [thread overview]
Message-ID: <4C8E818D.4040103@gmail.com> (raw)
In-Reply-To: <4C4FEF8C.5060200@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2953 bytes --]
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
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2010-09-13 19:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 1:00 Big Endian fix patch (was: Re: Couple more fixes for Linux raid metadata 1.x support) Doug Nazar
2010-07-27 15:26 ` Lennart Sorensen
2010-07-27 23:58 ` Big Endian fix patch Doug Nazar
2010-07-28 14:52 ` Lennart Sorensen
2010-07-28 15:29 ` Doug Nazar
2010-07-28 8:51 ` Doug Nazar
2010-07-28 15:00 ` Lennart Sorensen
2010-07-28 15:51 ` Lennart Sorensen
2010-07-28 16:30 ` Doug Nazar
2010-07-28 17:01 ` Lennart Sorensen
2010-07-28 17:12 ` Doug Nazar
2010-07-28 17:40 ` Lennart Sorensen
2010-07-28 17:42 ` Lennart Sorensen
2010-07-28 17:52 ` Lennart Sorensen
2010-07-28 18:17 ` Doug Nazar
2010-07-28 18:49 ` Lennart Sorensen
2010-07-28 20:10 ` Doug Nazar
2010-07-28 22:25 ` Lennart Sorensen
2010-07-28 20:46 ` Doug Nazar
2010-07-29 15:30 ` Lennart Sorensen
2010-07-28 18:01 ` Doug Nazar
2010-07-28 18:50 ` Lennart Sorensen
2010-07-28 15:52 ` Doug Nazar
2010-07-28 15:55 ` Lennart Sorensen
2010-09-13 19:54 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C8E818D.4040103@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
--cc=nazard.michi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.