Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Kernel upgrade question

I am currently running the 2.4.18 kernel, and I was thinking of upgrading.  I have a couple questions:

First, is it easy (or advisable) to upgrade from the 2.4 tree to the 2.6 kernel?

Second, I remember reading that I should keep the original kernel headers that glibc was compiled against on my system.  If this is the case, would I still put the updated kernel in /usr/src/linux ?

Thanks for the help.
0
lwinkenb
Asked:
lwinkenb
  • 2
1 Solution
 
jlevieCommented:
Have you considered upgrading the OS to one that includes a 2.6 kernel? There's more than just the kernel that's involved in going from 2.4 to 2.6 and an upgraded OS is a lesser risk situation.
0
 
wesly_chenCommented:
> First, is it easy (or advisable) to upgrade from the 2.4 tree to the 2.6 kernel?
Not easy. Don't recommend.
Glibc for kernel 2.4 may not work for kernel 2.6. Upgrade glibc will break a lot of application dependencies.

IMHO, you could install kernel 2.6 on other machines for porting if you have in-house softwares developed
originally on kernel 2.4.

If not, then simply fresh OS installation will be better.

Wesly

0
 
lwinkenbAuthor Commented:
Thanks for the info, sounds like I'll just upgrade to 2.4.28.  Now is it ok for me to delete what is currently in /usr/src/linux and place the new kernel source there, or should I put it somewhere else?
0
 
wesly_chenCommented:
> is it ok for me to delete what is currently in /usr/src/linux and place the new kernel source there
It's ok to delete the kernel source.
For the same 2.4 kernel, you can do "another installation" instead of "upgrade".
In other words,
mv /usr/src/linux /usr/src/linux-2.4.18
and put your source to
/usr/src/linux-2.4.28
then make a symbolic link
ln -s /usr/src/linux-2.4.28 /usr/src/linux

Wesly
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now