Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] install yaboot on ibookG4 can't boot into CD or HD
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
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Mon Dec 12, 2005 10:31 am    Post subject: [SOLVED] install yaboot on ibookG4 can't boot into CD or HD Reply with quote

Installed Gentoo 2005.1 using stage3 + manual kernel compile, I used the classical partition example documented in 2005.1 ppc handbook, which use hda2 for Newworld partition, hda3 for swap, hda4 for root, kernel is at /boot/kernel-2.6.14, after setup yaboot, (run yabootconfig, and didn't tweak generated yaboot.conf) I rebooted the system
then I came to the openfirmware interface, I tried different way to boot into hard drive, livecd and anyother bootable cd,
I tried command like
Code:

0 > boot hd:2,\\:tbxi


yaboot only show the same error
Quote:

loading second stage bootstrap...
Loading ELF

CLAIM failed


and when I try cmds like
Code:

0 > boot cd:,yaboot
0 > boot cd:0,yaboot
0 > boot cd:1,yaboot


I get different errors like
Quote:

can't open device or file

boot cd:0,yaboot DISK-LABEL: LOAD (noninterposed) not supportedload-size=0 adler32=1
LOAD-SIZE is too small

MAC-PARTS: specified partition is not valid can't open cd:1,yaboot
Can't open device or file


when I try
Code:

0 > boot hd:4,yaboot
0 > boot hd:4, /boot/kernel-2.6.14 root=/dev/hda4

I get
Quote:
can't open device or file


Now I am strewed, I can't boot into harddrive, can't boot into any CDs, my ibook is like a cold stone! maybe I can only use it as monitor stand ...


Last edited by onsight on Wed Dec 21, 2005 6:04 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 Dec 12, 2005 1:03 pm    Post subject: Reply with quote

Try:

Code:
boot cd:,\\yaboot

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


Joined: 10 Mar 2005
Posts: 9

PostPosted: Mon Dec 12, 2005 8:03 pm    Post subject: Reply with quote

i get
Quote:
load-size=24830 adler32=ad6b4eba
Loading ELF

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


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 12, 2005 8:16 pm    Post subject: Reply with quote

Try resetting your OpenFirmware settings like this:

1. Start in open firmware (Apple + Option + O + F)
2. At the OF prompt:
Code:
reset-nvram
reset-all

3. The machine should reboot, hopefully restoring the OF settings. That said, I don't know what you did to it to get into this situation.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Mon Dec 12, 2005 8:49 pm    Post subject: Reply with quote

I've done reset--all and reset-nvram, doesn't help at all :(
Back to top
View user's profile Send private message
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Mon Dec 12, 2005 8:54 pm    Post subject: Reply with quote

when the ibook first boot into yaboot, I get error message like this
Code:

gunzipping (0x00010000 <- 0x00806c88:0x009fb703)...
Invalid memory access at %SRR0: 00805a24 %SRR1: 00003030


followed by the normal openfirmware welcome message

and I did printenv in openfirmware, should i type in all of them here? which variable is important for my problem?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Dec 13, 2005 2:43 am    Post subject: Reply with quote

That looks like you used the wrong CPU type to compile your kernel. I'm not sure why you can't boot from CD though, have you tried an OSX/OS9 CD?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Tue Dec 13, 2005 8:32 am    Post subject: Reply with quote

could be, I didn't check carefully during menuconfig, guess I am using the default type in [2005.1 ppc minimal cd] for processor, which may not be correct on my G4. :(

I tried MacOSX 10.3 installcd 1, didn't boot neither
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Dec 15, 2005 3:59 am    Post subject: Reply with quote

Okay, can you give us a list of your OF variables? How did you try to boot the CD?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Tue Dec 20, 2005 8:54 am    Post subject: Reply with quote

sorry, JoseJX, I went on a trip last few days, don't have the ibook with me,
here's the printenv

http://bbs.psucfa.org/attachments/forumid_13/printenv_MbvD4z9DRc6d.gif

I tried booting into OSX cd1 by press Option key during booting, and I got the UI for choosing booting media, it shows one linux bootable hd and a OSX bootable cd, but both of them are not working, the screen flashed with a log said

loading second stage bootstrap...

and came back to the same UI for choosing booting media, and both hd and cd are still avaliable,
the same happens for gentoo minimal-cd-ppc 2005.1, too
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 21, 2005 2:51 am    Post subject: Reply with quote

The boot-device variable looks wrong. :p

For instance, on my PowerBook, the variable is set to:
Code:
/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:2,\\:tbxi


What you should do is check through your device tree and find the correct path to your disk and see if correcting that helps.

When booting the CD, instead of holding down option, try holding down the C key instead.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Wed Dec 21, 2005 6:01 am    Post subject: Reply with quote

You are a genius! here's what I did
first, I
Code:

dev /
ls

to locate the hard drive device
and I
Code:

setenv boot-device XXXX

where XXXX is my correct hard disk path

then I did
Code:

reset-all

to write to flashmem and restart, I boot into gentoo cd right away!

need to recompile kernel to test hard drive boot later, but at least Openfirmare went back to normal again.
my take is before this, the wrong boot-device variable set by (yabootconfig???) pointed direct to yaboot booting program which were freaked out by wrong linux kernel.
but this didn't answer why CD was not booting.


Last edited by onsight on Wed Dec 21, 2005 6:10 am; edited 3 times in total
Back to top
View user's profile Send private message
onsight
n00b
n00b


Joined: 10 Mar 2005
Posts: 9

PostPosted: Wed Dec 21, 2005 6:06 am    Post subject: Reply with quote

b.t.w.
good Openfirmware FAQ here
http://www.netbsd.org/Ports/macppc/faq.html#ofw-claim-failed
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 21, 2005 5:14 pm    Post subject: Reply with quote

That FAQ on CLAIM FAILED is relevant only for old-world machines (pre version 3.0 Open Firmware). If you change your load-base on a new-world mac, you're going to have lots of problems.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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