| View previous topic :: View next topic |
| Author |
Message |
Fenster Apprentice


Joined: 26 Oct 2004 Posts: 169 Location: IRL, alas
|
Posted: Fri Feb 03, 2006 7:38 pm Post subject: [solved] Yaboot problem |
|
|
Yaboot won't install, to cut what would be a long post short. It always returns this message:
| Code: | | ybin: Warning: 'nvsetenv' could not be found, nvram will not be updated |
I can access yaboot itself via the alt+"apple"+o+f key combination. But going through that and following it up with "boot hd:5,yaboot" every boot isn't easy on the fingers. Not to mention that as Yaboot isn't getting installed properly, I cannot boot past that point. I've tried every suggestion I could find on the matter from here, LQ, from resetting the pram to repartitioning to scarificing a lamb...
Some steps I've gone through:
Run yabootconfig to generate a yaboot.conf, which I then edited to my liking.
Run mkofboot
Run ybin
Everytime I've tried to instal lthe bootloader, its just returned nvsetenv.
As an aside rant, Yaboot is probably the most user-unfriendly program I've come across on Linux, although Apple's design decisions has as much to do with that as anything. Anyways! This is frustrating for me, as I've been beating away at it since last night.
For reference, I've added my partition map - hda3 is OS X, hda5-7 are Gentoo - and my yaboot.conf
| Code: | /dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Boot eXternal booter 17408 @ 64 ( 8.5M) Unknown
/dev/hda3 Apple_HFS Apple_UFS_Untitled_1 40153240 @ 17472 ( 19.1G) HFS
/dev/hda4 Apple_Boot eXternal booter 17408 @ 40170712 ( 8.5M) Unknown
/dev/hda5 Apple_Bootstrap bootstrap 1600 @ 40188120 (800.0k) NewWorld bootblock
/dev/hda6 Apple_UNIX_SVR2 swap 1048576 @ 40189720 (512.0M) Linux swap
/dev/hda7 Apple_UNIX_SVR2 root 36901864 @ 41238296 ( 17.6G) Linux native
Block size=512, Number of Blocks=78140160
DeviceType=0x0, DeviceId=0x0 |
| Code: | boot=/dev/hda5
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
ofboot=/dev/hda5
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
title=Linux
image=/boot/gentoo-linux-2.6.15
root=/dev/hda7
partition=7
label=Linux
read-only
default=Linux
macosx=/dev/hda4
enablecdboot
enableofboot |
Last edited by Fenster on Sat Feb 04, 2006 6:01 pm; edited 1 time in total |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Fri Feb 03, 2006 7:53 pm Post subject: |
|
|
The nvsetenv "error" is just a warning and isn't fatal. To get rid of it, emerge powerpc-utils. It allows ybin to modify the nvram settings but was mistakenly left off of the last InstallCD. For most people, it doesn't make a difference. In your case, you didn't put the bootstrap partition at /dev/hda2. Because of this, when the OF tries to find the bootdisk, it's probably finding one of those other boot partitions first and autobooting them instead. So, try emerging powerpc-utils then using ybin -v. If that doesn't help the situation, you can non-destructively move the partitions around in the partition table (not on disk) with mac-fdisk. Change the partition order so /dev/hda2 is your linux bootstrap partition. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
| Back to top |
|
 |
Fenster Apprentice


Joined: 26 Oct 2004 Posts: 169 Location: IRL, alas
|
Posted: Fri Feb 03, 2006 8:05 pm Post subject: |
|
|
| I'll try that, thank you, although I already have powerpc-utils emerged. |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
|
| Back to top |
|
 |
Fenster Apprentice


Joined: 26 Oct 2004 Posts: 169 Location: IRL, alas
|
Posted: Sat Feb 04, 2006 6:01 pm Post subject: |
|
|
Changing my partitions around did the trick, thank you. Also, I ran into the "grey screen" problem, which was solved by editing the ofboot line of my yaboot.conf:
| Code: | boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
ofboot=hd:2
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
title=Linux
image=/boot/gentoo-linux-2.6.15
root=/dev/hda7
partition=7
label=Linux
read-only
default=Linux
macosx=/dev/hda4
enablecdboot
enableofboot |
Marking as solved.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|