[asterisk-users] Centos kernel 34 vs. 42?
Robert Jenkins
raj at jrw.co.uk
Sat Oct 14 09:25:22 MST 2006
Hi,
I like Centos as a basic platform, but I always then upgrade the kernel to
the latest stable release from kernel.org
The latest ones are using Centos 4.4 x86_64 with kernel 2.6.18
For simplicity, I always start with the .config from the original Centos
kernel.
My install sequence is:
Untar the kernel source in /usr/src/kernels
ln -s /usr/src/kernels/linux-2.6.18 /usr/src/linux (changing 2.6.18 to the
version in use...)
cd to /usr/src/linux & do 'make mrproper' to clean out any leftover garbage.
Older kernel versions often would not build if you missed this step, so I do
it by habit now.
Copy the .config file from the last installed Centos kernel directory (under
/usr/src/kernels/2.6.xxxx) to /usr/src/linux
Still in /usr/src/linux, do 'make oldconfig' and just press enter all the
way through.
This should give you a new kernel config matching the Centos distribution.
(If you need anything other than the standard Centos kernel config, make
changes here)
Then do:-
make
make modules
make modules_install
make install
If everything builds OK, reboot and get ready to select the new kernel as
the Grub menu appears.
If it all boots OK, you can edit /etc/grub.conf and change the default line
to 0 so the new kernel is booted in future.
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Bryan J. Smith
> Sent: 14 October 2006 10:48
> To: asterisk-users at lists.digium.com; asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] Centos kernel 34 vs. 42?
>
> From: Remco Barendse
> > Possibly, but I would have to start worrying about kernel configs,
> > compiling the lot and solving the problem of the box no
> longer being
> > able to boot the kernel :)
>
> You'd be better off starting with a Fedora kernel.
> Unfortunately RHEL/CentOS 4 is based on Fedora Core 3 which
> has been tagged legacy for quite some time now. The last
> kernel version was around 2.6.13 or so IIRC. And trying to
> go with a Fedora Core 5, 6 Test or Development (aka Rawhide)
> might not build because GCC has been upgraded to 4.0/4.1 from 3.4.
>
> > I looked for CentOS repo's but cannot find one that will
> throw a plain
> > vanilla kernel my way.
>
> And you're not likely to find one. RHEL/CentOS is based on a
> set kernel version with minimal changes, backporting required
> fixes/security updates only as necessary. Red Hat's focus
> with RHEL is 7 years of SLAs with no ABI changes, period -
> unlike Fedora Core (or Red Hat Linux before it for that
> matter - which did co-exist with RHEL for 2 years before the
> trademark change).
>
> > There's only a centos plus kernel but these are basically
> the same as
> > the original kernels just with some filesystems enabled.
>
> As I hinted above, the changes are just significant enough
> that Red Hat only backports, to the anal power when it comes
> to RHEL. And although Fedora Core/Development would be a
> "good start" for an updated kernel (far vanilla where
> countless things would break), there is so much that has
> changed in the toolchain and user-space of Fedora Core 4-6
> that offers a 2.6.16+ release that many people probably
> haven't bothered. Especially since most people run
> RHEL/CentOS for its longevity and unchanging ABI/backports
> approach to an almost anal-level.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list