博客园 首页 新随笔 联系 订阅 管理

From: http://blog.csdn.net/lchengcome/article/details/6715591
From: http://bbs.chinaunix.net/thread-3753562-1-1.html
第一步:下载内核源码:
http://www.kernel.org/pub/linux/kernel
# cp linux-3.10.tar.xz /usr/src/linux-3.10.tar.xz
# tar -xf linux-3.10.tar.xz
# cd /usr/src/linux-3.10
第二步:开始编译
清理以前的编译痕迹
# make mrproper
# make clean
# cp /boot/config-`uname -r` .config
# make menuconfig
执行该命令需要ncurses库,如果执行出错则执行如下命令安装ncurses:
# yum install ncurses-devel
# make bzImage
# make modules
# make modules_install
# make install
注:
安装过VirtualBox的可能会出现以下错误。卸载VirtualBox就不会出现错误了。
ERROR: modinfo: could not find module vboxpci
ERROR: modinfo: could not find module vboxnetadp
ERROR: modinfo: could not find module vboxnetflt
ERROR: modinfo: could not find module vboxdrv
修改/boot/grub/menu.lst文件,将新生成的默认启动项修改为刚生成的启动项,重启即可:
# reboot

posted on 2013-07-19 15:40  ZhanGSKen163  阅读(1006)  评论(0编辑  收藏  举报