레이블이 install인 게시물을 표시합니다. 모든 게시물 표시
레이블이 install인 게시물을 표시합니다. 모든 게시물 표시

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

2014년 1월 26일 일요일

Debian 계열(우분투 등)에서 deb로 커널 빌드

우분투 등의 debian 계열 배포본에서는 커널도 deb로 빌드, 간편하게 설치 / 재배포 할 수 있다.

필요 패키지 설치

$ sudo apt-get install kernel-package

커널 소스코드 다운로드

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

빌드 configuration 설정

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

deb로 빌드

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

설치

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