zoukankan      html  css  js  c++  java
  • update kernel

    1,version

    2,command

    First, verify the current kernel version:

    $ uname -r
    2.6.32-358.el6.x86_64
    

    Before you start, install all necessary prerequisite software for building a kernel:

    $ sudo yum groupinstall "Development Tools"
    $ sudo yum install ncurses-devel

    Also, install any existing updates on your system:

    $ sudo yum update

    Now you are ready to upgrade the kernel from 2.6.32 to 3.2.48 LTS.

    Download the new kernel source from kernel.org, and install it on your system:

    $ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.48.tar.xz
    $ sudo tar xvfvJ linux-3.2.48.tar.xz -C /usr/src  //no need
    $ cd /usr/src/linux-3.2.48

    Before compiling a new kernel, you need to generate a kernel configuration.

    If you want to generate a kernel configuration via graphical user interface, run:

    $ sudo make menuconfig

    Alternatively, if you want to use the same kernel configuration as the currently running kernel, run the following command instead. You still need to set any newly added configuration options by manually answering questions. If you do not know the meaning of each option, just press enter to accept a default answer.

    $ sudo make oldconfig

    If you want to use the same old kernel configuration, and automatically accept default answers to every question, run the following command instead:

    $ sudo sh -c 'yes "" | make oldconfig'

     ----------------------------------------------------------------

    After kernel configuration is done, go ahead and compile a new kernel:

    $ sudo make

     

    The above step will take 30 minutes or more, depending on your CPU speed. After compilation is completed, go ahead and install the new kernel (and all kernel modules) as follows.

    $ sudo make modules_install install
     
    OR
    make bzImage modules modules_install

     ----------------------------------------------------------------

    To use the newly built kernel in your system, you need to choose the new kernel on grub menu upon boot-up.

    Alternatively, edit /boot/grub/grub.conf to specify the new kernel as the default kernel to load. In /boot/grub/grub.conf, change the "default" number to whichever position your new kernel information is in the kernel list (counting starts at 0).

    $ sudo vi /boot/grub/grub.conf
    default=1
  • 相关阅读:
    由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。
    中晟银泰国际中心酒店式公寓介绍 业主交流QQ群:319843248
    社保关系转移
    在中国,大数据的有效商业模式在哪里?
    指点传媒:在手机上做“精准营销”
    说说大型高并发高负载网站的系统架构【转】
    BI的相关问题[转]
    python 中有趣的库tqdm
    python之字符串操作方法
    比Screen更好用的神器:tmux
  • 原文地址:https://www.cnblogs.com/eiguleo/p/4024180.html
Copyright © 2011-2022 走看看