Centos 5.5 and custom kernel on Intel 1304

Support for the other architectures (X86_64, IA-64, and PowerPC)
rvega
Posts: 6
Joined: 2012/01/31 17:52:02
Contact:

Centos 5.5 and custom kernel on Intel 1304

Postby rvega » 2012/01/31 21:52:53

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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Centos 5.5 and custom kernel on Intel 1304

Postby pschaff » 2012/01/31 22:39:21

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 CentOS 5.7 Release Notes 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.

rvega
Posts: 6
Joined: 2012/01/31 17:52:02
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby rvega » 2012/01/31 22:58:42

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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby pschaff » 2012/02/02 00:15:28

You still have not said why the custom kernel is required. Have you read the kernel articles and are you familiar with ELRepo?

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

DaemonProgrammr
Posts: 78
Joined: 2011/12/12 12:49:46

Re: Centos 5.5 and custom kernel on Intel 1304

Postby DaemonProgrammr » 2012/02/02 08:40:35

Can you verify that your processor is in fact a 64bit architecture?

Any visible errors during startup?

rvega
Posts: 6
Joined: 2012/01/31 17:52:02
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby rvega » 2012/02/02 19:24:17

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

rvega
Posts: 6
Joined: 2012/01/31 17:52:02
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby rvega » 2012/02/02 19:26:40

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

rvega
Posts: 6
Joined: 2012/01/31 17:52:02
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby rvega » 2012/02/02 20:56:46

Give the little help i found with Google, what you suggest is
exactly what i am looking at now.

thanks

raymundo

rvega
Posts: 6
Joined: 2012/01/31 17:52:02
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby rvega » 2012/02/02 21:23:50

Give the little help i found with Google, what you suggest is
exactly what i am looking at now.

thanks

raymundo

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Centos 5.5 and custom kernel on Intel 1304

Postby pschaff » 2012/02/02 23:01:40

Good luck, and please update the thread with your progress, or ask about any difficulties you encounter.