Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does the 2.6.x kernel series actually work?
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
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 7:48 pm    Post subject: Does the 2.6.x kernel series actually work? Reply with quote

I very stupidly upgraded a perfectly okay, working system to the 2.6 kernel because portage told me I should...

Now my system has been disabled for several days...

Does the 2.6.x kernel series actually work on PPC?

How can I recover my system?

Seriously... I am stuck here...
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 7:54 pm    Post subject: Reply with quote

I can't believe I'm the only one having this problem. I've been using Gentoo/PPC for over a year now. But this upgrade has ruined my system. I don't know how to recover from it.
Back to top
View user's profile Send private message
aguettinger
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 84

PostPosted: Thu Sep 16, 2004 8:14 pm    Post subject: Reply with quote

I use gentoo-dev-sources kernel 2.6.7-r14 on my Sawtooth G4 PoweMac without any problems.

regards
Andy
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 8:56 pm    Post subject: Reply with quote

That's great, really...

But it isn't working at all on mine. My machine simply will not boot. All I want right now is to revert to an older version of Gentoo that I know will work... but I don't see anything older than 2004.0.

I had been using 1.4-rc1 with NO PROBLEMS WHATSOEVER. The 2.6.x kernel broke it!
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Sep 16, 2004 9:20 pm    Post subject: Reply with quote

Well it kind of work and for me strangely.
I have an iMac G4. I am currently using 2.6.7-r14.
I had and still have a few issues with it.
First I didn't have a console, after selecting the kernel
in yaboot I got some hardware message and nothing
happened for about a minute may be a little bit more.
Then kdm appeared out of nowhere. I didn't have a
console! Ctrl+Alt+F1 didn't go anywhere.

I have the rivafb framebuffer included in my kernel, in
an attempt to get a console I also included the dreaded
(to me at least) OpenFirmware framebuffer it did work
in that I now have a console at boot and at shutdown.
Ctrl+Alt+F1 to F6 to go from X to the console however
lock my computer hard. I got a murky screen and I cannot
even ssh into it. Very annoying, I was going to post
something about it before I saw your post.

For all that is worth I also have the vgafb driver included
and when I added the OpenFirmwarefb I also enabled
the preemption in the kernel (it takes a longer time to log
in but once you are it is indeed more snappy in my opinion).
And I never enabled the bootsplash screen.

Of course I also have an x86 machine that doesn't have
any of this trouble.

Cheers,
Francois
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 9:38 pm    Post subject: Reply with quote

I don't think the devs appreciate just how serious this is. I CAN'T DOWNGRADE TO 2.4! The 2.4 kernel ebuilds have been deliberately crippled so that if you try to emerge them, portage gives you an error message saying you have to use 2.6!
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Sep 16, 2004 10:09 pm    Post subject: Reply with quote

There are several thing to take into consideration here.
You can't build a 2.4 kernel with a version of gcc superior
or equal to gcc3.3 so staying with 2.4 means you have to
keep an old gcc around. I did go without upgrading from
2.4.26 to 2.4.26-rxx for that reason (More accuratly the
kernel will compile and work modules will not, and after
one my regular emerge -e world sound stopped working
because alsa-driver had been recompiled).
So maintenance wise the situation with 2.4 was nightmarish.
And therefore they have been dropped.

Now have you tried to compile a 2.6 kernel with genkernel?
You can boot a live cd, like 2004.2, with a kernel 2.6 right?
It might just get you a working kernel, you just have to be
carefull if like me you use reiserfs or something instead of
ext2/3.
And from my experience the kernel 2.6 take a while to boot,
especially when you don't have any idea of the progress made
because you don't have a console :evil: .

Can you detail a bit when you say your machine don't boot at all,
do you get to yaboot? Is it locking or not doing anything after
you have selected your kernel or do you have any message at all.
Back to top
View user's profile Send private message
ralph
Advocate
Advocate


Joined: 02 Mar 2003
Posts: 2001
Location: Hamburg

PostPosted: Thu Sep 16, 2004 10:23 pm    Post subject: Reply with quote

