How to: Compile Linux kernel 2.6

1415 단어 linuxDebianimagebash
http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
 
Step # 1 Get Latest Linux kernel code
 
$ cd /tmp $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-x.y.z.tar.bz2
 
Step # 2 Extract tar (.tar.bz2) file
 
# tar -xjvf linux-2.6.25.tar.bz2 -C /usr/src # cd /usr/src
 
Step # 3 Configure kernel
 
$ make menuconfig
 
 
Step # 4 Compile kernel
 
$ make
$ make modules
# make modules_install
 
Step # 5 Install kernel
 
# make install
 
 
Step #6 modify grub config menu.lst
 
# vi /boot/grub/menu.lst
title           Debian GNU/Linux, kernel 2.6.25 Default
root            (hd0,0)
kernel          /boot/vmlinuz root=/dev/hdb1 ro
initrd          /boot/initrd.img-2.6.25
savedefault
boot

Essential Linux Device Driver ,
, , bzImage

Compile the kernel and generate a compressed boot image: bash> make bzImage
 
The kernel image is produced in arch/x86/boot/bzImage. Update your boot partition: bash> cp arch/x86/boot/bzImage /boot/vmlinuz
이것 괜찮아요?

좋은 웹페이지 즐겨찾기