Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Yaboot problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Fenster
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 172
Location: Purgatory

PostPosted: Sat Feb 04, 2006 12:38 am    Post subject: [solved] Yaboot problem Reply with quote

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

_________________
photography - geekery


Last edited by Fenster on Sat Feb 04, 2006 11:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 04, 2006 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Fenster
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 172
Location: Purgatory

PostPosted: Sat Feb 04, 2006 1:05 am    Post subject: Reply with quote

I'll try that, thank you, although I already have powerpc-utils emerged.
_________________
photography - geekery
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 04, 2006 1:36 am    Post subject: Reply with quote

Then it might be missing nvram support in your kernel (CONFIG_NVRAM).
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Fenster
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 172
Location: Purgatory

PostPosted: Sat Feb 04, 2006 11:01 pm    Post subject: Reply with quote

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. :)
_________________
photography - geekery
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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