I need to install another kernel(2.6.34) into my fedora/ubuntu machine(x86) and I need to show the old and new boot up options in the boot menu(both new and old kernel)
I have downloaded the new kernel and I need to compile it and need to build it.
How can I complete this from start to finish?
Ok here we go on how to compile and install a new kernel :
First the dependencies for all of this :
Plus the dependencies for the specific kernel, for a kernel which is in a repository you can do this :
For your kernel, I don't know, maybe they are the same maybe they are differents you should search info on Google for that, it may depend on how you configure your kernel.
After this I suggest you create a place to work in your home folder :
You can unzip your kernel here or get a kernel from a repository with :
Now we want to work in the unzipped folder :
After this you will need a tool to edit your kernel configuration, there are two different tools and to use them you will have to install their dependencies :
I suggest you use xconfig, which is easier to use. To use it you type :
Configure your kernel as you like and save your configuration. If you don't need it you should disable "Kernel debugging (DEBUG_KERNEL)" under "Kernel hacking" since that will make the compilation less long.
To compile, you type :
Replace "CONCURRENCY_LEVEL=3" by the number of core your processor have +1 that will make the compilation much faster. Replace "--append-to-version=-something" by what you want to append to the name of the kernel.
Wait for a very long time, several hours depending on your computer.
When it is finished and if nothing bad happened you will have two beautiful debian packages created in the parent folder, install them :
Don't forget to update grub :
Reboot on your new kernel and, if everything is fine, you're done.
Do you really need to compile it yourself? There are mainline kernel builds for Ubuntu. There is also info about building your own kernel.
There are following steps to install new kernel. I m also getting some problem but I want to share how to build new kernel.
Download the latest kernel
Unzip it in any directory.It is usefull to unzip it in ur home folder.
Go to that folder like
cd /home/linux/linux-{version}/
Now make a new configuration file. For that use 1 of these commands:
make config
, this will give u config filemake defconfig
, this will give u default config fileAfter that check whether the config file is suitable or not for your kernel by this command:
If any option is not there in your config file then it will give you options to select the option
<Y/n/m>
. The capital letter shows that this is the default option. You can select that option by pressing Enter only.make
ormake -jn
wheren
is 2* no of core processorsmake modules_install
make install
Restart your system and select your new kernel option.