본문 바로가기
3. 개발 관련/정리 :: issue 와 resovle

Ubuntu kernel build from source for custom.

by kyuho.choi 2014. 3. 17.
728x90
반응형

On Ubuntu 12.04, below links are available.



Find  Up/Down grade version of Tag in git.

#] git tag -l Ubuntu-*
Ubuntu-a.b.c.d

Checkout branch from Tag version.
#] git checkout -b worksbranch Ubuntu-a.b.c.d


Custom your kernel configuration or edit source code.

#] make menuconfig


Build kernel source.

#] make  or      #] make -j4

` -j4` means my linux machine has 4 cpus.

 

Make initrd and kernel image/header packages.

#] mkae-kpkg --initrd kernel_image kernel_headers

 

Swith `CWD` for build out resources directory.

#] cd ..

 

Install built packages for your machine.

#]  dpkg -i *.deb

 

Edit grub for change boot OS.

#] vim /boot/grub/grub.cfg

=> Modified `timeout` to over `0`

=> Modified `default` to new installed version.

 

#] reboot -f

728x90
반응형

댓글