Re: jessie powermac yboot: ybin fails
On Mar 2, 2018, at 7:51 AM, Felix Miata <mrmazda@earthlink.net> wrote:
> Rick Thomas composed on 2018-03-02 04:17 (UTC-0800):
>
>> 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
>
>>> I tried to add cmdline options via /etc/yaboot.conf, but as above, ybin fails. I've
>>> looked at https://www.debian.org/ports/powerpc/inst/yaboot-howto/index.en.html#contents
>>> over and over, and the yaboot.conf and ybin man pages, and cannot figure out which
>>> partition is the OpenFirmware path that I apparently need to give ybin with the -o
>>> option. Can anyone see from what follows what it would be, or tell me how to find it,
>>> or what else I'm missing? Is the partition labeled bootstrap (sda13) the same as the
>>> OpenFirmware partition?
>
>>> # ls -l /dev/disk/by-id/*M03
>>> lrwxrwxrwx 1 root root 9 Feb 28 03:13 /dev/disk/by-id/ata-ST340015A_5LA13M03 -> ../../sda
>
>>> # ls -l /dev/disk/by-label/
>>> total 0
>>> lrwxrwxrwx 1 root root 11 Feb 28 04:04 bootstrap -> ../../sda13
>>> lrwxrwxrwx 1 root root 11 Feb 28 03:13 ST40-OSX -> ../../sda10
>
>>> # parted -l /dev/sda
>>> Model: ATA ST340015A (scsi)
>>> Disk /dev/sda: 40.0GB
>>> Sector size (logical/physical): 512B/512B
>>> Partition Table: mac
>>> Disk Flags:
>
>>> Number Start End Size File system Name Flags
>>> 1 512B 32.8kB 32.3kB Apple
>>> 2 32.8kB 61.4kB 28.7kB Macintosh
>>> 3 61.4kB 90.1kB 28.7kB Macintosh
>>> 4 90.1kB 119kB 28.7kB Macintosh
>>> 5 119kB 147kB 28.7kB Macintosh
>>> 6 147kB 410kB 262kB Macintosh
>>> 7 410kB 672kB 262kB Macintosh
>>> 8 672kB 934kB 262kB Patch Partition
>>> 13 934kB 135MB 134MB hfs Yaboot boot
>>> 10 135MB 20.0GB 19.9GB hfs+ Apple_HFS_Untitled_1
>>> 9 20.0GB 20.9GB 900MB linux-swap(v1) swap swap
>>> 11 20.9GB 31.9GB 11.0GB ext4 jessieRoot
>>> 12 31.9GB 40.0GB 8109MB ext4 LinuxHome
>
>>> # blkid /dev/sda1
>>> /dev/sda1: PARTLABEL="Apple"
>>> # blkid /dev/sda2
>>> /dev/sda2: PARTLABEL="Macintosh" # &3-7
>>> # blkid /dev/sda8
>>> /dev/sda8: PARTLABEL="Patch Partition"
>
>>> # ofpath /dev/sda
>>> /pci@f4000000/ata-6@d/@1
>
>> You’re more likely to get an answer to this on the powerpc list, so I CC’ed them.
>
>> Also, it would be helpful to see what your /etc/yaboot.conf looks like.
>
> boot="/dev/disk/by-id/ata-ST340015A_5LA13M03-part13"
> device=/pci@f4000000/ata-6@d/@1
> partition=11
> root="UUID=3d6512d0-21d2-410f-bf71-2fb2dbdb94e5"
> timeout=300
> delay=16
> install=/usr/lib/yaboot/yaboot
> magicboot=/usr/lib/yaboot/ofboot
> enablecdboot
> macosx="/dev/disk/by-id/ata-ST340015A_5LA13M03-part10"
>
> image=/boot/vmlinux
> label=curKernelShell
> alias=3
> read-only
> initrd=/boot/initrd.img
> append="splash=0 ipv6.disable=1 net.ifnames=0 noresume vga=791 video=1024x768 3"
>
> image=/boot/vmlinux.old
> label=prvKernel
> alias=p
> read-only
> initrd=/boot/initrd.img.old
> append="splash=0 ipv6.disable=1 net.ifnames=0 noresume vga=791 video=1280x800"
>
> image=/boot/vmlinux
> label=GUIcurKernel
> alias=5
> read-only
> initrd=/boot/initrd.img
> append="splash=0 ipv6.disable=1 net.ifnames=0 noresume vga=791 video=1024x768 5"
>
> image=/boot/vmlinux
> label=NoSMP
> alias=s
> read-only
> initrd=/boot/initrd.img
> append="splash=0 ipv6.disable=1 net.ifnames=0 noresume vga=791 video=1024x768 5"
>
> macosx=/dev/hda10
> --
> "Wisdom is supreme; therefore get wisdom. Whatever else you
> get, get wisdom." Proverbs 4:7 (New Living Translation)
>
> Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
>
> Felix Miata *** http://fm.no-ip.com/
For what it’s worth, here is the /etc/yaboot.conf on my PowerMac G5 that has both OSX and Debian Sid
rbthomas@kmac:~$ cat /etc/yaboot.conf
## yaboot.conf generated by debian-installer
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
boot="/dev/disk/by-id/ata-WDC_WD2500JD-41HBC0_WD-WCAL74658375-part2"
device=/ht@0,f2000000/pci@5/k2-sata-root@c/@0/@0
partition=3
root="/dev/mapper/kmac--vg-root"
timeout=50
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
macosx=/ht@0,f2000000/pci@5/k2-sata-root@c/@1/@0:3
enablecdboot
image=/vmlinux
label=Linux
read-only
initrd=/initrd.img
image=/vmlinux.old
label=old
read-only
initrd=/initrd.img.old
Reply to: