Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yaboot and upgrade to kernel-2.6.7
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
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Sat Sep 11, 2004 8:22 pm    Post subject: Yaboot and upgrade to kernel-2.6.7 Reply with quote

I've been running the 2.6.2-benh-1 kernel on my graphite iBook G3 very happily for several months now, and I know I should have left well enough alone ...

But recent updates were requiring new kernels, and I downloaded and built one from 2.6.7 vanilla sources. It rolled out fine, and I installed it in the boot partition with the system map and copy of the config.

Then I try to set up yaboot. Yaboot complains, because I'm running the 2.6.2-benh kernel. It doesn't want to play with this kernel. Yaboot refuses to let itself be upgraded because my kernel is too old. Yaboot's ofpath won't tell me the OF device name (so I use the alias and add
Code:
ofboot=hd:2
to my yaboot.conf. This finally allows the boot partition to get blessed, but the system won't boot to any kernels now, skipping the first menu entirely (the one that gives me the option to boot OSX, Linux, or from CD), and goes to the yaboot prompt. It tries to boot the default (benh) kernel, then complains,
Code:
hd:3,vmlinux: Unknown or corrupt filesystem


Can someone give me a hand here? I can't see the forest for the trees.
_________________
~~~~~~~~~~~~~~~~~~~~~
"The GPL is SCO's tar baby." -- Pamela Jones, Groklaw
Back to top
View user's profile Send private message
Lenroc
n00b
n00b


Joined: 03 Sep 2004
Posts: 21

PostPosted: Sat Sep 11, 2004 10:17 pm    Post subject: Re: Yaboot and upgrade to kernel-2.6.7 Reply with quote

slobbit wrote:
recent updates were requiring new kernels, and I downloaded and built one from 2.6.7 vanilla sources.


Careful with your labels there. Vanilla-sources refers to the "official" Kernel.org 2.4 kernel. The 2.6 kernels are development-sources and gentoo-dev-sources. (If I was going to guess what you mean, I'd say you mean "development-sources", but it's definitely not "vanilla-sources" ;))

slobbit wrote:
Then I try to set up yaboot. Yaboot complains, because I'm running the 2.6.2-benh kernel. It doesn't want to play with this kernel.


Yaboot complains? Meaning...? At this point, do you actually mean "yabootconfig" complains, or is this some sort of "complaint" that Yaboot gives you at boot?

slobbit wrote:
It tries to boot the default (benh) kernel, then complains,
Code:
hd:3,vmlinux: Unknown or corrupt filesystem


It would help if you posted your yaboot.conf.

Offhand: Is "vmlinux" the name of your kernel?
Back to top
View user's profile Send private message
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Sat Sep 11, 2004 10:55 pm    Post subject: Re: Yaboot and upgrade to kernel-2.6.7 Reply with quote

Quote:
Careful with your labels there. Vanilla-sources refers to the "official" Kernel.org 2.4 kernel. The 2.6 kernels are development-sources and gentoo-dev-sources.

You're right--I'm getting fried, obviously. 2.6.7 is the source that was emerged.

Quote:
Yaboot complains? Meaning...? At this point, do you actually mean "yabootconfig" complains, or is this some sort of "complaint" that Yaboot gives you at boot?

Sorry again, yabootconfig complains, it wants nothing to do with the 2.6.2 kernel I was running.

Quote:
It would help if you posted your yaboot.conf.

Indeed, it would be really helpful if I could get past the yaboot prompt at this point ...

Quote:
Offhand: Is "vmlinux" the name of your kernel?

Of the 2.6.2-benh kernel, yes. I've tried the other labels (one old kernel, and the new one as well) with the same result.

I'm burning a LiveCD to see if I can get the system mounted, then I might be able to access the yaboot.conf.
_________________
~~~~~~~~~~~~~~~~~~~~~
"The GPL is SCO's tar baby." -- Pamela Jones, Groklaw
Back to top
View user's profile Send private message
Lenroc
n00b
n00b


Joined: 03 Sep 2004
Posts: 21

PostPosted: Sat Sep 11, 2004 11:03 pm    Post subject: Re: Yaboot and upgrade to kernel-2.6.7 Reply with quote

slobbit wrote:

lenroc wrote:
It would help if you posted your yaboot.conf.

Indeed, it would be really helpful if I could get past the yaboot prompt at this point ...
[...]
I'm burning a LiveCD to see if I can get the system mounted, then I might be able to access the yaboot.conf.


I see, sorry. Somewhere along the lines there I missed the fact that you couldn't boot at all! :)

I was stuck like that for a moment the other night too, which was when I was happy that I was using SSH from my other computer to do the install (and keeping a log of the SSH session! ;)). Of course, I already had a LiveCD, so that helped, too ;)
Back to top
View user's profile Send private message
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Sun Sep 12, 2004 12:59 pm    Post subject: Reply with quote

Boot problem solved!
I booted the system with a LiveCD and got the system partition mounted under /mnt/gentoo and chrooted to it.

Apparently I needed more changes to yaboot.conf than I thought, and there was another issue ...

On the second run-through with ybin -v, I noticed the first message (sorry, the one about Penguin Pee always grabs my attention), which said that /proc wasn't mounted, so nvram wasn't updated.

Ah! I exited back to the CD environment, mounted the CD's proc on top of my proc, chrooted again ...

And received an nvram update.

Then, of course, I still get the not found kernels, and that's when I notice it's looking for /kernel-2.6.7, when it probably should be looking for /boot/kernel-2.6.7 ...
:oops:

Fix that little problem (image=/boot/vmlinux), now it starts up, but with the new kernel I get:
Code:
NET: Registered protocol family 1
NET: Registered protocol family 17
EXT2-fs: hda4: couldn't mount because of unsupported optional features (4000000).
Kernel panic: VFS: Unable to mount root fs on hda4


BUT, at least the system is booted now with my oldest kernel--with all sorts of errors because the modules are totally hosed. I'd appreciate any help getting the kernel straightened out.

B
_________________
~~~~~~~~~~~~~~~~~~~~~
"The GPL is SCO's tar baby." -- Pamela Jones, Groklaw
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