Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get yaboot to dual boot my machine [SOLVED]
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
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Sat Jan 07, 2006 1:33 pm    Post subject: Can't get yaboot to dual boot my machine [SOLVED] Reply with quote

I know this comes up a lot and there's info on the forum already, but I still can't boot OS X with yaboot. Booting to Linux, CD and OpenFirmwire are all fine. Also, I haven't been able to boot OS X from OpenFirmware either. Any advice appreciated.

yaboot.conf
Code:

#boot=/dev/hda10
boot=/dev/hda2
#ofboot=hd:10
ofboot=hd:2
#device=/pci@f4000000/ata-6@d/disk@0:
#device=/dev/hda
device=hd:
defaultos=macosx
timeout=300
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.12
        label=Gentoo 2.6.12r6
        root=/dev/hda12
        partition=12
        read-only

#macosx=/dev/hda9
macosx=hda:3
enablecdboot
enableofboot


mac-fdisk output
Code:

/dev/hda
        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap               1600 @ 119231968 (800.0k)  NewWorld bootblock
/dev/hda3               Apple_HFS Jaguar             119230144 @ 1824      ( 56.9G)  HFS
/dev/hda4          Apple_Driver43 Macintosh                 56 @ 64        ( 28.0k)  Driver 4.3
/dev/hda5          Apple_Driver43 Macintosh                 56 @ 120       ( 28.0k)  Driver 4.3
/dev/hda6        Apple_Driver_ATA Macintosh                 56 @ 176       ( 28.0k)  Unknown
/dev/hda7        Apple_Driver_ATA Macintosh                 56 @ 232       ( 28.0k)  Unknown
/dev/hda8          Apple_FWDriver Macintosh                512 @ 288       (256.0k)  Unknown
/dev/hda9      Apple_Driver_IOKit Macintosh                512 @ 800       (256.0k)  Unknown
/dev/hda10          Apple_Patches Patch Partition          512 @ 1312      (256.0k)  Unknown
/dev/hda11        Apple_UNIX_SVR2 swap                 1048576 @ 119233568 (512.0M)  Linux swap
/dev/hda12        Apple_UNIX_SVR2 root                10748640 @ 120282144 (  5.1G)  Linux native
/dev/hda13              Apple_HFS Backup              29805688 @ 131030784 ( 14.2G)  HFS
/dev/hda14             Apple_Free                            8 @ 160836472 (  4.0k)  Free space

Block size=512, Number of Blocks=160836480
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff


fstab
Code:

/dev/hda12              /               reiserfs        noatime         0 1
/dev/hda11              none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto,user     0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
none                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
/dev/hdc                /media/cdrecorder       auto    user,exec,noauto,managed 0 0


Last edited by grazie on Sun Jan 08, 2006 7:54 am; 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 Jan 07, 2006 4:25 pm    Post subject: Reply with quote

Try this:
Code:

boot=/dev/hda2
macosx=/dev/hda3
enablecdboot
enableofboot
defaultos=macosx
ofboot=hd:2
device=hd:
timeout=300
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.12
        label=Gentoo 2.6.12r6
        root=/dev/hda12
        partition=12
        read-only


The macosx path is given as a linux device.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Sat Jan 07, 2006 5:37 pm    Post subject: Reply with quote

Thanks for that Jose, but that was my original set up as per the installation instructions. ybin gave errors so had to change to OF format and I at least got blessed.

I haven't looked at how yaboot works yet, but I'm guessing a lot of what it does is correctly setting up OF environment variables. The bootstrap partition appears to be functioning correctly so maybe it's just something in OF that's not quite right. Can anyone tell me what should be set up?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jan 07, 2006 5:40 pm    Post subject: Reply with quote

It would be helpful if you could give us the ybin error.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Sat Jan 07, 2006 8:41 pm    Post subject: Reply with quote

The ybin error(s) if I use a Linux path for macosx are

Code:

ybin: Finding OpenFirmware device path to `/dev/hda3'...
ofpath: Unable to determine sysfs mountpoint
ybin: Unable to determine OpenFirmware path for macosx=/dev/hda3
ybin: Try specifying the real OpenFirmware path for macosx=/dev/hda3 in /etc/yaboot.conf
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jan 07, 2006 10:46 pm    Post subject: Reply with quote

You don't have /sys mounted. Mount sysfs to /sys first, then try again.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Sat Jan 07, 2006 11:15 pm    Post subject: Reply with quote

I thought sysfs would be mounted already, but I'll mount it again as you suggest. I got an error stating that /sys was busy or already mounted (what I expected). I then ran ybin again and IT WORKED!? Really confused - but thanks.
Back to top
View user's profile Send private message
holochip
n00b
n00b


Joined: 02 Feb 2005
Posts: 5

PostPosted: Mon Jan 09, 2006 8:16 pm    Post subject: sysfs Reply with quote

hi, i have a problem. i have the same problem OFPATH: Unable to deterimine sysfs ... i mount my /sys with mount --bind /sys/ /mnt/gentoo/sys but it does not work... please help .. i have powerbook 12" G4 - ofpath works fine when i am in not chrooted enviroment after chroot it doesnt work... i am PPC gentoo nooob ;) sorry 4 my english ..
Back to top
View user's profile Send private message
grazie
n00b
n00b


Joined: 14 Nov 2005
Posts: 61

PostPosted: Mon Jan 09, 2006 8:36 pm    Post subject: Reply with quote

Mount command you need
Code:
mount -t sysfs sysfs /sys

To check whether sysfs is mounted
Code:
cat /etc/mtab | grep -i sysfs
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