Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
adding macosx to yaboot troubles. [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
faet
n00b
n00b


Joined: 19 Mar 2006
Posts: 17

PostPosted: Sun Mar 19, 2006 10:23 pm    Post subject: adding macosx to yaboot troubles. [solved] Reply with quote

Powerbook G4 12"

trying to get yaboot to work, ran the config, got:
Quote:
Warning: `nvsetenv' could not be found, nvram will not be updated

which i read about somewhere, someone said "That warning is no problem." .. anyway, tried to mkofboot -v, worked fine with only gentoo specified, and ofboot=hd:2 set.
so i went back to the config to try and add
macosx=/dev/hda4

then tried to update w/ ybin -v and got
Code:
ybin: finding OpenFirmware device path to `/dev/hda4'...
ofpath: unable to determine sysfs mountpoint
ybin: unable to determine OpenFirmware path for macosx=/dev/hda4
ybin: try specifying the real OpenFirmware path for macosx=/dev/hda4 in /etc/yaboot.conf


so i tried
Code:
mount -t sysfs none /sys

which was recommended in another post by someone with same error.
Quote:
To check whether sysfs is mounted
Code:
cat /etc/mtab | grep -i sysfs

and i got
Code:
none /sys sysfs rw 0 0


tried to use ybin -v, same thing :|

my yaboot.conf
Code:
boot=/dev/hda2
ofboot=hd:2
device=/pci@f4000000/ata-6@d/disk@0:
partition=7
root=/dev/hda7
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.15-gentoo-r1
            label=Gentoo 2.6.15r1
            read-only

macosx=/dev/hda4

enablecdboot
enableofboot



mac-fdisk partition tables:
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 @ 78019704   (800.0k)  NewWorld bootblock
/dev/hda2         Apple_Free                           262144 @ 64         (128.0M)  Free space
/dev/hda4         Apple_HFS Apple_HFS_Untitled_1       757496 @ 262208     ( 37.1G)  HFS
/dev/hda5         Apple_UNIX_SVR2 boot                 204800 @ 78021304   (  100M)  Linux native
/dev/hda6         Apple_UNIX_SVR2 swap                 512000 @ 78226104   (  250M)  Linux swap
/dev/hda7         Apple_UNIX_SVR2 root               77563384 @ 78738104   ( 37.0G)  Linux native


Last edited by faet on Tue Mar 21, 2006 2:34 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: Mon Mar 20, 2006 12:00 am    Post subject: Reply with quote

Try using ofpath manually and then using the path it provides instead of macosx=/dev/hd4.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
faet
n00b
n00b


Joined: 19 Mar 2006
Posts: 17

PostPosted: Mon Mar 20, 2006 2:35 am    Post subject: Reply with quote

starts up yaboot
and i get

Code:
boot: Linux
Please wait, loading kernel...
/pci@f4000000/ata-6@d/disk@0;2, /boot/kernel-2.6.15-gentoo-r1: Unknown or corrupt filesystem


Label was changed to Linux, and redid ybin -v
also took out
macosx=/dev/hda4

enablecdboot
enableofboot
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 20, 2006 7:03 am    Post subject: Reply with quote

What did you replace? This is what I meant for you to do:
Code:

boot=/dev/hda2
ofboot=hd:2
device=/pci@f4000000/ata-6@d/disk@0:
partition=7
root=/dev/hda7
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.15-gentoo-r1
            label=Gentoo 2.6.15r1
            read-only

macosx=*ofpath output goes here*

enablecdboot
enableofboot

_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
faet
n00b
n00b


Joined: 19 Mar 2006
Posts: 17

PostPosted: Mon Mar 20, 2006 7:34 am    Post subject: Reply with quote

that is what i did, but i got another error. and it seems like even if i have yaboot, i can still press and hold option at startup and choose what my boot method will be. so it seems like it would be easier to just get linux running with yaboot, instead of macosx + linux w/ yaboot. currently i can run osx from that option, and yaboot.. but i get error (the one above) with the linux install. the ofpath was just the same as the output for 'device"+4

currently it is:
Code:
boot=/dev/hda2
device=/pci@f4000000/ata-6@d/disk@0:
ofboot=hd:2
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.15-gentoo-r1
            label=Linux
            partition=7
            root=/dev/hda7
            read-only

Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 20, 2006 7:39 am    Post subject: Reply with quote

Try changing device to hd:
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
faet
n00b
n00b


Joined: 19 Mar 2006
Posts: 17

PostPosted: Mon Mar 20, 2006 7:56 am    Post subject: Reply with quote

pretty much the same thing...
Code:
boot: Linux
Please wait, loading kernel...
hd:2, /boot/kernel-2.6.15-gentoo-r1: Unknown or corrupt filesystem
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 20, 2006 8:22 am    Post subject: Reply with quote

Is your root on XFS?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
faet
n00b
n00b


Joined: 19 Mar 2006
Posts: 17

PostPosted: Mon Mar 20, 2006 8:29 am    Post subject: Reply with quote

root is on reiserfs
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 20, 2006 8:41 am    Post subject: Reply with quote

Erk. I missed that you used a different partition for /boot (not really needed or recommended). What is that partition's filesystem?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
faet
n00b
n00b


Joined: 19 Mar 2006
Posts: 17

PostPosted: Mon Mar 20, 2006 6:49 pm    Post subject: Reply with quote

ext2.. for boot


edit:
k, deleted the boot partition, just have swap/root. (the size isnt exact but thats the general layout)
root is ext3.

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 @ 78019704   (800.0k)  NewWorld bootblock
/dev/hda2         Apple_Free                           262144 @ 64         (128.0M)  Free space
/dev/hda4         Apple_HFS Apple_HFS_Untitled_1       757496 @ 262208     ( 37.1G)  HFS
/dev/hda5         Apple_UNIX_SVR2 swap                 512000 @ 78226104   (  250M)  Linux swap
/dev/hda6         Apple_UNIX_SVR2 root               77563384 @ 78738104   ( 37.0G)  Linux native


and now im getting
boot: linux
please wait, loading kernel...
lef32 kernel loaded...
chrpboot starting: loaded at 0x0000000
OF version = 'openfirmware 3'
gunzipping (0x00010000 <- 0x00806996:0x099f96b2)...
Invalid memory access at SRR0: 00805c54 SRR1: 00003030

so ill start trying to figure that out.


edit2: i think i got it.....

edit3: aight i got it, part of the problem was copied the kernel twice :| ibm/apple + pegasis directions oops. anyway thanks for help :D
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