On 4/20/20 9:23 AM, John Paul Adrian Glaubitz wrote: >>> ... >>> If you want to verify that the updated version shows the paths correctly, >>> you have to checkout the script from git and run it from there: >>> >>> # https://github.com/glaubitz/powerpc-utils.git >>> # git checkout mac-support >>> # ./scripts/ofpathname /dev/sda >>> # ./scripts/ofpathname /dev/sda1 >>> ... >> root@lombard:/test/scripts# ./ofpathname --version >> ofpathname: Version 0.5 >> Written by: Nathan Fontenot <[email protected]> >> >> root@lombard:/test/scripts# ./ofpathname /dev/sda >> /pci@80000000/mac-io@10/ata-3@20000/scsi@0/sd@0,0 >> root@lombard:/test/scripts# ./ofpathname /dev/sda1 >> /pci@80000000/mac-io@10/ata-3@20000/scsi@0/sd@0,0 > > I think you forgot to the "mac-support" branch as the OF path > string is missing the partition suffix. > > Adrian >
Yes, I forgot to checkout the mac-support branch. Here are the new results: root@lombard:/data/software/powerpc-utils# ./scripts/ofpathname --version ofpathname: Version 0.5 Written by: Nathan Fontenot <[email protected]> root@lombard:/data/software/powerpc-utils# ./scripts/ofpathname /dev/sda /pci@80000000/mac-io@10/ata-3@20000/@0 root@lombard:/data/software/powerpc-utils# ./scripts/ofpathname /dev/sda1 /pci@80000000/mac-io@10/ata-3@20000/@0:1

