| View previous topic :: View next topic |
| Author |
Message |
faet n00b

Joined: 19 Mar 2006 Posts: 17
|
Posted: Sun Mar 19, 2006 5:23 pm Post subject: adding macosx to yaboot troubles. [solved] |
|
|
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 Mon Mar 20, 2006 9:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
|
| Back to top |
|
 |
faet n00b

Joined: 19 Mar 2006 Posts: 17
|
Posted: Sun Mar 19, 2006 9:35 pm Post subject: |
|
|
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 |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Mon Mar 20, 2006 2:03 am Post subject: |
|
|
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 |
|
 |
faet n00b

Joined: 19 Mar 2006 Posts: 17
|
Posted: Mon Mar 20, 2006 2:34 am Post subject: |
|
|
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 |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
|
| Back to top |
|
 |
faet n00b

Joined: 19 Mar 2006 Posts: 17
|
Posted: Mon Mar 20, 2006 2:56 am Post subject: |
|
|
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 |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
|
| Back to top |
|
 |
faet n00b

Joined: 19 Mar 2006 Posts: 17
|
Posted: Mon Mar 20, 2006 3:29 am Post subject: |
|
|
| root is on reiserfs |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2620
|
Posted: Mon Mar 20, 2006 3:41 am Post subject: |
|
|
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 |
|
 |
faet n00b

Joined: 19 Mar 2006 Posts: 17
|
Posted: Mon Mar 20, 2006 1:49 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|