Installing new kernel (by commandline) as side of old kernel

I require to install an additional kernel (2.6.34 _ rt right into my fedora/ubuntu equipment (x86) and also I require to show the old and also new start up alternatives in the boot food selection (both new and also old kernel)

I have actually downloaded and install the new kernel and also I require to compile it and also require to construct it.

Just how can I finish this throughout?

0
2019-05-18 21:56:28
Source Share
Answers: 2

Do you actually require to compile it on your own? There are mainline kernel builds for Ubuntu. There is additionally details concerning building your own kernel.

0
2019-05-21 06:35:04
Source

Ok below we take place just how to compile and also install a new kernel:

First the dependences for every one of this:

sudo apt-get install build-essential makedumpfile

Plus the dependences for the details kernel, for a kernel which remains in a repository you can do this:

sudo apt-get build-dep linux-image-"kernel number"

For your kernel, I do not recognize, possibly they coincide possibly they are differents you need to look details on Google for that, it might rely on just how you configure your kernel.

Hereafter I recommend you create an area to operate in your residence folder:

mkdir src
cd src

You can unzip your kernel below or get a kernel from a repository with:

apt-get source linux-image-"kernel number"

Now we intend to operate in the unzipped folder:

cd linux-"kernel number"

After this you will certainly require a device to modify your kernel arrangement, there are 2 various devices and also to utilize them you will certainly need to install their dependences:

For xconfig = sudo apt-get install qt3-dev-tools libqt3-mt-dev
For menuconfig = sudo apt-get install libncurses5 libncurses5-dev

I recommend you make use of xconfig, which is less complicated to make use of. To utilize it you type:

xconfig = make xconfig
menuconfig = make menuconfig

Configure your kernel as you like and also conserve your arrangement. If you do not require it you need to disable "Kernel debugging (DEBUG_KERNEL)" under "Kernel hacking" because that will certainly make the collection much less long.

To compile, you type:

CONCURRENCY_LEVEL=3 sudo make-kpkg --initrd --append-to-version=-something kernel-image kernel-headers

Replace "CONCURRENCY_LEVEL = 3" by the variety of core your cpu have+1 that will certainly make the collection much quicker. Change" - - append - to - variation = - something" by what you intend to add to the name of the kernel.

Await a long time, numerous hrs relying on your computer system.

When it is ended up and also if absolutely nothing negative occurred you will certainly have 2 attractive debian plans developed in the moms and dad folder, install them:

cd ..
sudo dpkg -i linux-image-"kernel number".deb
sudo dpkg -i linux-headers-"kernel number".deb

Don't neglect to upgrade grub:

sudo dpkg-reconfigure grub-pc

Reboot on your new kernel and also, if every little thing is great, you are done.

0
2019-05-21 06:16:21
Source