Linux Kernel 4.2.2 Compilation Installation Tutorial

Source: Internet
Author: User

It's not hard to install the latest Linux kernel, but don't be afraid to try Linux.

I configured the AMD Athlon X2 64 4600+ processor and the DDR2 2GB memory strip, the system is Xubuntu 15.04.

Now I share with you the experience, as I write this post, 4.2.2 is the latest official version of the kernel, so take 4.2.2 as an example.

First go to the official website to download 4.2.2 Kernel package, official address: https://www.kernel.org/

LINUX-4.2.2.TAR.GZ Official website: https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.2.2.tar.xz

After downloading the good source package, log in the system with the root user, put the source package into the/USR/SRC directory, extract it to the current directory with the Archive manager or unzip it with the following command.

tar -xf linux-4.2. 2. tar. XZ

After unpacking, CD into the linux-4.2.2 folder.

CD linux-4.2. 2

Then you can start to configure kernel options, but the kernel options are really outrageous, in fact, with the default is good, follow my command to do together.

 make Menuconfig

#执行这个操作如果出现报错的话, need to solve a package dependency problem, enter the following command can be resolved ( no error without the tube ):

apt-get Install Libncurses5-dev

Then we take a look at the options in Menuconfig, and then you load a couple of files, and then you should see something like this:

In this interface, * represents Yes, empty represents no,m for modularity (included with other options), the default is not to move it is good, and then more options you really want to see it one by one.

Arrow keys up and down can control the upper and lower toggle entries, the left and right keys can be toggled on the bottom of the Action Bar (<Select>/<Exit>/<Help>/<Save>/<Load>).

Switch directly to <Save> and then hit enter, prompting you to save the file named. config and hit enter <Ok>, prompting the profile to write to. config, and then tap enter again <Exit>.

Then back to the original interface, cut to <Exit> hit Enter to exit.

Once the above operation is complete, you can start the make kernel.

Make

The time for make is very long, or it may be the reason I'm poorly configured, it took me 3 hours to finish.

After make is complete, you can install the kernel module.

 make Modules_install

This is going to be fast, I'm done in 5 minutes, and I'm ready to install the new kernel.

 Make Install

When the installation is complete, grub is automatically modified and restarted by default with the new kernel and can be restarted and viewed with the Uname-r command.

The new kernel feeling is cool ah, if not automatically with the new kernel, in the Grub boot interface Select Advanced, choose 4.2.2 Kernel boot on the line, modify the default kernel of the method itself Baidu bar.

The new kernel can also be started by selecting the original kernel from the Advanced boot list.

Start over don't forget to delete the linux-4.2.2 folder, just leave a source package on the line.

sudo rm -f-r/usr/src/linux-4.2. 2

Finally do not forget to reload the graphics card driver, you need to first put the current video card driver uninstall and then reinstall, the method does not provide, after unloading, the original in what way to install the operation again can.

It is so simple, you can complete the latest Linux kernel compilation and installation, try it quickly.

Original address: http://www.cnblogs.com/vrgm/p/4850353.html

Linux Kernel 4.2.2 Compilation Installation Tutorial

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.