Did you try a config from http://ppcconfdb.sourceforge.net/?id=conf ?
_________________
The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa
Back to top
View user's profile Send private message
aguettinger
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 84

PostPosted: Thu Sep 16, 2004 10:52 pm    Post subject: Reply with quote

I don't know if this helps, but here is my config:

http://home.datacomm.ch/aguettinger/files/kernel.config

It can be optimized I know, and I have to turn off some event debugging stuff, but on my PowerMac it works.

regards
Andy
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Sep 16, 2004 10:52 pm    Post subject: Reply with quote

I did reread your other thread about yaboot.conf . If you used
the stuff from /proc/conf.gz to compile your kernel, you should
have, unless I am very mistaken, a kernel nearly identical to a
genkernel. In this case you need to do several things and I am
afraid the ppc documentation may be a bit stall about this.
You need to make an initrd image and install it. I am not quite
sure how you go about making the initrd image but the genkernel
utility should make one for you. You will need to add a line in
yaboot.conf about it:
initrd=/boot/initrd
(I picked up that one in the thread on bootsplash)

Go here http://www.gentoo.org/doc/en/genkernel.xml for
more info on using genkernel, it is available for ppc.
You should also emerge hotplug as well and add it to your default
runlevel rc-update add hotplug default (I am not entirely sure that
it is needed anymore the doc may be slightly outdated there).

Hope you can get something out of it.
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Thu Sep 16, 2004 10:54 pm    Post subject: What kind of computer is it? Reply with quote

What kind of computer is it? I'm running 2.6.8 just fine. 2.6.7 ran just great too. You probably just missed an item or two in your kernel's config or something like that.

~Michael
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 10:56 pm    Post subject: Reply with quote

fb wrote:
Now have you tried to compile a 2.6 kernel with genkernel?


Yes. Genkernel gives me tons of errors. I don't think this is a cool I can rely on...

fb wrote:
You can boot a live cd, like 2004.2, with a kernel 2.6 right?
It might just get you a working kernel


I don't know where to get 2004.2. 2004.1 boots, yes, and maybe I'll try just copying that kernel into my /boot directory.

fb wrote:

Can you detail a bit when you say your machine don't boot at all,
do you get to yaboot? Is it locking or not doing anything after
you have selected your kernel or do you have any message at all.


It doesn't even get to the boot prompt. My screen flashes several times and then I get a message saying "Loading second stage bootstrap..." - and there it hangs forever. I don't know what this means.

Also, when I try to run ybin -v from within the kernel supplied on the 2004.1 LiveCD, I get a warning that my kernel is too old, the path might not be correct.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Sep 16, 2004 11:03 pm    Post subject: Reply with quote

I think 2004.1 is working with a 2.4 kernel. Sticking that config
straight as the configuration for a 2.6 kernel may not work,
you probably will have to fiddle with it. But I am also quite
positive now that your message may be due to a lack of initrd
image, a developper may be abble to answer that question
in a definite way, but I have a feeling they may be holydaying a bit.
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 11:04 pm    Post subject: Re: What kind of computer is it? Reply with quote

servobf wrote:
What kind of computer is it? I'm running 2.6.8 just fine. 2.6.7 ran just great too.


I'm using a G4 QuickSilver-2002. 2.4.x ran great. The LiveCD 2004.1 kernel runs great. But I can't get it to boot. I don't know whether my yaboot.conf is to blame, or the kernel, or both.
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 11:05 pm    Post subject: Reply with quote

fb wrote:
I think 2004.1 is working with a 2.4 kernel.


Nope, it's 2.6.5.
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 11:43 pm    Post subject: Reply with quote

Just now I tried recompiling the kernel and the initrd. Then I added this to my yaboot.conf:

append="video=ofonly root=/dev/ram0 real_root=/dev/hda10 init=/boot/initrd-2.6.7-gentoo-r14"

I still get the same error. The system hangs at "Loading second stage bootstrap..." forever.
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Thu Sep 16, 2004 11:56 pm    Post subject: Reply with quote

