Installation and booting of kernel-2.6.21.1 results in a kernel panic

General support questions including new installations
Post Reply
beastie
Posts: 5
Joined: 2007/05/21 22:55:34
Location: GER

Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by beastie » 2007/05/21 23:46:34

I installed the newest kernel (from kernel.org) on my HP nx6325 notebook, because I want to take advantage of the ACPI-features. Everything went fine, but when I rebooted the new kernel caused a kernel panic.
Messages:
[quote]
Unable to access resume device (LABEL=SWAP-sda2)
mount: could not find filesystem ?/dev/root?
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
[/quote]

I compiled the kernel on Virtualbox(which is a virtual PC) and installed it, and everything worked out-of-the-box.

There could be a problem with the initrd, perhaps a driver which should be included in the initrd, but I don't know which driver.
The the original initrd-2.6.18.el5.img works without any problems.

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by Lenard » 2007/05/22 11:38:23

Looks like you forgot something, like building into the kernel ext3 support. Try again, this time;

make mrproper
make oldconfig
make menuconfig
make rpm

Install the resulting built binary kernel rpm package(s).

beastie
Posts: 5
Joined: 2007/05/21 22:55:34
Location: GER

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by beastie » 2007/05/22 22:58:46

I tried your suggested solution, but it still doesn't work. I also experimented with my desktop computer, which has got an IDE-Harddisk(My notebook has got an Serial-ATA Harddisk). I got no problems to get the new vanilla-kernel working.

Are there any options I have to pass to "mkinitrd"? Or do I have to apply special patches to the kernel? Because the original initrd and kernel from the CentOS-Team worked without any problems.

beastie
Posts: 5
Joined: 2007/05/21 22:55:34
Location: GER

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by beastie » 2007/05/23 01:10:23

[b][size=180]UPDATE[/size][/b]

Now, everything works! I got the final hint from a german debian-forum
I had to reactivate the Serial-ATA and PATA passage in the kernel-config. It was marked as "experimental", and so I didn't thought I should activate it.

> http://www.debianforum.de/forum/viewtopic.php?p=494554

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by Lenard » 2007/05/23 01:46:54

Try building the vanilla kernel using the kernel config file from here: http://nowawes.unas.cz/brb/kernel-config

This a config file for x86_64 you may have to adjust the CPU depending on which CentOS5 version is installed.

This is where I got the link for the kernel-config file, please review it looks like any vanilla kernel 2.6.20 or better should work just fine. maybe you can ask the author for a current kernel config file to use;

http://gentoo-wiki.com/HARDWARE_Gentoo_on_HP_Compaq_nx6325

NedSlider
Forum Moderator
Posts: 2895
Joined: 2005/10/28 13:11:50
Location: UK

Installation and booting of kernel-2.6.21.1 results in a ker

Post by NedSlider » 2007/09/02 16:28:17

[quote]
beastie wrote:
[b][size=180]UPDATE[/size][/b]

Now, everything works! I got the final hint from a german debian-forum
I had to reactivate the Serial-ATA and PATA passage in the kernel-config. It was marked as "experimental", and so I didn't thought I should activate it.

> http://www.debianforum.de/forum/viewtopic.php?p=494554[/quote]

Thanks for the hint - I just fell foul of the exact same thing building vanilla 2.6.22.6 using the standard .config file from CentOS 5. This is a NEW section in the kernel config (since 2.6.18 used by CentOS 5) and hence _needs_ configuring.

Oh, one other thing - irqbalancing now segfaults at bootup with my new kernel. Any idea's anyone where I should be checking in the config and if I really need irqbalancing running (this is a Quad core running x86-64).

Thanks

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by Lenard » 2007/09/02 19:56:51

Look in the "IO Schedulers", "Processor type and features" and "CPU Frequency scaling" sections, personally I prefer the CFQ IO scheduler.

NedSlider
Forum Moderator
Posts: 2895
Joined: 2005/10/28 13:11:50
Location: UK

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by NedSlider » 2007/09/02 20:13:18

[quote]
Lenard wrote:
Look in the "IO Schedulers", "Processor type and features" and "CPU Frequency scaling" sections, personally I prefer the CFQ IO scheduler.[/quote]

Thank you for the pointers Lenard - it's been a LONG time since I compiled my own kernel (2.4.x I think).

I've now grabbed a copy of the latest 2.6.22.5-71.fc7 kernel config file and figured I'd use that as my starting point - probably better than the RH/CentOS 2.6.18 config??

Anyway, I'm delighted to say that at least lm_sensors is working with my new kernel, and the coretemp sensors built into 2.6.22 is great - just what I was hoping for!

I'll have another go at building again later with the updated config from FC7 that looks a closer starting match to my 2.6.22.6 vanilla source.

glitterpowder
Posts: 4
Joined: 2007/09/03 02:43:36
Contact:

Re: Installation and booting of kernel-2.6.21.1 results in a kernel panic

Post by glitterpowder » 2007/09/03 03:09:21

http://nowawes.unas.cz/brb/kernel-config











My signature:glitter-powder

Post Reply

Return to “CentOS 5 - General Support”