6.在升级之前,还要确定以下一些软件不低于以下的版本:
Name: Minimum version: How to find version:
Gnu C Compiler 2.95.3 #gcc --version
Gnu Make 3.78 #make --version
binutils 2.12 #ld -v
util-linux 2.10o #fdformat --version
module-init-tools 0.9.9 #depmod -V
procps 2.0.9 #ps –version
(参见“Documentation/Change”中的最新更新)
接下来正式开始升级:
1.配置内核
解压内核文件
#tar xzvf linux-2.6.20.tar.gz /usr/src/
清除冗余文件
#cd linux-2.6.20.1
#make mrproper
#make clean
生成Makefile文件,如果已经有Makefile文件了,就可以不做此条命令。
#./configure
开始配置内核
#make menuconfig
关于menuconfig中的配置,详细参考说明在后面日志,以下是几点值得注意:
#make menuconfig后会出现一个图形界面,列出了所有的内核配置选项,其中有几项是必需的,用“Y”键选中:
①“Loadable Module support”中,选“Module unloading”和“Automatic kernel module loading”;
②“Device Drivers”→“Block Devices”中,选“Loopback device support”;
③“Device Drivers”→“Multi-device support(RAID and LVM)”中,选“device mapper support”;
④“Device Drivers”→“Graphics support”中,选“Support for frame buffer devices”;
⑤“Device Drivers”→“USB support”中,若不在虚拟机环境中,应尽量全选以支持USB;
注意,在Vmware下以下选项必须选上,否则编译要出问题:
⑥Device Drivers --->SCSI device support ---><*> SCSI disk support
⑦Device Drivers --->SCSI device support --->SCSI low-level drivers ---> <*> BusLogic SCSI support
⑧Device Drivers ---> Fusion MPT device support ---> Fusion MPT (base + ScsiHost) drivers和Fusion MPT misc device (ioctl) driver(这个不确定)。
⑨Device Drivers ---> USB support ---><*> USB Mass Storage support (*suppor for host-side Usb选上)
⑩Device Drivers ---> Networking support --->Ethernet (10 or 100Mbit) ---> <*> AMD PCnet32 PCI support
最好把ext3文件系统支持也编译进内核
<*>Ext3 journalling file system support
<*>Ext3 extended attributes
<*>Ext3 POSIX Access Control Lists
<*>Ext3 Security Labels
<*>JBB (ext3) debugging support
注意1: "make dep"这一步在2.6已经不需要了.