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

Re: ofpath vs ofpathname vs grub-ofpathname



Hi Adrian,

On 6/20/19 15:47, John Paul Adrian Glaubitz wrote:
Hi!

In order to collect data for fixing the limitations we have with grub-ofpathname,
I have done some initial testing on our POWER8 buildd by comparing the output
of Yaboot's ofpath [1], ofpathname from powerpc-utils [2] and grub-ofpathname [3].

Interestingly, all three return different path names on the POWER machine:

root@redpanda:~# ./powerpc-utils/scripts/ofpathname /dev/sda1
/vdevice/v-scsi@30000004/disk@8100000000000000
root@redpanda:~# /srv/glaubitz/grub/grub-ofpathname /dev/sda1
/vdevice/v-scsi@30000004/disk@8100000000000000:a
root@redpanda:~# ./yaboot-test/usr/sbin/ofpath /dev/sda1
/vdevice/v-scsi@30000004/@1:1
root@redpanda:~#

Could someone test this on a Mac, please? Yaboot and powerpc-utils just need to
be checked out from git and the scripts can be run directly, GRUB just needs
to be built with the usual ./bootstrap && ./configure && make.

Combining the information from [1] and [2] for my 11,2 type G5 the
following OF paths are returned:

```
root@powermac-g5:~# ofpathname /dev/sda2
/ht@0,f2000000/pci@9/k2-sata-root@c/scsi@0/sd@0,0:2

# The used `grub-ofpathname` has Mathieu's patches included
root@powermac-g5:~# grub-ofpathname /dev/sda2
/ht@0,f2000000/pci@9/k2-sata-root@c/@0:2

# The returned OF path from `ofpath` here is the singular working OF
# path
root@powermac-g5:~# ofpath /dev/sda2
/ht@0,f2000000/pci@9/k2-sata-root@c/@0/@0:2
```

Cheers,
Frank

[1]: https://lists.debian.org/debian-powerpc/2019/04/msg00171.html

[2]: https://lists.debian.org/debian-powerpc/2019/05/msg00036.html


Reply to: