Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

  1. #11
    Join Date
    Jun 2008
    Location
    Berlin
    Beans
    784
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

    Quote Originally Posted by MemphisJones View Post
    Here's my yaboot.conf file. The only thing I changed was the "default=hda4-Linux". So from what you are saying about ybin I could put this in my hda4 partition and and it would work. Does it matter that this file has the added bit about "# This entry automatically added..." at the bottom?
    You don't need to put this file in /dev/hda4/boot. When you run ybin, it will configure correctly the yaboot on /dev/hda2, regardless if you are running it on /hda3 or /hda4.

    Ok, it can be that default=sda4-Linux works - so, if for you is ok you don't need to change it, but a much more canonical form would be like this
    (BOLD is what I changed).

    Code:
    ## yaboot.conf generated by the Ubuntu 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/hda2
    device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
    partition=4
    root=/dev/hda4
    timeout=100
    install=/usr/lib/yaboot/yaboot
    magicboot=/usr/lib/yaboot/ofboot
    enablecdboot
    
    image=/boot/vmlinux
    	label=Linux
    	read-only
    	initrd=/boot/initrd.img
    	append="quiet splash"
    
    image=/boot/vmlinux.old
    	label=old
    	read-only
    	initrd=/boot/initrd.img.old
    	append="quiet splash"
    
    # This entry automatically added by the Ubuntu installer for an existing
    # Linux installation on /dev/hda3.
    image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3,/boot/vmlinux
        label=hda3-Linux
        root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3
        append="root=/dev/hda3 ro quiet splash video=ofonly"
        initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3,/boot/initrd.img
    
    # This entry automatically added by the Ubuntu installer for an existing
    # Linux installation on /dev/hda3.
    image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3,/boot/vmlinux.old
        label=hda3-old
        root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3
        append="root=/dev/hda3 ro quiet splash video=ofonly"
        initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3,/boot/initrd.img.old
    Here you don't need to give the option for the default OS
    Don't forget to run
    Code:
    sudo ybin -v
    everytime you edit yaboot.conf
    PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
    PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader

  2. #12
    Join Date
    Nov 2010
    Beans
    98

    Re: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

    Hi! I found this thread in search of help for a related problem:

    On a PBG4 on the internal hd i've running Ubuntu 10.04. Now i installed on an external firewire hd mintppc. But something in defining the yaboot.conf file failed. Although Ubuntu is still running fine i cannot boot in mintppc. How could i manually edit yaboot.conf to be prompted on boot for a choice?

    The structure of the both hds is this:

    Internal (Ubuntu):
    /dev/hda1 filesystem: unknown
    /dev/hda2 filesystem: hfs
    /dev/hda3 filesystem: ext4 mountpoint: /
    /dev/hda4 filesystem: linux-swap

    External (Mint):
    /dev/sda1 filesystem: unknown
    /dev/sda2 filesystem: hfs
    /dev/sda3 filesystem: ext3 mountpoint: /
    /dev/sda4 filesystem: linux-swap

    The yaboot.conf (on hda3/etc/) looks like this:

    ## yaboot.conf generated by the Ubuntu 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/hda2
    #boot = "/dev/disk/by-label/bootstrap"

    device=/pci@f4000000/ata-6@d/disk@0:
    partition=3

    root = /dev/hda3
    #root = "UUID=c7a26c93-8e02-4b6a-af14-64aea2493da9"

    timeout=50
    install=/usr/lib/yaboot/yaboot
    magicboot=/usr/lib/yaboot/ofboot
    enablecdboot

    image=/boot/vmlinux
    label=2635
    read-only
    initrd=/boot/initrd.img
    append="quiet splash"

    image=/boot/vmlinux-2.6.34-ppcnux
    label=2634
    read-only
    initrd=/boot/initrd.img-2.6.34-ppcnux
    append="nosplash"
    I'm not sure, where and how to put in the lines referring to the external disks (from which using ofpath i got the labels (this, i presume: /dev/sda1 is: /pci@f4000000/firewire@e/node@0001a300000586c7/sbp-2@4000/disk@0:1)

    Thanks in advance for any help!

    PS. Eventually, there is an option to boot directly to the external firewire?

  3. #13
    Join Date
    Mar 2006
    Beans
    393

    Re: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

    Quote Originally Posted by Farinet View Post
    Internal (Ubuntu):
    /dev/hda1 filesystem: unknown
    /dev/hda2 filesystem: hfs
    /dev/hda3 filesystem: ext4 mountpoint: /
    /dev/hda4 filesystem: linux-swap

    External (Mint):
    /dev/sda1 filesystem: unknown
    /dev/sda2 filesystem: hfs
    /dev/sda3 filesystem: ext3 mountpoint: /
    /dev/sda4 filesystem: linux-swap
    The first partition is the partition table. It must be the first partition on the device. You can look at it with:
    Code:
    sudo mac-fdisk -l
    You can also change it with mac-fdisk but it's easier to use a partitioning application.

    Quote Originally Posted by Farinet View Post
    PS. Eventually, there is an option to boot directly to the external firewire?
    As far as I know, the only way to boot from any device but the hard disk or the CD, is to go through OpenFirmware. Here's how to boot from a USB drive.
    Just my 0.00000002 million dollars worth,
    Shawn

    Programming is as much about organization and communication as it is about coding.

  4. #14
    Join Date
    Nov 2010
    Beans
    98

    Re: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

    Thanks for your reply. In the meantime i figured out what to do. My yaboot.conf now looks like this:

    ## yaboot.conf generated by the Ubuntu 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/hda2
    #boot = "/dev/disk/by-label/bootstrap"

    device=/pci@f4000000/ata-6@d/disk@0:
    partition=3

    root = /dev/hda3
    #root = "UUID=c7a26c93-8e02-4b6a-af14-64aea2493da9"

    timeout=50
    install=/usr/lib/yaboot/yaboot
    magicboot=/usr/lib/yaboot/ofboot
    enablecdboot

    image=/boot/vmlinux
    label=2635
    read-only
    initrd=/boot/initrd.img
    append="quiet splash"

    image=/pci@f4000000/firewire@e/node@0001a300000586c7/sbp-2@4000/disk@0:3,/boot/vmlinux
    label=mintppc9
    root=/pci@f4000000/firewire@e/node@0001a300000586c7/sbp-2@4000/disk@0:3
    initrd=/pci@f4000000/firewire@e/node@0001a300000586c7/sbp-2@4000/disk@0:3,/boot/initrd.img
    append="quiet splash"

    image=/boot/vmlinux-2.6.34-ppcnux
    label=2634
    read-only
    initrd=/boot/initrd.img-2.6.34-ppcnux
    append="nosplash"
    Moreover doing some bricolage on the bootstrap partition on the external hd (/des/sda), practically first i did an ybin -b /dev/sda2 from the internal hd (/dev/hda) and then manually i edited the yaboot.conf on ssda2 in a way it was identical to that in /dev/sda3/etc i managed that i can also use - during the Mac power on sound - the classical Mac option key to have the choice between booting from the internal or the external hd.

  5. #15
    Join Date
    Jan 2009
    Beans
    32

    Re: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

    Here's an odd one for you.

    It appears that the folks who wrote yaboot never anticipated someone wanting to triple-boot between TWO OS-X installs and a Linux install.

    Here is how my hard drive is set up: (as shown by gparted)

    Partition #1 - /dev/hda1 "unknown" locked partition (with a big red exclamation point!)
    Partition #2 - /dev/hda2 Yaboot "New World" partition (16 meg) Flag: boot
    Partition #3 - "unallocated" (128 megs)
    Partition #4 - /dev//hda4 HPFS+ partition, labeled "New Tiger" (17.88 gig)
    Partition #5 - "unallocated" (128 megs)
    Partition #6 - /dev/hda6 HPFS+ partition, labeled "Old Tiger" (17.88 gig)
    Partition #7 - /dev/hda7 HPFS+ partition, labeled "Boot OSX" (8.5 meg) Flag: boot
    Partition #8 - /dev/hda8 ext4 partition for Xbuntu (36.51 gig)
    Partition #9 - /dev/hda9 HPFS+ partition, labeled "Boot OSX" (8.5 meg) Flag: boot
    Partition #10 - /dev/hda10 Linux Swap partition (1.99 gig) Flag: swap

    When I created the partition table using Mac's Disk Utility, I created five partitions: the partitions that ultimately became partitions 2, 4, 6, 8, and 10 as the only five partitions - all the others were added "behind the scenes" as it were, by the Mac.

    I would like to set up yaboot such that when I get the boot menu, I get to choose between either one of the two OS-X partitions, OR the Xbuntu partition.
    Viz.: (something like this)
    L - Linux
    X - (first OSX partition) - can I set these labels to something useful?
    Y - (second OSX partition)
    C - CD-ROM

    I chose the letters "X" and "Y" as arbitrary letters, they could be anything needed.

    So far, the only information I have found is for:

    • Booting between one Mac partition and one Linux partition
    • Booting between one Mac-9 partition, one Mac-X partition, and one Linux partition.
    • Booting between one or two Mac partitions (9 and X) and more than one Linux partition (by using "image=" statements.)

    What I want to find is how to boot between two or more Mac-X partitions, and a Linux partition.

    I cannot believe that the folks at yaboot never considered the idea of using more than one Mac-X partition as part of the boot process - in the same way they allow more than one Linux partition.

    I did try editing the yaboot.conf file to include TWO "macosx=" statements, one pointing to /dev/hda4 and the other to /dev/hda6. What happens is that the first one encountered is the one captured. The second "macosx" statement is ignored.

    Any suggestions would be gratefully appreciated.

    p.s. Does anyone know how to make the yaboot menu a larger text size? Right now on my system the entire yaboot menu takes up about a 2" x 2" square in the upper left hand corner - and is virtually impossible to read without a magnifying glass.

    Jim (JR)

  6. #16
    rsavage is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Jan 2011
    Beans
    1,114

    Re: PPC - Yaboot - How to configure the PPC Bootloader - Multibooting

    Hi Jim,

    As you say you can boot separately Mac OS and Mac OS X. I don't know anything about Mac OS (or X), but I'm wondering if a possible quick fix for you would be just to pretend one of your Mac OS X partitions was Mac OS 9?
    macosx=
    macos=

    I don't think the code for yaboot would be that complex. It would be probably quite easy to hack something to produce a menu that was exactly to your specifications.

    Can you not select the OS of your choice by holding down Alt/Option on startup?

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •