Installing Kernel 2.6.38.3 in the Ubuntu 10.10

Posted: April 17, 2011 in Ubuntu
Tags: , , ,

Hi everybody. Today I will explain about how we can compile and install the kernel 2.6.38.3 in the Ubuntu 10.10. So a lot of improve was made and I’ve decided to check each one.

Before we start, make the download of the kernel in http://www.kernel.org/ and install some packages that are requirements to compile the kernel. Open a shell and type:

sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev qt3-dev-tools

Now, go to the folder where you downloaded the kernel and move the file linux-2.6.38.3.tar.bz2 to the new location, to do that run:

sudo mv linux-2.6.38.3.tar.bz2 /usr/src/

Extract the file:

cd /usr/src/
sudo tar jxvf linux-2.6.38.3.tar.bz2

Now let’s gain a little time. Let’s import the kernel settings we are currently using:

cd /usr/src/linux-2.6.38.3
sudo cp /boot/config-`uname -r` .config

We are almost ready to compile the kernel. Open the kernel menu settings:

sudo make menuconfig

The command above will open a window inside of the shell. Select the menu item called “Processor type and features —>” and after “Processor family —>”. Choose your processor. In my case, my notebook is a Core i5, I chose the option “Core 2/newer Xeon”.

Finally, it’s time to compile the kernel. Exit from Kernel Configuration window saving the changes and run:

sudo make -j3

The option -j means the numbers of cores or processors that will be used to compile. In this case, I am using 3 processors. If you have just one, you can remove this option.
After compiled, we need to install it:

sudo make modules_install
sudo make install

The new kernel is installed, however we need to say to the Ubuntu to use this new one. Just type in the shell:

sudo update-initramfs -k 2.6.38.3 -u
sudo update-grub

Restart your computer. After loaded, type in the shell:

uname -a

That’s it. The new Kernel is ready to be used. If you would like to get more details about this new kernel, access the site The H Open.

See you at the next time.

Advertisements
Comments
  1. Mike says:

    Hi there.

    Is the best howto what i find for Installing Kernel 2.6.38.3 in the Ubuntu 10.10 but on the end give me message after command :
    sudo update-initramfs -k 2.6.38.3 -u

    update-initramfs: Generating /boot/initrd.img-2.6.38.3
    grep: /boot/config-2.6.38.3: No such file or directory
    Warning: No support for locale: en_US.utf8

    Any sugestion what is wrong ?

    Thanks

    • buildall says:

      Hi Mike.

      I didn’t have any problem to compile and install the kernel. However, what was returned by commands sudo make menuconfig (after you saved the changes), sudo make modules_install and sudo make install?

  2. Rene says:

    Thank you buildall for your instructions. I sucsessfully upgraded my backtrack4r2 kernel to version 2.6.38.3 by folowing your installations steps. πŸ™‚

  3. dev says:

    This has been a big help… how do I reduce the space on the HDD now. I alocated the file system 14GB and ive tried this from a new install of 10.10 after I had downloaded the default updates from Update Manager.

    Can I delete any files no longer required?

    Many Thanks

  4. lakomon says:

    thanks for your information πŸ˜€

  5. pratik Tambekar says:

    I install sucessfully but i am not getting the folder i386 and syscall_table.s

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s