Get the App
SLTechnology News&Howtos  ›  Servers  › 

Steps for linux to compile the kernel

Shulou Source: shulou.com Published: 2022-06-03 07:50:16 12月06日 Update

With the development of the Internet, more and more people have entered the IT industry, so do you know the steps for linux to compile the kernel? In order to give you a better understanding of the steps of compiling the kernel with linux, the editor summarizes the following. Let's move on.

1. Download the required kernel version

2. Upload to the operating system

3. Decompress to / usr/src directory

For example: 3.19 kernel

Tar-xvf linux-3.19.tar.xz-C / usr/src

4. Create a connection

Cd / usr/srcln-sv / usr/src/linux-3.19 linux

5. Set the kernel

Cd / usr/src/linuxmake menuconfig

In this step, it is best to copy a previously run .config file and make changes on this file, otherwise, the restart may not work.

Such as the following:

Cp / boot/config-3.10.0-123.el7.x86_64 / usr/src/linux/.config

6. Compile the kernel

Make-may range from 1 hour to 3 hours.

Make modules_installmake install

7. Restart.

This is the end of the linux kernel compilation steps, of course, not only the above and everyone's analysis methods, but the editor can ensure that its accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.

Tags: Kernel compilation steps content hours files application of knowledge operating system Internet value accuracy method copy article more best version directory look system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Docker Apple vpn OPPO Reno