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

Re: ofpath vs ofpathname vs grub-ofpathname



On 4/16/20 7:53 PM, Romain Dolbeau wrote:
> Le jeu. 16 avr. 2020 à 19:38, John Paul Adrian Glaubitz
> <glaubitz@physik.fu-berlin.de> a écrit :
>> Basically, your G4 FW800 the ofpathname script outputs the correct path
>> and it also doesn't expect the error message as on your G5
> 
> I'm not sure I follow - the error message appears on the G4FW800, not on the G5?

Well, I may have mixed up the two. Either way, the error message shows when you run the
ofpathname command from the Debian package which how it's easily recognizable. The
Debian version is slightly outdated as compared to upstream and needs a syntax fix
which is present upstream.

>> which is why I suspect the ofpathname script on the G4 FW800 machine has been
>> patched.
> 
> Apparently, it _has_ been patched on the G5. I just 'apt-get download'
> the powerpc-ibm-utils package, extracted it, and compared the
> md5sum... they differ, with a huge diff! And I have no idea what
> patched it if that's not what I should get from 'ports'. Sorry for the
> noise, any idea where that patch could come from?
> 
> Anyway, the original script is still on the machine as
> '/usr/sbin/ofpathname-ibm' (md5su matches), and this one might produce
> what you expect, let's try:
> 
> dolbeau@powermacg5:~$ sudo /usr/sbin/ofpathname-ibm /dev/sda
> /usr/sbin/ofpathname-ibm: line 812: warning: command substitution:
> ignored null byte in input
> /ht@0,f2000000/pci@9/k2-sata-root@c/scsi@0/sd@0,0
> dolbeau@powermacg5:~$ sudo /usr/sbin/ofpathname-ibm /dev/sdb
> /usr/sbin/ofpathname-ibm: line 812: warning: command substitution:
> ignored null byte in input
> /ht@0,f2000000/pci@9/k2-sata-root@c/scsi@0/sd@0,0

This is unexpected as both disks show the same OF path.

Please try my current version from the mac-support branch:

> https://github.com/glaubitz/powerpc-utils

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: