On Fri, 15 Nov 2002, Vincent Danen wrote:

> Ok, I had to reinstall OS X on my G4 the other day and it reset OF and 
> I suspect messed with yaboot as well.  When I boot my G4 now, it takes 
> me right into OS X.  So I thew my 8.2 CD in to boot into rescue mode, 
> chrooted /mnt, and tried to run ybin.  It tells me that 
> /usr/local/yaboot/yaboot doesn't exist; the /usr/local/yaboot directory 
> does exist, but there is nothing in it.
> 
> I had to mount /proc in the chroot to eliminate an error about being 
> unable to write to nvram (setting OF settings I bet), but I can't 
> figure out what's going on here.  Trying to look at my G3 doesn't help 
> because the layout for yaboot is a little different.
> 
> Any ideas how I can get my cooker install back up and running without 
> doing a reinstall of it as well?
> 

If it's recent cooker, yaboot/ybin files have been moved:

[stew@powerbook stew]$ rpm -ql yaboot
/etc/yaboot.conf
/usr/lib/yaboot/addnote
/usr/lib/yaboot/ofboot
/usr/lib/yaboot/yaboot
/usr/sbin/mkofboot
/usr/sbin/ofpath
/usr/sbin/yabootconfig
/usr/sbin/ybin

But things should be functional:

[root@powerbook mysql]# ybin -v
ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto
/dev/hda10...
ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto
/dev/hda10...
ybin: Installing /etc/yaboot.conf onto /dev/hda10...
ybin: Setting attributes on ofboot...
ybin: Setting attributes on yaboot...
ybin: Setting attributes on yaboot.conf...
ybin: Blessing /dev/hda10 with Holy Penguin Pee...
ybin: Updating OpenFirmware boot-device variable in nvram...

As Brice said, you can manually set OF to point to the right partition
also.  I don't know that OF has a reboot, but shut-down will power down
from OF.

Stew Benedict

-- 
MandrakeSoft    
PPC FAQ: http://www.linux-mandrake.com/en/ppcFAQ.php3
IRC: irc.openproject.net #cooker-ppc
Archives: http://marc.theaimsgroup.com/?l=mandrake-cooker-ppc&r=1&w=2


Reply via email to