Re: OpenFirmare dual boot problem


Subject: Re: OpenFirmare dual boot problem
From: Dan (dan.kortschak@adelaide.edu.au)
Date: Thu Sep 07 2000 - 08:26:27 MDT


Hi Pat, what I ended up doing was change the ofboot.b script that ybin put in
the root of my MacOS partition: I'm using the yaboot.tbxi file that came with
the CS1.2 CD and I wrote my own yaboot.conf script (I'm asuming that you have
got single boot linux working for all the following).

In the following script (which only does dual, not triple boot - I don't know
what the ELF image for X is, but it shouldn't be too hard to figure out if you
actually load that OS) you will need to change four things: OF_PATH_TO_YABOOT,
OF_PATH_TO_:TBXI, WAIT_TIME_IN_SECONDS and DEFAULT_OS. On my machine these are
hd:5,\\yaboot.tbxi (yaboot.tbxi is in my System Folder), hd:5,\\:tbxi (the MacOS
ROM image ditto), 10 (seems long enough for someone to make up their mind), and
bootmacos (my house mate is intimidated by linux - the alternative is obviously
bootyaboot). You can delete the section <OS-BADGE-ICONS> ... </OS-BADGE-ICONS>
if you don't have a G4, as this does nothing on the other machines (AFAIK). Once
you've got the files in place, you need to point to ofboot.b in OF (this makes
this method less easy than the way ybin does it, but I don't think the-ybin-way
will work in my situation where I don't have a separate bootstrap partition). So
go to OF and "setenv boot-device OF_PATH_TO_OFBOOT.B" (on my machine this is
hd:5,\\ofboot.b as it's in the System Folder on partition 5 of an IDE drive).

hope this helps
Dan Kortschak

The ofboot.b file that ybin generates goes something like this (you can hum
along if you don't know the words - though I think it's much easier to read than
the previous one I was trying to fingure out since this one uses standard words
for the majority of its I/O - you should be able to copy and paste this and have
it work):

<CHRP-BOOT>
<COMPATIBLE>
iMac,1 PowerMac1,1 PowerMac2,1 PowerMac2,2 PowerMac3,1 PowerMac3,2 PowerMac3,3
PowerMac5,1 PowerBook1,1 PowerBook2,1 PowerBook2,2 PowerBook3,1 PowerBook3,2
</COMPATIBLE>
<DESCRIPTION>
GNU/Linux First Stage PowerPC Bootstrap
</DESCRIPTION>
<BOOT-SCRIPT>
: bootyaboot " Loading second stage bootstrap..." fb8-write 100 ms " boot
OF_PATH_TO_YABOOT" eval ;
: bootmacos " Booting MacOS..." fb8-write 100 ms " boot OF_PATH_TO_:TBXI" eval ;
variable hackcrlfvar 0d0a0a0d hackcrlfvar !
: hackcrlf hackcrlfvar 2 fb8-write ;
variable interactive
1 interactive !

0 interactive @ = if
  bootyaboot
then

" First stage GNU/Linux bootstrap" fb8-write off hackcrlf
" " fb8-write off hackcrlf
" Press L for GNU/Linux," fb8-write off hackcrlf
" M for MacOS." fb8-write off hackcrlf
" " fb8-write off hackcrlf
" Boot: " fb8-write off
get-secs WAIT_TIME_IN_SECONDS +
begin
  key? if
    key
    dup ascii l = if hackcrlf bootyaboot then
    dup ascii m = if bootmacos then
    off
  then
  dup get-secs - 0 = if DEFAULT_OS then
repeat
</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>



This archive was generated by hypermail 2a24 : Wed Sep 06 2000 - 18:00:29 MDT