linux内核升级
来源:互联网 发布:linux 查看自启动服务 编辑:程序博客网 时间:2024/05/22 11:30
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
配置内核并安装
make mrproper #清除环境变量,即清除配置文件
cp /boot/config-2.6.32-71.el6.i686 .config
make menuconfig #在菜单模式下选择需要编译的内核模块
关于menuconfig配置见:http://blog.csdn.net/xuyuefei1988/article/details/8635539
在执行此命令时可能出现如下错误:
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 rfcommERROR: modinfo: could not find module scoERROR: modinfo: could not find module bnepERROR: modinfo: could not find module l2capERROR: modinfo: could not find module vmware_balloon
遇到这样的问题,我是这样解决的,使用lsmod命令,发现以上几个module都是存在的,所以我直接执行下一步骤了。
[root@localhost linux-3.2]# lsmod|grep rfcommrfcomm 74119 4 l2cap 55682 16 rfcomm,bnepbluetooth 99271 9 rfcomm,sco,bnep,l2cap,btusb[root@localhost linux-3.2]# lsmod|grep scosco 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 bnepbnep 16690 2 l2cap 55682 16 rfcomm,bnepbluetooth 99271 9 rfcomm,sco,bnep,l2cap,btusb
修改grub.conf
vim /etc/grub.conf,将 default=1 改为 default=0
重启系统,并查看内核
rebootuname -r3.2.14-rt24
阅读全文
0 0
- Linux内核升级
- Linux的内核升级
- 升级linux内核
- Linux内核升级详解!
- Linux内核升级
- Linux内核升级全过程
- 升级Suse Linux内核
- linux内核升级Tips
- LINUX的内核升级
- linux 内核升级
- Linux 内核升级
- linux 内核升级
- linux 内核升级
- LINUX内核升级
- linux内核升级小结
- linux内核升级步骤
- VirtualPC+Linux内核升级
- Debian升级Linux内核
- Warning: The VM will try to fix the stack guard now.It's highly recommended that you fix the library
- UVA 12506 Shortest Names
- 127 C语言文件的随机读写
- 排序算法之快速排序的理解与实现
- POJ1149:PIGS(最大流)
- linux内核升级
- C# 值传递和引用传递
- 欢迎使用CSDN-markdown编辑器
- 大明想跟你聊聊Solr6.x
- 美团点评面经
- adb shell 中的 dumpsys 命令调用过程 探究 (16/04/05)
- Visual Studio2013 开发环境搭建
- paulzhou的数学?TAT? 【二分打表找规律】
- 集合中hashcode()和equalse()、Comparable、队列