Yaboot Config
Code: Select all
## Example yaboot.conf for ybin and yaboot >= 0.6
## see man yaboot.conf for more details.
## Change `unconfigured' to your bootstrap partition eg: /dev/hda2
boot=/dev/hda2
## device is the OpenFirmware device path to the disk containing
## kernel images. if your disk is /dev/hda you can find the
## OpenFirmware path by running the command: ofpath /dev/hda DO NOT
## specify a partition number for this! On IBM hardware you can
## generally comment this out.
device=hd:
## partition is the partition number where the kernel images are
## located. The kernel images should be on your root filesystem, so
## this is usually the same partition number as your root filesystem.
## so if root = /dev/hda3 (the 3rd partition) then you should have
## partition=3 This *MUST* be set correct or yaboot won't boot! This
## option can be either set globally as shown here, or per image in
## the image= sections
partition=4
## delay is the amount of time in seconds the dual boot menu (if one
## is configured, by the presense of macos, macosx, etc options here)
## will wait before choosing the default OS (GNU/Linux or the value of
## defaultos=). If you omit this then the value of timeout=
## (converted to seconds) will be used.
delay=10
## timeout is the amount of time in tenths of a second that yaboot
## will wait before booting the default kernel image (the first image=
## section in this config file or the value of default=).
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
ofboot=hd:2
## Change the default colors, fgcolor is the text color, bgcolor is
## the screen background color. (default: fgcolor=white, bgcolor=black)
#fgcolor=black
#bgcolor=green
## Password supplied in plaintext, required for yaboot to boot, unless
## restricted is also present (see below). Be sure to
## chmod 600 /etc/yaboot.conf if you set this!
#password=secret
## Password supplied as an md5 hash, see above
#password=$1$saltstrg$HnJ/gcM3oKhNbnzUPgXTD/
## A password is only required to boot an image specified here if
## parameters are specified on the command line or if the user enters
## an image is not specified in the configuration file at all (ie.
## arbitrary file load). restricted can also be placed in an image
## section in that case any image not including the restricted keyword
## will be fully password protected.
#restricted
## image is the kernel itself, commonly kept in / but also commonly
## found in /boot. Note that /boot should generally not be its own
## partition on powerpcs, its not necessary and complicates things.
## Make sure /boot is on the partition specified by partition= see
## above. /boot should never be an HFS filesystem. You may point
## image= to a symbolic link so long as the symlink does not cross
## partition boundries.
image=/boot/vmlinux
label=Linux
root=/dev/hda4
sysmap=/boot/System.map
read-only
image=/vmlinux.old
label=Linux.old
root=/dev/hda3
read-only
enableofboot
Code: Select all
/dev/hda
Command (? for help): p
/dev/hda
# type name length base ( size ) system
dump: name /dev/hda len 8
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 swap 2457600 @ 1664 ( 1.2G) Linux swap
/dev/hda4 Apple_UNIX_SVR2 root 10485760 @ 2459264 ( 5.0G) Linux native
/dev/hda5 Apple_Free Extra 26157312 @ 12945024 ( 12.5G) Free space
Block size=512, Number of Blocks=39102336
DeviceType=0x0, DeviceId=0x0
Command (? for help):
Code: Select all
livecd / # mkofboot -v
mkofboot: Create hfs filesystem on /dev/hda2? [y/N] y
mkofboot: Creating HFS filesystem on /dev/hda2...
mkofboot: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/hda2...
mkofboot: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/hda2...
mkofboot: Installing /etc/yaboot.conf onto /dev/hda2...
mkofboot: Setting attributes on ofboot...
mkofboot: Setting attributes on yaboot...
mkofboot: Setting attributes on yaboot.conf...
mkofboot: Blessing /dev/hda2 with Holy Penguin Pee...
mkofboot: Updating OpenFirmware boot-device variable in nvram...
mkofboot: Installation complete.
Code: Select all
livecd / # ls /mnt/temp/
ofboot.b yaboot yaboot.conf
I have:
1. reset-nvram
2. set-defaults
3. reset-all
4. Physically pulled the battery and let it reset
5. Mucked around in O F
6. Booted to cd and: ---> boot: hd:4,/boot/vmlinux root=/dev/hda4
7. In O F: boot hd:2,\\yaboot
8. In O F: boot hd:2,\\ofboot.b
9. Checked the output of O F's: devalias (it lists my drive)
10. Danced by the light of the full moon whilest chanting Celtic spirituals.
The best I can get is: can't open hd:2, \\yaboot
variations of above commands tried: boot hd:4,/boot/vmlinux
boot hd:,\\yaboot, boot hd:2,yaboot, boot hd:,yaboot
Besides the manual attempts, if I boot normally it just displays a blinking directory with a '?' or a smiley apple guy. If I have a bootable cd in it will boot that, but other wise it just hangs.
Any help would be appreciated.....and for the record, this box did boot ok for a while than just stopped.

