现在的位置: 首页 > 综合 > 正文

升级linux内核2.6.38

2016年12月08日 ⁄ 综合 ⁄ 共 1329字 ⁄ 字号 评论关闭

 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

表示装完
【上篇】
【下篇】

抱歉!评论已关闭.