Re: ofpath vs ofpathname vs grub-ofpathname
Le jeu. 16 avr. 2020 à 21:31, John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> a écrit :
> > And if my reading of OF 'dev / ls' is correct, the disks should be:
> > /ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@0/disk@0
> > /ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@1/disk@0
> What does ofpath say?
Still says:
dolbeau@powermacg5:~$ sudo /usr/sbin/ofpath /dev/sda
/ht@0,f2000000/pci@9/k2-sata-root@c/@0/@0
dolbeau@powermacg5:~$ sudo /usr/sbin/ofpath /dev/sdb
/ht@0,f2000000/pci@9/k2-sata-root@c/@1/@0
> As far as I know, Apple's OF implementation expects "@0" instead of
> "disk@0". And I have no idea where the "k2-sata@N" component comes
> from.
This is just the values from the OF console itself ('dev / ls'), not
necessarily what is needed as a booting path.
The same path is in /sys:
dolbeau@powermacg5:~$ ls -l
/sys/firmware/devicetree/base/ht@0\,f2000000/pci@9/k2-sata-root@c/k2-sata@*/*|grep
disk
/sys/firmware/devicetree/base/ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@0/disk@0:
/sys/firmware/devicetree/base/ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@1/disk@0:
Apparently on this machine, the 'scsi' bit (that appears in Michael's
G5 output) has been replaced by a 'k2-sata' bit.
It seems to be misunderstood by the script, as it's where the
difference between sda and sdb should appear...
Cordially,
--
Romain Dolbeau
Reply to: