Re: I have a problem with the dual boot using bootscript.txt


Subject: Re: I have a problem with the dual boot using bootscript.txt
From: Pat Plummer (ppat@micron.net)
Date: Mon Oct 02 2000 - 21:13:30 MDT


>i am a NEWBIE

Heh. We all are in some form or another. I had big trouble using this script at
first until another Open Firmware guru (Thanks, Dan!) took me in hand. Not
promising that I'm a master or anything, but I have a comment or two that
/might/ help.

From your message:
>>
here is my [your] bootscript

<CHRP-BOOT>
<COMPATIBLE>
iMac,1 PowerMac1,1 PowerBook1,1 PowerMac2,1 PowerMac3,1 PowerMac4,1
PowerBook2,1 PowerBook3,1
</COMPATIBLE>
<DESCRIPTION>
Yellow Dog Linux Bootloader
</DESCRIPTION>

<BOOT-SCRIPT>
" get-key-map" " keyboard" open-dev $call-method
dup 20 dump
5 + c@ 08 = if
" Booting Yellow Linux ..." cr " boot ultra0:8,\\yaboot.tbxi" eval
else
" Booting MacOS ..." cr " boot ultra0:8,\\tbxi" eval
then
</BOOT-SCRIPT>
</CHRP-BOOT>
>>
The comments below assume that MacOS is on the 8th partition:

Don't use "ultra0:8", use "hd:8" instead. I never had any luck with ultra.
Also, make sure that there is a colon prior to tbxi for the statement that
loads MacOS instead of Linux.

Here is my version of that section from my "bootinfo.txt" file that is at the
root level of my MacOS partition (all the rest is the same):
##
" Booting MacOS ..." cr " boot hd:8,\\:tbxi" eval
else
" Booting Yellow Dog Linux ..." cr " boot hd:8,\yaboot.tbxi" eval
##

Notice that my yaboot.tbxi file is at the root level of my MacOS partition,
hence the single backslash \ . \\ (double backslash) denotes the "blessed"
system folder; whereas single \ denotes root level of that partition. "\\:tbxi"
denotes the MacOS ROM file in the "blessed" system folder. Don't forget the
colon.

Here's how you install the OF boot script:

1) make the changes to your script as I noted above.
2) boot the machine into OF by rebooting while holding down cmd-opt-O-F
3) At the OF prompt, type:

setenv boot-device hd:8,\bootinfo.txt and press enter.

The above command assumes that your boot script is named "bootinfo.txt" and is
at the root level. If the name is different, change the above accordingly. If
this file is in the system folder rather than at the root level, use a double
backslash \\ .

4) then press control-cmd-poweron (the keyboard button for power on). This
writes the boot-device statement to OF. If you screw up somehow, remember that
you can boot back to OF as above (cmd-opt-O-F) and use manual commands for
booting whatever OS you want or you can zap the PRAM to erase these new
settings.

5) You're done. If all went well, you should boot Linux as default and boot
MacOS if you are holding down the spacebar at boot up.

Please feel free to drop me a line if you have problems or questions and I will
help if I can.

Pat

-- 
Powered by Yellow Dog Linux
--
Pat Plummer.MD
ppat@micron.net
ppat@mac.com



This archive was generated by hypermail 2a24 : Mon Oct 02 2000 - 21:49:06 MDT