Replace the Ubuntu kernel

Source: Internet
Author: User

    1. To install the Prerequisite Software Compilation tool:

      To view the current version of the kernel:

      Command:uname-r

More query version commands: http://www.cnblogs.com/sodu88/p/4436984.html.

?

To install the Software compilation tool:

Command:sudo apt-get install libncurses5-dev build-essential kernel-package

Attention:

(1) Libncurses5-dev is prepared for the subsequent configuration of the internal nuclear power run make Menuconfig program

Build-essential is the compilation tool, Kernel-package is the compiler kernel tool

(2) If the system shows that the three files cannot be found, enter the #apt-get update data source.

?

  1. Download kernel

    Kernel Source URL: https://www.kernel.org/pub/linux/kernel/

    Download the required kernel linux-2.6.32.tar.gz

  2. Unzip the kernel

    Command:sudo tar xvf linux-2.6.32.tar.gz-c/usr/src/

  3. Configuring the Kernel
    1. Enter the source file directory:

      Command:cd/usr/src/linux-2.6.32/

    2. We recommend that you use the current system configuration file using the current system configuration file method:

      Command:sudo cp/boot/config-3.16.0-23-generic./.config

    3. then go to menuconfig and select the Load option.

      Command:sudo make menuconfig

      ?

      Note: Using the kernel configuration file generated by make Menuconfig, decide whether to compile the various functional systems of the kernel into the kernel or to the modules or not to compile. The specific kernel configuration operation is not described here, but it is recommended to execute the make Menuconfig command even if you do not intend to configure it, because if you do not do this, you will be prompted to answer a number of questions when you compile the kernel later.

      The kernel configuration can be consulted:

      Make Menuconfig configuration detailed: http://blog.csdn.net/xuyuefei1988/article/details/8635539

      Http://www.linuxidc.com/Linux/2012-06/63092.htm

      ?

      There are many other ways to configure the kernel, the main differences are as follows:

      #make Menuconfig//Graphical tool interface based on the NCurse library

      #make config???????? Text-based command line tool, not recommended

      #make xconfig???????? Based on the X11 graphical tool interface

      #make gconfig???? GTK +-based graphical tool interface

      ?

      Here you choose the simple configuration kernel method, which is make menuconfig. After the terminal enters make Menuconfig and waits a few seconds, the terminal becomes a graphical kernel configuration interface. When configured, most options use their default values, and only a small percentage of them need to be selected according to different needs.

      For each configuration option, the user has three choices, each of which represents the following meanings:

      <*> or [*]--to compile the feature into the kernel

      [ ] ???? --Do not compile the feature into the kernel

      [m]--compiles this functionality into code that can be dynamically inserted into the kernel when needed

  4. compile, install kernel

    Enter make to start compiling, this process takes about 40-100 minutes, Depends on the speed of your machine ...

    compile kernel:

    command: sudo make

    Note: Various errors may occur during compilation, specific solutions view: http://www.cnblogs.com/sodu88/p /4437090.html

    install kernel:

    command: sudo make install

    Compile module:

    command: sudo make modules

    Installation module:

    command: sudo make Modules_install

    command: mkinitramfs-o/boot/initrd.img-2.6.32 2.6.32

  5. Automatically finds the new kernel and adds it to the grub boot

Command:sudo update-grub

    1. Modify the/boot/grub/grub.cfg file

      Comment out the original kernel file and modify the

OK, so far, the new kernel is all successful! Reboot and try it!

    1. View New kernel

Replace the Ubuntu kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.