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

Re: ofpath vs ofpathname vs grub-ofpathname



Le jeu. 16 avr. 2020 à 20:09, John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> a écrit :
> Ok, so on the G4 FW800, you should see "ofpath" and "ofpathname" showing
> _different_ OF paths.

Which I do, so that's OK.

> Can you now try the patched version from my Github repo on your G5?

First, the mystery was solved by the almighty command 'ls', turns out
it's not exactly a patch:

dolbeau@powermacg5:~$ ls -l /usr/sbin/ofpath*
-rwxr-xr-x 1 root root 24392 Apr 14  2019 /usr/sbin/ofpath
lrwxrwxrwx 1 root root    16 Jan 26 10:49 /usr/sbin/ofpathname ->
/usr/sbin/ofpath
-rwxr-xr-x 1 root root 40016 Feb 10  2019 /usr/sbin/ofpathname-ibm

No idea why that happened, unless I did some weird things trying to
get 'grub' to work, and then promptly forgot about it...

Anyway - here's the result with your branch, the only difference I see
is that 'scsi' & 'sd' are gone:

#####
dolbeau@powermacg5:~/powerpc-utils$ git status
On branch mac-support
Your branch is up to date with 'origin/mac-support'.
nothing to commit, working tree clean
dolbeau@powermacg5:~/powerpc-utils$ sudo
~/powerpc-utils/scripts/ofpathname /dev/sda
/ht@0,f2000000/pci@9/k2-sata-root@c/@0/@0
dolbeau@powermacg5:~/powerpc-utils$ sudo
~/powerpc-utils/scripts/ofpathname /dev/sdb
/ht@0,f2000000/pci@9/k2-sata-root@c/@0/@0
#####

In case tracing the script a bit could be helpful, I attach the log
from tuning 'sudo bash -x  ~/powerpc-utils/scripts/ofpathname /dev/sda
2>&1 | tee /tmp/log'.

Cordially,

-- 
Romain Dolbeau

Attachment: log
Description: Binary data


Reply to: