how to upgrade CentOS kernel

原创 2011年08月25日 15:42:17

1,wget -c
2, make mrproper

3, cp /boot/config* .config ; make oldconfig

 or  make defconfig [ use the sample config as the .config file (linux-]

或者更好的使用命令make localmodconfig来产生配置

4, make dep  
5, Make kernel and install
make -j4 bzImage V=1
make -j4 modules V=1 
make modules_install V=1 

6, install others
   cp arch/x86/boot/bzImage       /boo/bzImage-2.6.24
   cp         /boo/ 
   mkinitrd -v /boot/initrd-2.6.24.img

7, Add strings below to grub/menu.lst
        title CentOS (2.6.24)
        root (hd0,0)
        kernel /bzImage-2.6.24 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.img

8,reboot and select your new kernel


 #  zcat initrd.gz | cpio -ivd --no-absolute-filenames
# find . | cpio -o -H newc -F tmp_initrd2
# gzip -f9 tmp_initrd2

10, 查看帮组 

[root@Tony32 linux-2.6.39]# make help


Command Description
make config Text based configuration. The options are prompted one after another. All options need to be answered, and out-of-order access to former options is not possible.
make menuconfig An ncurses-based graphical menu (only text input). Navigate through the menu to modify the desired options.
make defconfig Generates a new config with default from the ARCH supplied defconfig file. Use this option to get back the default configuration file that came with the sources.
make nconfig Graphical menu based on ncurses. Requires sys-libs/ncurses to be installed.
make xconfig Graphical menu using Qt4. Requires dev-qt/qtgui to be installed.
make gconfig Graphical menu using GTK+. Requires x11-libs/gtk+, dev-libs/glib, and gnome-base/libglade to be installed.
make oldconfig Review changes between kernel versions and update to create a new .config for the kernel.
make allyesconfig Enables all configuration options in the kernel. target will set all kernel options to *. Make sure a backup of the current kernel configuration is acquired before experimentally using it!

make mrproper
make allyesconfig
make localmodconfig
make modules_install
make install
<pre name="code" class="plain">mkinitrd -v /boot/initrd-2.6.24.img



Linux 配置项含义查询:


Question: I am attempting to install the VMWare player in Fedora 19. I am running into the problem ...
  • amolinzhu
  • amolinzhu
  • 2017年02月07日 19:10
  • 3320


  • whbttst
  • whbttst
  • 2015年09月08日 21:47
  • 1367

How to upgrade sap kernel

This procedure will help you to update your SAP Kernel in a SAP ABAP based system such as ECC 6.0. ...
  • cyxlxp8411
  • cyxlxp8411
  • 2013年04月17日 22:21
  • 577

centos7.0装Nvidia显卡驱动:禁用The Nouveau kernel driver的方法

将驱动从Nvidia官网下载回来后 进入文本模式直接运行安装,发现提示如下错误:...
  • stu741
  • stu741
  • 2014年10月13日 15:41
  • 3927

Upgrade CentOS 7 kernel

  • liyuekuan
  • liyuekuan
  • 2015年08月20日 14:28
  • 263

CentOS6.8 upgrade gcc to gcc4.8

CentOS6.8自带的gcc版本为4.4.7,有些年代了,一些新软件要用到的库没有,最新的gcc4.8.2已经放出来了,于是下载源代码安装了一个试试。 1.首先把旧的gcc相关的编译工具安装好 ...
  • yuzaipiaofei
  • yuzaipiaofei
  • 2016年05月09日 22:36
  • 2879

Android SQLite数据库—SQLiteOpenHelper(一)

14.1.SQLiteOpenHelper 14.1.1.声明一个类继承SQLiteOpenHelper //构造方法 public SQLiteHelp(Context context, Strin...
  • weixin_37730482
  • weixin_37730482
  • 2017年04月25日 11:01
  • 340

CentOS 上升级Python 版本(upgrade python version)

在CentOS上升级Python的版本,几个命令就可以解决了。目前,CentOS6.5默认的Python版本是2.6.6 。假设你想升级到Python或者使用不同版本的Python项目。安装步骤如下:...
  • GreatElite
  • GreatElite
  • 2014年01月29日 13:29
  • 2678

How to Upgrade Linux Kernel to Stable 3.18.4 on CentOS 7.x How to Upgrade Linux...
  • zhbpd
  • zhbpd
  • 2017年07月02日 07:44
  • 134

CentOS下yum update与yum upgrade的区别

CentOS下yum update与yum upgrade的区别
  • php521php
  • php521php
  • 2015年01月29日 19:40
  • 6503
您举报文章:how to upgrade CentOS kernel