[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ofpathname is bash only



On 12/19/18 12:06 PM, Mathieu Malaterre wrote:

[...]

> 
> I see that you patched ofpath in the past. Could you give me some
> reference materials on where you found out those convention ? It seems
> that grub-ofpathname has always lived happily with:
> 
> $ /usr/sbin/grub-ofpathname /dev/sda2
> /pci@f4000000/ata-6@d/disk@0:b
> 
> The patch is quite trivial to make to make it behave like
> yaboot/ofpath, but I'd like to polish the patch before sending it
> upstream. Is this something that is known to be different in between
> IBM, sparc64 vs powerpc (powermac) in OpenFirmware implementation ?
> 


Components of a path are in this general form:

<name>@<address>:<arguments>

Name can be safely omitted as the device is actually getting located by
its address. Therefore, these two paths refer to the same device:

/pci@f4000000/ata-6@d/disk@0:b

/@f4000000/@d/@0:b



Find freely available references on openfirmware matters at:

http://firmworks.com/

https://www.openfirmware.org/Welcome_to_OpenBIOS



Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: