Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo 2004.0 on PB 15 1.25: yaboot cannot be installed
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
andreas.schreier
n00b
n00b


Joined: 25 Mar 2004
Posts: 18

PostPosted: Thu Mar 25, 2004 8:53 pm    Post subject: Gentoo 2004.0 on PB 15 1.25: yaboot cannot be installed Reply with quote

Hello,

I am trying to install Gentoo 2004.0 on a PB 15 1.25 GHz. I followed the install guide but yaboot never shows up. It always boots into Mac OS Panther.
Is there a general problem or should it be possible to install Gentoo 2004.0 on a PB 15 1.25 GHz?
yabootconf didn't detect my two HFS partitions correctly (reporting an error) and I couldn't run it in the chroot environment as described in the Gentoo Manual. Instead I used yabootconf --chroot /mnt/gentoo
By the way, I have an extra /boot partition.

I hope someone can help. Thank you very much in advance.
Best regards
Andreas
Back to top
View user's profile Send private message
clar77
Apprentice
Apprentice


Joined: 02 Feb 2004
Posts: 210
Location: Charm City, MD

PostPosted: Thu Mar 25, 2004 10:15 pm    Post subject: Reply with quote

could you post your partition table and the error message ? also your yaboot config ?

yabootconfig worked fine on my PB, why the separate boot partition ?
Back to top
View user's profile Send private message
barryhawkins
n00b
n00b


Joined: 11 Jan 2004
Posts: 8
Location: Atlanta, GA

PostPosted: Fri Mar 26, 2004 12:17 am    Post subject: Requesting additional info re. yaboot failure Reply with quote

I just installed yaboot 1.3.11 on my 1.25GHz PB G4 today without issue. Perhaps you could provide us with the following info:

1.) Partition table
2.) /etc/fstab
3.) /etc/yaboot.conf
4.) Output from mkofboot -v

These items may help us in providing you with some troubleshooting tips. I, too, set up a boot partition, but got rid of it when I saw the note in /etc/yaboot.conf about boot partitions being of no benefit to powerpc architecture.

Regards,
_________________
--
Barry C. Hawkins
site: www.allthingscomputed.com
weblog: www.yepthatsme.com
Back to top
View user's profile Send private message
andreas.schreier
n00b
n00b


Joined: 25 Mar 2004
Posts: 18

PostPosted: Fri Mar 26, 2004 3:14 pm    Post subject: Additional Information Reply with quote

Thanks for your help! I am glad to hear that it is indeed possible to install Gentoo 2004.0 on a PB 15 1.25 GHz.

Here is the additional information:

My fstab:
Code:

/dev/hda9      /boot      ext2      noauto,noatime      1 2
/dev/hda8      /         ext3      noatime         0 1
/dev/hda7      none      swap      sw         0 0
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro      0 0

none         /proc      proc      defaults      0 0

none         /dev/shm   tmpfs      defaults      0 0


My partition table as reported by mac-fdisk -l:
Code:
/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_Free                       262144 @ 64        (128.0M)  Free space
/dev/hda3               Apple_HFS Apple_HFS_Untitled_2  41680896 @ 262208    ( 19.9G)  HFS
/dev/hda4              Apple_Free                       262144 @ 41943104  (128.0M)  Free space
/dev/hda5               Apple_HFS Apple_HFS_Untitled_3  83623936 @ 42205248  ( 39.9G)  HFS
/dev/hda6         Apple_Bootstrap bootstrap               1600 @ 125829184 (800.0k)  NewWorld bootblock
/dev/hda7         Apple_UNIX_SVR2 swap                 1048576 @ 125830784 (512.0M)  Linux swap
/dev/hda8         Apple_UNIX_SVR2 root                10485760 @ 126879360 (  5.0G)  Linux native
/dev/hda9         Apple_UNIX_SVR2 boot                   65536 @ 137365120 ( 32.0M)  Linux native
/dev/hda10             Apple_Free Extra               18870832 @ 137430656 (  9.0G)  Free space

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

/dev/hdc
        #                    type name                length   base    ( size )  system
dump: name /dev/hdc len 8
/dev/hdc1     Apple_partition_map Apple                    2 @ 1       (  1.0k)  Partition map
/dev/hdc2               Apple_HFS CDROM              1246764 @ 16      (608.8M)  HFS

Block size=512, Number of Blocks=1246780
DeviceType=0x1, DeviceId=0x1


The output of mkofboot -v:
Code:
mkofboot: Finding OpenFirmware device path to `/dev/hda6'...
mkofboot: Creating HFS filesystem on /dev/hda6...
mkofboot: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/hda6...
mkofboot: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/hda6...
mkofboot: Installing /etc/yaboot.conf onto /dev/hda6...
mkofboot: Setting attributes on ofboot...
mkofboot: Setting attributes on yaboot...
mkofboot: Setting attributes on yaboot.conf...
mkofboot: Blessing /dev/hda6 with Holy Penguin Pee...
mkofboot: Updating OpenFirmware boot-device variable in nvram...
mkofboot: Installation complete.


My yaboot.conf:
Code:
## yaboot.conf generated by yabootconfig 1.0.7
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot=/dev/hda6
device=hd:
partition=9
root=/dev/hda8
delay=5
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/kernel-2.6.3-benh2
   label=Linux
   read-only
   root=/dev/hda8

macosx=/dev/hda3
enablecdboot


The error generated by yabootconfig -t /mnt/gentoo:
Code:
yabootconfig: Cannot find a kernel, please locate one
Enter path to a kernel image: hpmount: /dev/hda3: This is not a HFS+ volume (Unknown error 4294967295)
hpmount: /dev/hda5: This is not a HFS+ volume (Unknown error 4294967295)


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


I would greatly appreciate any help. Unfortunately I must have a separate /boot partition even though it might be the cause of the trouble.

Best regards
Andreas
Back to top
View user's profile Send private message
barryhawkins
n00b
n00b


Joined: 11 Jan 2004
Posts: 8
Location: Atlanta, GA

PostPosted: Fri Mar 26, 2004 4:33 pm    Post subject: Re: Additional Information Reply with quote

andreas.schreier wrote:

[...]

My partition table as reported by mac-fdisk -l:
[...]
Code:
/dev/hda6         Apple_Bootstrap bootstrap               1600 @ 125829184 (800.0k)  NewWorld bootblock

[...]

My yaboot.conf:
[...]
Code:
device=hd:

[...]

Best regards
Andreas


Andreas,
Try changing
Code:
device=hd:

to
Code:
device=hd:6


This indicates the open firmware path for your boot partition.

Hope that helps,
_________________
--
Barry C. Hawkins
site: www.allthingscomputed.com
weblog: www.yepthatsme.com
Back to top
View user's profile Send private message
andreas.schreier
n00b
n00b


Joined: 25 Mar 2004
Posts: 18

PostPosted: Fri Mar 26, 2004 5:07 pm    Post subject: Still doesn't install Reply with quote

Thanks for your hint. Unfortunately, yaboot still isn't installed and the Powerbook boots straight into Mac OS Panther. :-(
Any idea?

Best regards
Andreas
Back to top
View user's profile Send private message
barryhawkins
n00b
n00b


Joined: 11 Jan 2004
Posts: 8
Location: Atlanta, GA

PostPosted: Fri Mar 26, 2004 8:08 pm    Post subject: One thing to check... Reply with quote

Andreas,
Now that I am at home I have a little more time to look at your info. I am afraid I have bad news. According to what I learned with Debian, you may have to locate your bootstrap partition before any of your other partitions. The bootstrap partition should be at /dev/hda2. You also may need to place your linux partitions before your Mac OS X partition(s).

Here is one link that makes reference to this:
http://people.debian.org/~branden/ibook.html

One other issue I would try to address before changing your partitioning is another potential problem with your /etc/yaboot.conf file. There is apparently a mistake in the entry for partition. Change it to:

Code:
partition=6



On a side note, I forgot to mention that you have to run ybin -v after modifying /etc/yaboot.conf. I am sure you probably did that, but thought I should check.

Regards,
_________________
--
Barry C. Hawkins
site: www.allthingscomputed.com
weblog: www.yepthatsme.com
Back to top
View user's profile Send private message
andreas.schreier
n00b
n00b


Joined: 25 Mar 2004
Posts: 18

PostPosted: Fri Mar 26, 2004 10:41 pm    Post subject: Reply with quote

Hi Barry,

Thank you very much for taking the time! Changing the partition line didn't help either, so I am afraid I will have to re-partition.

Again, thank you very much for your support.

Best regards
Andreas
Back to top
View user's profile Send private message
clar77
Apprentice
Apprentice


Joined: 02 Feb 2004
Posts: 210
Location: Charm City, MD

PostPosted: Fri Mar 26, 2004 11:06 pm    Post subject: Reply with quote

no need to repartition, there's an option in mac-fdisk to change the 'order' of the partitions. So just creat your bootstrap at the end and move it to #2 in the partition list using mac-fdisk, I had the same problem and this worked a charm.

Otherwise I think all should be OK, but you do need that bootstrap partition to appear as #2 in the table.

Chris
Back to top
View user's profile Send private message
andreas.schreier
n00b
n00b


Joined: 25 Mar 2004
Posts: 18

PostPosted: Sat Mar 27, 2004 12:41 pm    Post subject: Reply with quote

Hi Chris,

That solved the problem! Thank you very much for the hint! Without you, I would have repartitioned!

Thanks to everyone who helped me fix this problem!

Best regards
Andreas
Back to top
View user's profile Send private message
clar77
Apprentice
Apprentice


Joined: 02 Feb 2004
Posts: 210
Location: Charm City, MD

PostPosted: Sat Mar 27, 2004 12:45 pm    Post subject: Reply with quote

great ! have fun.
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