2014년 1월 28일 화요일

How to build / install linux kernel on Debian based distributions(e.g., Ubuntu) in deb format

On Debian based distribution system like Ubuntu, you can build linux kernel in deb format. It would be easier to install / redistribute the kernel.

Install Required Package

$ sudo apt-get install kernel-package

Get Linux Kernel Source Code

$ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.xz
$ tar -xJf linux-3.13.tar.xz

Set Build Configuration

$ cp /boot/config-blahblah ./.config
$ make oldconfig

Build in deb Format

$ fakeroot make-kpkg --initrd -j 3 --revision 3.13.sjpark kernel-image

Install The Kernel

$ sudo dpkg -i ../linux-image-3.13.0+_3.13.sjpark_amd64.deb
$ sudo shutdown -r now
$ uname -r

댓글 없음:

댓글 쓰기