Centos5 编译内核

Standard

受网上那些个自己都不实际操作验证一下就拷来拷去的资料影响,来回折腾了好几遍-_- 好在是用vm虚拟的,弄坏多少次都无妨:)

现把编译步骤记录如下:

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.gz

tar zxvf linux-2.6.25.tar.gz
ln -s linux-2.6.25 linux
cd /usr/src/linux

make clean && make mrproper

cp /boot/config-`uname -r` ./.config

yum install ncurses-devel
make menuconfig
1.Go to “Load an Alternate Configuration File” and choose “.config”
2.Go to “General setup” select “Local version …” and input “-default”

make

make modules_install

make install

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.