linux内核升级

linux内核升级

系统CentOS 6.5,原内核版本为2.6.32,欲升级版本3.2.14

下载linux内核

下载地址来源:浏览器输入mirrors.aliyun.com,在文件列表中找到linux-kernel,点击跳转到linux-kernel列表中,选择你要下载的版本

wget -c https://mirrors.aliyun.com/linux-kernel/v3.0/linux-3.2.14.tar.bz2

配置内核并安装

在执行此命令时可能出现如下错误:

mark@ubuntu:~/work/linux-3.2.14-psp04.06.00.08.sdk$ make menuconfig   
*** Unable to find the ncurses libraries orthe  
*** required header files.  
*** 'make menuconfig' requires the ncurseslibraries.   
*** Install ncurses (ncurses-devel) and tryagain.  

此时只需要安装ncurses-devel即可:

yum install ncurses-devel

  • make clean #确保所有东西均保持最新状态.

  • make bzImage #生成内核文件(耗时较久)

  • make modules #编译模块 (耗时较久)

  • make modules_install #安装模块

  • make install #安装

在make install 后,可能会出现如下错误

# make install 
sh /usr/src/linux-3.2/arch/x86/boot/install.sh 3.2.03.2.0 arch/x86/boot/bzImage \
                System.map "/boot"
ERROR: modinfo: could not find module rfcomm
ERROR: modinfo: could not find module sco
ERROR: modinfo: could not find module bnep
ERROR: modinfo: could not find module l2cap
ERROR: modinfo: could not find module vmware_balloon

遇到这样的问题,我是这样解决的,使用lsmod命令,发现以上几个module都是存在的,所以我直接执行下一步骤了。

[root@localhost linux-3.2]# lsmod|grep rfcomm
rfcomm                 74119  4 
l2cap                  55682  16 rfcomm,bnep
bluetooth              99271  9 rfcomm,sco,bnep,l2cap,btusb
[root@localhost linux-3.2]# lsmod|grep sco
sco                    18005  2 
bluetooth              99271  9 rfcomm,sco,bnep,l2cap,btusb
[root@localhost linux-3.2]# lsmod|grep bnep\
> ^C
[root@localhost linux-3.2]# lsmod|grep bnep
bnep                   16690  2 
l2cap                  55682  16 rfcomm,bnep
bluetooth              99271  9 rfcomm,sco,bnep,l2cap,btusb

修改grub.conf

vim /etc/grub.conf,将 default=1 改为 default=0

重启系统,并查看内核

reboot
uname -r
3.2.14-rt24
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值