cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.bz2
tar -jxvf linux-2.6.37.tar.bz2
ln -s /usr/src/linux-2.6.37 /usr/src/linux
cd linux
make clean
cp /boot/config-2.6.18-194.32.1.el5 .config
make menuconfig
make bzImage
make modules
make modules_install
make install
#
指令理解
make menuconfig \内核定制(会修改.config文件)
make bzImage \生成内核镜像文件于/usr/src/linux/arch/xxx/boot/bzImage
make modules \编译模块
make modules_install \安装模块,/lib/modules/x目录/附加模块
make install \安装新内核到/boot/
mkinitrd /boot/initrd-2.6.23.14.img 2.6.23.14 \mkinitrd可建立映像文件,以供Linux开机时载入ramdisk