Kernel compilation on CentOS

General support questions
b24warbaby
Posts: 3
Joined: 2017/10/16 00:15:01

Re: Kernel compilation on CentOS

Post by b24warbaby » 2017/10/18 02:34:08

in the past I use to copy /boot/config.Xxxix file to kernel/.config ; then

"make oldconfigsilent all modules modules_install "

worked most of the time.

Using an old config ensures all the modules used in your last booted kernel gets built the same way.

vivekgwd
Posts: 16
Joined: 2017/10/17 05:06:40

Re: Kernel compilation on CentOS

Post by vivekgwd » 2017/10/18 07:22:41

Little bit confused with kernel versions,presently i am having 2.6.32.3,which i am thinking is the updated version of 2.6.32 with some bug fixes
please explain which is the latest kernel.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel compilation on CentOS

Post by TrevorH » 2017/10/18 08:33:05

All 2.6.32.X kernel sources will be dated in 2010 which is when that kernel was current. The latest and last 2.6.32 vanilla kernel was 2.6.32-27 from the 9th Dec 2010 which is when maintenance by the linux kernel community stopped for that version. No bug fixes past that time will be in that source and there have been several really important security vulnerabilities since then. You can see the entire release history on https://www.kernel.org/pub/linux/kernel/v2.6/

The latest CentOS supplied 2.6.32 kernel is kernel-2.6.32-696.13.2.el6.x86_64 which rpm -qi says is from "Build Date: Thu 05 Oct 2017 09:53:32 PM UTC". It has fixes right up to the current time. The kernel rpm changelog (rpm -q --changelog kernel-2.6.32-696.13.2.el6.x86_64 | less) has 45,377 lines in it and 41,217 of those are newer than Dec 10th 2010. That's 41 thousand fixes in the CentOS 2.6.32 kernel that are not in the last mainstream 2.6.32 kernel.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vivekgwd
Posts: 16
Joined: 2017/10/17 05:06:40

Re: Kernel compilation on CentOS

Post by vivekgwd » 2017/10/18 09:03:53

Thanks for detailed explaination

vivekgwd
Posts: 16
Joined: 2017/10/17 05:06:40

Re: Kernel compilation on CentOS

Post by vivekgwd » 2017/10/18 09:45:27

Please suggest me kernel version which we can move to from standard kernel repository(https://www.kernel.org),so that it can be compiled both on RHEL 6 and Centos 6.9
Same version of kernel can be run in both RHEL and CentOS systems from standard kernel repository.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel compilation on CentOS

Post by TrevorH » 2017/10/18 10:14:37

We don't support or recommend use of mainline kernels at all. We recommend use of the kernels we ship - which are the same ones in use by RHEL minus the RH branding.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Kernel compilation on CentOS

Post by jlehtone » 2017/10/18 15:13:43

vivekgwd wrote:Please suggest me kernel version
The latest precompiled RPM-packaged kernel from the official CentOS repositories.


Forget the kernel. Focus on the application. Tear the application apart until it bends to your will. Use baseball bat, white-hot pitchfork or other equivalent high precision instrument to relieve the application from its delusions. :twisted:

Kernel bows to no application. Applications must submit to kernel's rule.

Post Reply