Page 1 of 2

Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/01/31 21:52:53
by rvega
Hi all,

I am trying to compile a custom kernel (2.6.31.2) on an intel server 1304 with
Centos 5.5, uname -a:
Linux new-1U 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

I tried first in same centos only the x86_32 with PAE enabled and works fine,
but system does not boot when 2.6.31.2 kernel is compiled in 64 bit.
I am using same config file both cases with obvious change in CPU architecture.
At boot time, system halts on different places, sometimes there is a panic in init,
or it may stop after the login prompt with a some message related to APIC, etc.

HArdware is same, except for HD and i doubt it has anything to do with it, it boots
fine the default CentOS kernel.

If anyone has any pointers, i am glad to hear them.

thanks in advance

raymundo

Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/01/31 22:39:21
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Don't use obsolete/unsupported releases - 5.7 is the current release. See the [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.7]CentOS 5.7 Release Notes[/url] for details. By not updating you are implicitly accepting that you will live with numerous bugs and security issues (and associated known exploits) that have subsequently been fixed.

You can't run a 64-bit kernel on a 32-bit system. If you explained the reason you are trying to build a custom kernel we might be able to address the root issue.

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/01/31 22:58:42
by rvega
looks like i am not clear, sorry about that.

I installed first x86_32 PAE in the system, compiled/installed the custom
modules/kernel in 32bit (with PAE enabled too) and works fine.

Then removed HD. In a new HD, i installed CentOS x86_64, then copied same
kernel, configured it to 64 bit, compiled/installed modules/kernel and this is
the one that does not boot.

In both cases only kernel is different, everything else is same OS.

raymundo

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 00:15:28
by pschaff
You still have not said why the custom kernel is required. Have you read the [url=http://wiki.centos.org/?action=fullsearch&context=180&value=kernel&titlesearch=Titles]kernel articles[/url] and are you familiar with [url=http://elrepo.org/]ELRepo[/url]?

If you re-installed the OS why not use the current supported version with the best in bug-fixes and security enhancements?

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 08:40:35
by DaemonProgrammr
Can you verify that your processor is in fact a 64bit architecture?

Any visible errors during startup?

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 19:24:17
by rvega
What we are looking for is not in the standard Linux kernels, some time ago this company
modified a Linux kernel to do fast packet switching, at the time the stable kernel was 2.6.31.2
we have been using it in 32 bit (with/without PAE) mode and there were no reason to try 64 bit.

Now we want to compare systems running in 32 and 64 bit.

raymundo

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 19:26:40
by rvega
Yes CPU is 64 bit, uname -a:

Linux new-1U 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 17:25:58 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 20:56:46
by rvega
Give the little help i found with Google, what you suggest is
exactly what i am looking at now.

thanks

raymundo

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 21:23:50
by rvega
Give the little help i found with Google, what you suggest is
exactly what i am looking at now.

thanks

raymundo

Re: Centos 5.5 and custom kernel on Intel 1304

Posted: 2012/02/02 23:01:40
by pschaff
Good luck, and please update the thread with your progress, or ask about any difficulties you encounter.