Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My new ibook and Gentoo, too bad it won't boot
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
ignuu2
n00b
n00b


Joined: 05 Aug 2003
Posts: 17

PostPosted: Sun Feb 08, 2004 2:41 am    Post subject: My new ibook and Gentoo, too bad it won't boot Reply with quote

Hi again. I just installed Gentoo on my new ibook g4 but unfortunatly I can't make it boot.

The system goes right to OSX and I never see the boot menu. I can't get yaboot to launch at all. If I go into OpenFirmWare I can't get the linux Kernel to boot at all from open firm ware.



My boot partition is /dev/hda5

root is /dev/hda8 and macosx is /dev/hda3


ybin -v gives me

__________________________________________________________________

ybin: Finding OpenFirmware device path to `/dev/hda2'...
ybin: Finding OpenFirmware device path to `/dev/hda3'...
ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/hda2...
ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/hda2...
ybin: Installing /etc/yaboot.conf onto /dev/hda2...
ybin: Setting attributes on ofboot...
ybin: Setting attributes on yaboot...
ybin: Setting attributes on yaboot.conf...
ybin: Blessing /dev/hda2 with Holy Penguin Pee...
ybin: Updating OpenFirmware boot-device variable in nvram...
__________________________________________________________________





Here the output from mac-fdisk

/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_HFS Apple_HFS_Untitled_2 38120128 @ 262208 ( 18.2G) HFS
/dev/hda4 Apple_Bootstrap bootstrap 1600 @ 38382336 (800.0k) NewWorld bootblock
/dev/hda5 linux boot 133120 @ 38383936 ( 65.0M) Unknown
/dev/hda6 Apple_Free Extra 8640 @ 38517056 ( 4.2M) Free space
/dev/hda7 swap swap 2048000 @ 38525696 (1000.0M) Unknown
/dev/hda8 linux / 18022400 @ 40573696 ( 8.6G) Unknown
/dev/hda9 Apple_Free Extra 9024 @ 58596096 ( 4.4M) Free space
/dev/hda10 Apple_Free Extra 260544 @ 1664 (127.2M) Free space

Block size=512, Number of Blocks=58605120
DeviceType=0x0, DeviceId=0x0


_______________________________________________________________________

Now here is a copy of /etc/yaboot.conf

_______________________________________________________________________

#Bootstrap Partition
boot=/dev/hda2

#Open firmware device path to disk containing kernel

device=hd:


#Partiotion where kernel images are located

patition=5


delay=10


timeout=30

#yaboot paths
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

#Path to Mac OSX kernel

macosx=/dev/hda3


#Default OS
defaultos=linux

#default kernel

default=linux

#Main Kernel
image=/kernel-2.6

label=Linux
partition=5
root=/dev/hda8
sysmap=/System.map-2.6
read-only

#Enable CD booting from Menu
enablecdboot

#Enable OpenFirmware bootiny from menu
enableofboot


________________________

Please help

IgnuU2
Back to top
View user's profile Send private message
ishunnedmypants
n00b
n00b


Joined: 08 Jan 2004
Posts: 27
Location: Illinois - pronounced without the s!

PostPosted: Mon Feb 09, 2004 2:05 am    Post subject: Reply with quote

I believe the bootstrap partition should be /dev/hda4 and not /dev/hda2. Perhaps this is the problem. Or maybe you should only have 1 bootstrap partition AFTER your OSX partition.
_________________
Mr. Pickles Fun Time Abortion Clinic, "We'll bring out the kid in ya!"
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Feb 09, 2004 3:49 am    Post subject: Reply with quote

Hi,
There are two things that I can think about, but I don't
know if that will be any help.
First thing I noticed is at the entry for device you
have:
device=hd:
My understanding is that you should past the result
of the command "ofpath /dev/hda" (assuming you are
on hda which is probably the case from your post).
This is the openfirmware path.
The second thing is that you say "ybin -v" gives me...
The first time you set up your boot partition
you have to use "mkofboot" (eventually -v) you only
use "ybin" to update your configuration. But then
I am not sure ybin would run if you hadn't done that,
I don't really have experience in that domain.
But it really fells like you haven't anything on
your boot partition.
Back to top
View user's profile Send private message
ignuu2
n00b
n00b


Joined: 05 Aug 2003
Posts: 17

PostPosted: Mon Feb 09, 2004 6:08 pm    Post subject: Reply with quote

Thanks for the replies. I don't have access to my Ibook right now but I will let you know about your siggestions soon. To clear things up a bit yes I did run mkofboot before running the ybin -v and it asked me to format /dev/hda2 as an apple boot partition. From what I read online regarding the functioning of yaboot I need to have the boot partition before any of the other OS partition. It seems like openfirmware reads in the partitons in numerical order before booting and noots the first bootable partition it encounters. Right now I would agree with the previous post, it seems like yaboot does not exist on /dev/hda2 even though ybin tells me it does. I will try deleting hda4 and reinstalling yaboot but I tried that earlier and it didn't seem to work. Basically the way I opereated with this setup was I wiped the HD reparttioned it using the OSX cd and then restored my mac system using the system restore. After that I booted gentoo live CD and installed.

The strange part is that I never see the aboot prompt at all. Also I was wondering of there might be something wrong with my Kernel. I used a .config file I found online for a g4 ibook kernel but when I compiled it it ended up being 4.2 MB that seems like a huge kernel. I am a i86 debian/lilo user I'm unaccustomed to the ppc way of doing things.

Thanks again for the help.

If we can't figure this out I might try posting to the yaboot list.
Back to top
View user's profile Send private message
ignuu2
n00b
n00b


Joined: 05 Aug 2003
Posts: 17

PostPosted: Thu Feb 12, 2004 11:02 pm    Post subject: It's fixed. Reply with quote

Hi again. I posted to the yaboot maiing list and I found out what was wrong. I have installed a 2.6 kernel and yaboot behaves differently with a 2.6

I got this responce from yaboot mailing list

snip---->

under 2.6 you also need ofboot=hd:2 in addtion to the above (note hd:
is NOT necessarily the right device path! boot into 2.4 and use
ofpath to find the correct path.)

<------/snip


Thanks for all the help
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