Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| modify_compile_linux_kernel_in_ubuntu [09.09.2010 19:09] – created Pascal Suter | modify_compile_linux_kernel_in_ubuntu [20.09.2010 17:17] (current) – Pascal Suter | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5-dev | apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5-dev | ||
| sudo apt-get build-dep linux | sudo apt-get build-dep linux | ||
| - | apt-get build-dep --no-install-recommends linux-image-$(uname -r) | + | apt-get build-dep --no-install-recommends linux-image-`uname -r` |
| - | apt-get source linux-image-$(uname -r) | + | apt-get source linux-image-`uname -r` |
| + | |||
| + | * in ubuntu 10.04 you need to copy the package scripts for ubuntu because otherwhise the initrd file will not be generated (more details in [https:// | ||
| + | |||
| + | cp linux-2.6.32/ | ||
| + | cp linux-2.6.32/ | ||
| * cd into the linux-xxx directory that was created containing the sources | * cd into the linux-xxx directory that was created containing the sources | ||
| - | * if edit the config | + | * if you want, edit the config |
| make menuconfig | make menuconfig | ||
| - | * compile and build a deb package | + | * compile and build a deb package |
| make-kpkg clean | make-kpkg clean | ||
| - | fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image | + | fakeroot make-kpkg |
| * install the new kernel | * install the new kernel | ||
| - | dpkg-i ../ | + | dpkg -i ../ |
| + | dpkg -i ../ | ||
| * reboot :) | * reboot :) | ||