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

Re: jessie powermac yboot: ybin fails



Hi Felix,

what Debian release are you actually running and what yaboot version (shown above yaboot boot prompt) have you installed? I'm running Sid (just upgraded all packages minutes ago) and yaboot 1.3.17.

On 03/02/2018 04:51 PM, Felix Miata wrote:
# ybin
ofpath: Device: /dev/ata-ST is not supported
ybin: Unable to determine OpenFirmware path for macosx=/dev/disk/by-id/ata-ST340015A_5LA13M03-part10 macosx=/dev/hda10
ybin: Try specifying the real OpenFirmware path for macosx=/dev/disk/by-id/ata-ST340015A_5LA13M03-part10 macosx=/dev/hda10 in /etc/yaboot.conf

It looks like you have the "macosx=" option twice in your `yaboot.conf` on top and at the bottom. I'm unsure if this is an issue though. Does someone with Debian and Mac OS X on their machine know more?

But does `/dev/hda10` really exist on your machine?

Apart from that I did some testing with `ofpath` and seem to be able to create a similar behaviour on my Mac mini G4:

```
root@mac-mini:/dev/disk/by-id# ls -la
total 0
drwxr-xr-x 2 root root 340 Mar  4 13:28 .
drwxr-xr-x 6 root root 120 Mar  4 13:28 ..
[...]
lrwxrwxrwx 1 root root 9 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456 -> ../../sda lrwxrwxrwx 1 root root 10 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Mar 4 13:29 ata-SAMSUNG_HM160HC_S12TABCD123456-part6 -> ../../sda6
[...]
root@mac-mini:/dev/disk/by-id# ofpath ata-SAMSUNG_HM160HC_S12TABCD123456-part6
ofpath: Device: /dev/ata-SAMSUNG_HM is not supported

root@mac-mini:/dev/disk/by-id# ofpath ./ata-SAMSUNG_HM160HC_S12TABCD123456-part6
ofpath: Device: /dev/ata-SAMSUNG_HM is not supported

root@mac-mini:/dev/disk/by-id# ofpath /dev/disk/by-id/ata-SAMSUNG_HM160HC_S12TABCD123456-part6
ofpath: Device: /dev/ata-SAMSUNG_HM is not supported

[...]

root@mac-mini:/dev/disk/by-id# ofpath /dev/disk/by-id/ata-SAMSUNG_HM160HC_S12TABCD123456-part1
ofpath: Device: /dev/ata-SAMSUNG_HM is not supported

root@mac-mini:/dev/disk/by-id# ofpath /dev/disk/by-id/ata-SAMSUNG_HM160HC_S12TABCD123456
ofpath: Device: /dev/ata-SAMSUNG_HM is not supported

root@mac-mini:/dev/disk/by-id# ofpath /dev/sda6
/pci@f4000000/ata-6@d/@0:6
```

So it works with the actual path. Interestingly I have:

```
boot="/dev/disk/by-id/ata-SAMSUNG_HM160HC_S12TABCD123456-part2"
```

...in my `/etc/yaboot.conf` and running `ybin` doesn't make an issue for me although `ofpath` doesn't seem to work with it when specified as argument. Maybe `ybin` does resolve the symlinkg before feeding the device path to `ofpath`.

I'd still try to replace the symlink device paths (`/dev/disk/by-id/[...]`) in your yaboot.conf against the actual device paths (`/dev/sda?`) or the result from ofpath for the actual device paths and try again to run `ybin` with the modified `yaboot.conf`.

Cheers,
Frank


Reply to: