[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extend grub-ofpathname to behaves like yaboot/ofpath on PowerPC syst
From: |
John Paul Adrian Glaubitz |
Subject: |
Re: Extend grub-ofpathname to behaves like yaboot/ofpath on PowerPC system |
Date: |
Fri, 3 May 2019 09:57:48 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Hi Mathieu!
On 5/3/19 8:19 AM, Mathieu Malaterre wrote:
> We are looking to extend grub-ofpathname so that it also handles
> PowerPC system such as PowerMac with a limited OpenFirmware
> implementation[1]. In particular the following patch has been found to
> produce an output compatible with such system [2].
>
> While we understand that components of a path are in this general form:
>
> <name>@<address>:<arguments>
>
> We also do understand that name can be safely omitted as the device is
> actually getting located by
> its address. Therefore, these two paths refer to the same device:
>
> /address@hidden/address@hidden/address@hidden:b
>
> /@f4000000/@d/@0:b
>
> However for the PowerMac we tested it on, only the second form has
> been found to be accepted.
Thanks for the detailed explanation and for investigating this! Much
appreciated.
> How best should we provide you with a patch (the current one is kind
> of a hack)? Should we extend grub-ofpathname to take a new parameter
> (eg. `--omit-names`) and decide to print or not the name, would that
> be acceptable ?
This sounds like a very reasonable approach. Let's use either that or
maybe query OpenFirmware whether we're running on a PowerMac, if that's
somehow possible.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - address@hidden
`. `' Freie Universitaet Berlin - address@hidden
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913