0
votes

I have ubuntu 14.04 and I have a project where ill be modifying the kernel (something to do with its scheduler).

Our project supervisor told us to use kernel 3.14 specifically from kernel.org . I couldn't find any tutorial on how to compile and boot kernel downloaded from kernel.org .

I have found this https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide?action=show&redirect=KernelTeam%2FKernelGitGuide and it seems you have to use only kernels from Ubuntu kernel repositories - is that right?

thanks for the help

1
use troval's link. you will get updated source of kernel. github.com/torvalds/linux - Sigcont

1 Answers

0
votes

I compile my kernels on my Ubuntu machine like this:

1)

mkdir kernel-build

2)

cd kernel-build/

3)

sudo apt-get install libncurses5-dev

4)

wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.tar.xz

5)

tar -xJvf linux-3.14.tar.xz

6)

cd linux-3.14

7)

cp /boot/config-`uname -r` .config

8)

yes "" | make oldconfig

8.1) is optional:

make menuconfig

9)

make -j`getconf _NPROCESSORS_ONLN` bzImage modules

10)

sudo make modules_install install

11)

sudo reboot

This should be enough.

EDIT: step 3 is if you need to disable some modules, which means that you can skip step 8.1, if you do not know what are you doing.