Also, I tried putting the root= and init= arguments outside the append= argument (init -> initrd), but that didn't work either. Same error. Same hanging at the "Loading second stage bootstrap..." message.
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Fri Sep 17, 2004 12:22 am    Post subject: Reply with quote

ralph wrote:
Did you try a config from http://ppcconfdb.sourceforge.net/?id=conf ?


Those don't apply to my system, which is a QuickSilver 2002 G4.
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Fri Sep 17, 2004 1:26 am    Post subject: Reply with quote

Maybe your yaboot is wrong.
Can you post your partition table, and your yaboo.conf (the one you use from the liveCD)

Thanks

~Michael
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Fri Sep 17, 2004 1:38 am    Post subject: Reply with quote

servobf wrote:
Maybe your yaboot is wrong.
Can you post your partition table, and your yaboo.conf (the one you use from the liveCD)


I'm not using the LiveCD yaboot.conf. I'm using my own.

I'd rather not type in my partition table (I am using a crippled system with no GUI and therefore no possibility of cutting/pasting) but I can assure you that I am doing the right thing with the partition table. I have been using Gentoo/PPC for over a year, and everything's been going great until this "upgrade".

To summarize: /dev/hda9 is my boot, /dev/hda10 is root, /dev/hda11 is home, /dev/hda12 is swap. hda10 and hda11 are 19G, hda9 is 800K, hda12 is 139M.

yaboot.conf:

Code:

boot=/dev/hda9
root=/dev/hda10
device=ultra2:
partition=10
delay=10
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.7-gentoo-r14
     label=Linux
     readonly
     append="video=ofonly"
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Fri Sep 17, 2004 3:00 am    Post subject: Reply with quote

I'm guessing you really meant ultra2, and that you compiled scsi support into the kernel (not as a module?)

ultra2 is scsi, right?

~Michael
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Fri Sep 17, 2004 6:13 am    Post subject: Reply with quote

servobf wrote:
I'm guessing you really meant ultra2, and that you compiled scsi support into the kernel (not as a module?)


I've tried it with "hd:" and "ultra2:", neither of which work. The reason I tried "ultra2:" is I was getting this worrisome error message upon typing ybin -v:

WARNING: Your kernel is too old for proper support, path may be inaccurate.

So I tried ofpath /dev/hda and it said "ultra2:". So I've been using that. BTW, neither ultra2: nor hd: make any difference in the ability to boot, which is to say that the system doesn't boot in either case.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Fri Sep 17, 2004 6:15 am    Post subject: Reply with quote

Here are a few ideas you could try:

1. Judging from the error message, this is a yaboot problem. Try getting the newest yaboot from http://penguinppc.org/projects/yaboot/ which is currently 1.3.13 and is not in portage yet.

2. Try formatting your bootstrap partition and then reinstall yaboot on it.

3. If all you did was just upgrade your kernel you can always grab your old one at kernel.org and recompile. I would recommend always leaving at least one known working kernel setup in /boot so you don't always have to take out a LiveCD.

The only reasons why you might not be able to downgrade to 2.4 are if you have 2.6 headers installed (linux26-headers) and/or are using NTPL and/or gcc >= 3.3. Remember, you don't really need portage to install a kernel - I usually build my custom ones without using portage at all.
Back to top
View user's profile Send private message
turning
n00b
n00b


Joined: 14 Sep 2004
Posts: 33

PostPosted: Fri Sep 17, 2004 6:23 am    Post subject: Reply with quote

I fixed it. I found out that the real problem is not ybin, or yaboot, or the kernel - it is ofpath. ofpath doesn't work under 2.6.x kernels. So you have to specify the ofpath in yaboot.conf.

(THIS SHOULD DEFINITELY BE IN THE PPC MANUAL.)

I put the line "ofpath=hd:9" in my yaboot.conf, used ybin, and rebooted to a working system. Phew.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Sep 17, 2004 6:35 am    Post subject: Reply with quote

You should file a bug for the documentation then. May
be with a link to this thread just to show how much
havoc it brought. I suspect there may be a few other
thread where they would wish to know that.
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