• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    @Divinity

    Problem solved. :-)

    Plese find below an updated ofboot.b script, which includes MorphOS (no longer disguised as MacOS), and 4 possible MacOSX installations.
    Note that you will need to manually change the script to point to the correct partitions for your OSX installations.

    A quick comparison between this and the default ofboot.b should be enough to deduce how to make further alterations.

    Amendment to yaboot.conf is not necessary (only necessary if you are re-generating yaboot from within Linux).
    It just seems easier to edit ofboot.b manually from the MorphOS side and re-bless.

    Also, you can change the 'l', 'm', '1', '2', '3' and '4' buttons (to select which OS to boot to) to whatever you desire, just make sure you change it in both places (within ofboot.b).

    You can also change the descriptions to whatever you want.
    For consistency you should also change the descriptor in in two places within ofboot.b: the menu, and the confirmation message (however it will still boot if you fail to do this).

    Don't forget to re-bless the file after editing.

    [Start of ofboot.b]

    <CHRP-BOOT>
    <COMPATIBLE>
    MacRISC MacRISC3 MacRISC4
    </COMPATIBLE>
    <DESCRIPTION>
    PowerPC GNU/Linux First Stage Bootstrap
    </DESCRIPTION>
    <BOOT-SCRIPT>
    : .printf fb8-write drop ;
    : bootyaboot " Loading second stage bootstrap..." .printf 100 ms load-base release-load-area " hd:2,\\yaboot" $boot ;
    : bootmorphos " Booting MorphOS..." .printf 100 ms load-base release-load-area " /pci@f4000000/ata-6@d/disk@0:3,\\:tbxi" $boot ;
    : bootmacosx1 " Booting MacOSX1..." .printf 100 ms load-base release-load-area " /pci@f4000000/ata-6@d/disk@0:9,\\:tbxi" $boot ;
    : bootmacosx2 " Booting MacOSX2..." .printf 100 ms load-base release-load-area " /pci@f4000000/ata-6@d/disk@0:9,\\:tbxi" $boot ;
    : bootmacosx3 " Booting MacOSX3..." .printf 100 ms load-base release-load-area " /pci@f4000000/ata-6@d/disk@0:9,\\:tbxi" $boot ;
    : bootmacosx4 " Booting MacOSX4..." .printf 100 ms load-base release-load-area " /pci@f4000000/ata-6@d/disk@0:9,\\:tbxi" $boot ;
    : bootcd " Booting CDROM..." .printf 100 ms load-base release-load-area " cd:,\\:tbxi" $boot ;
    : bootof " Booting OpenFirmware..." .printf 100 ms quit ;
    " screen" output
    variable interactive
    1 interactive !

    0 interactive @ = if
    bootyaboot
    then

    dev screen
    " "(0000000000aa00aa0000aaaaaa0000aa00aaaa5500aaaaaa)" drop 0 7 set-colors
    " "(5555555555ff55ff5555ffffff5555ff55ffffff55ffffff)" drop 8 15 set-colors
    device-end
    f to foreground-color
    0 to background-color
    " "(0C)" .printf

    " First Stage Ubuntu Bootstrap"(0d 0a)" .printf
    " "(0d 0a)" .printf
    " Press l for GNU/Linux,"(0d 0a)" .printf
    " m for MorphOS,"(0d 0a)" .printf
    " 1 for MacOSX1,"(0d 0a)" .printf
    " 2 for MacOSX2,"(0d 0a)" .printf
    " 3 for MacOSX3,"(0d 0a)" .printf
    " 4 for MacOSX4,"(0d 0a)" .printf
    " c for CDROM,"(0d 0a)" .printf
    " o for OpenFirmware."(0d 0a)" .printf
    " "(0d 0a)" .printf
    " Stage 1 Boot: " .printf
    get-msecs d# 20 3E8 * +
    begin
    key? if
    key case
    ascii l of " l "(0d 0a)" .printf bootyaboot endof
    ascii m of " m "(0d 0a)" .printf bootmorphos endof
    ascii 1 of " 1 "(0d 0a)" .printf bootmacosx1 endof
    ascii 2 of " 2 "(0d 0a)" .printf bootmacosx2 endof
    ascii 3 of " 3 "(0d 0a)" .printf bootmacosx3 endof
    ascii 4 of " 4 "(0d 0a)" .printf bootmacosx4 endof
    ascii c of " c "(0d 0a)" .printf bootcd endof
    ascii o of " o "(0d 0a)" .printf bootof endof
    endcase
    then
    dup get-msecs <
    until
    drop
    " "(0d 0a)" .printf bootmorphos
    </BOOT-SCRIPT>
    <OS-BADGE-ICONS>
    1010
    000000000000F8FEACF6000000000000
    0000000000F5FFFFFEFEF50000000000
    00000000002BFAFEFAFCF70000000000
    0000000000F65D5857812B0000000000
    0000000000F5350B2F88560000000000
    0000000000F6335708F8FE0000000000
    00000000005600F600F5FD8100000000
    00000000F9F8000000F5FAFFF8000000
    000000008100F5F50000F6FEFE000000
    000000F8F700F500F50000FCFFF70000
    00000088F70000F50000F5FCFF2B0000
    0000002F582A00F5000008ADE02C0000
    00090B0A35A62B0000002D3B350A0000
    000A0A0B0B3BF60000505E0B0A0B0A00
    002E350B0B2F87FAFCF45F0B2E090000
    00000007335FF82BF72B575907000000
    000000000000ACFFFF81000000000000
    000000000081FFFFFFFF810000000000
    0000000000FBFFFFFFFFAC0000000000
    000000000081DFDFDFFFFB0000000000
    000000000081DD5F83FFFD0000000000
    000000000081DDDF5EACFF0000000000
    0000000000FDF981F981FFFF00000000
    00000000FFACF9F9F981FFFFAC000000
    00000000FFF98181F9F981FFFF000000
    000000ACACF981F981F9F9FFFFAC0000
    000000FFACF9F981F9F981FFFFFB0000
    00000083DFFBF981F9F95EFFFFFC0000
    005F5F5FDDFFFBF9F9F983DDDD5F0000
    005F5F5F5FDD81F9F9E7DF5F5F5F5F00
    0083DD5F5F83FFFFFFFFDF5F835F0000
    000000FBDDDFACFBACFBDFDFFB000000
    000000000000FFFFFFFF000000000000
    0000000000FFFFFFFFFFFF0000000000
    0000000000FFFFFFFFFFFF0000000000
    0000000000FFFFFFFFFFFF0000000000
    0000000000FFFFFFFFFFFF0000000000
    0000000000FFFFFFFFFFFF0000000000
    0000000000FFFFFFFFFFFFFF00000000
    00000000FFFFFFFFFFFFFFFFFF000000
    00000000FFFFFFFFFFFFFFFFFF000000
    000000FFFFFFFFFFFFFFFFFFFFFF0000
    000000FFFFFFFFFFFFFFFFFFFFFF0000
    000000FFFFFFFFFFFFFFFFFFFFFF0000
    00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
    00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
    00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
    000000FFFFFFFFFFFFFFFFFFFF000000
    </OS-BADGE-ICONS>
    </CHRP-BOOT>


    [End of ofboot.b]

    ********************************************************************

    Hope this is useful to you.

    If Morphzone changes any of the characters above (it doesn't like GB Pound symbols for instance) I can attach the ofboot.b file as an attachment, just let me know if you need it.

    Regards



    Rich
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »18.08.10 - 10:03
    Profile Visit Website