Centos 5.7 内核更新 2.6.18-274.18.1.el5升级2.6.39.4


下载2.6的最新内核
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.4.tar.gz
tar -zxvf linux-2.6.39.4.tar.gz -C /usr/src/
cd /usr/src/linux-2.6.39.4/
cp /boot/config-2.6.18-274.18.1.el5  .config
make mrproper
make menuconfig
选择Load an Alternate Configuration File
输入原内核的配置文件.config
载入配置,根据自己需要再修改相关选项.
使用Broadcom Corporation NetLink BCM57788 Gigabit Ethernet PCIe网卡的需要注意增加以下选项:
Device Drivers  --->  Network device support  ---> PHY Device support and infrastructure  --->
<*> Drivers for Broadcom PHYs
<*> Drivers for Broadcom 63xx SOCs internal PHY
//以上两项编译到内核
Device Drivers  --->  Network device support  ---> Ethernet (1000 Mbit)  ---> <*>   Broadcom Tigon3 support
//该项编译到内核
General setup -->[*] enable deprecated sysfs features to support old userspace tools
//注意这项已经选中
完成后保存配置文件.
vi .config
修改“CONFIG_SYSFS_DEPRECATED_V2”,默认该选项为not set,被注释掉的,将其改为=y
make
make modules
make modules_install
make install
vi /boot/grub/grub.conf  把default=1改为0
reboot
uname -a