升级Linux内核2.6.38


Linus Torvalds宣布发布2.6.38 kernel。 新版本最为人关注的新特性是自动进程分组,能显著改善桌面性能的内核补丁。其它的新特性包括:

改进了VFS扩展性,支持多线程工作负荷,提高单线程工作负荷效率;Btrfs文件系统换用LZO算法透明压缩;支持透明大内存页;支持AMD Fusion处理器;支持自适应去中心化分布式网络协议B.A.T.M.A.N.Mesh;更多新驱动,等等。

make mrproper  (该命令可确保源代码目录下没有不正确的.o文件)

make menuconfig (配置内核各选项)

/******************照网上文章做,大部分默认已经选上***********************/

(1)Loadable Module support选项中,选上“Module unloading”和“Automatic kernel module loading”这两项;
(2)Device Drivers--->Block Devices中选上“Loopback device support”;
     Device Drivers--->Multi-device support(RAID and LVM)处要选上“device mapper  support”;
     Device Drivers--->Graphics support,一定要选上“ Support for  buffer devices”;
     Device Drivers  --->USB support  --->选上“USB Mass Storage support”(如果是在实环境中,想要更多USB支持,就全选吧。我的是在虚拟机中,用不着了)
     Device Drivers  --->;Network device support  --->Ethernet (10 or 100Mbit)  ---><*>  AMD PCnet32 PCI support
(3)File system--->(以下9个选项是关于ext2和ext3文件系统配置,全部选上)
           Second extended fs support
           Ext2 extended attributes
           Ext2 POSIX Access Control Lists
           Ext2 Security Labels
           Ext3 journalling file system support
           Ext3 extended attributes
           Ext3 POSIX Access Control Lists
           Ext3 Security Labels
           JBB (ext3) debugging support
     File system--->DOS/FAT/NT Filesystems  --->选上“NTFS file system support”;

/**************************************************/

make bzImage (注意大小写。这一步才是真正编译内核)

 make modules (编译可加载模块)

 make modules_install (安装可加载模块)

make install (安装新内核)

看到


Running DKMS auto installation service for kernel 2.6.38

表示装完

相关内容