Kernel upgrade question

Posted on 2004-11-30
Last Modified: 2010-04-20
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.
Question by:lwinkenb
    LVL 40

    Expert Comment

    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.
    LVL 38

    Expert Comment

    > 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.


    LVL 5

    Author Comment

    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?
    LVL 38

    Accepted Solution

    > 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
    then make a symbolic link
    ln -s /usr/src/linux-2.4.28 /usr/src/linux


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now