linux 内核源码 编译
Building Linux kernel may sound a complex and geek-only thing. However, as Linux kernel itself has much less depended tools/packages compared to other software packages, it is quite easy to compile, build and install a Linux kernel from the source code in an existing Linux OS. Building Linux kernel is needed if you need to build a specific Linux kernel or update your drivers for a kernel by yourself. This post will go through the steps for compiling and installing Linux kernel. In this post, we will use the example of building kernel 4.10.1 on CentOS 7.
构建Linux内核听起来可能是一件复杂且极客的事情。 然而,随着Linux内核本身更依赖工具/包相比其他软件的软件包,它是很容易编写,构建和在现有的Linux操作系统上安装从源代码Linux内核。 如果需要构建特定的Linux内核或自己更新内核驱动程序,则需要构建Linux内核。 这篇文章将介绍编译和安装Linux内核的步骤。 在本文中,我们将使用在CentOS 7上构建内核4.10.1的示例。
![](https://www.systutorials.com/wp/files/2015/04/linux_opensource.png)
下载Linux内核的源代码 (Download the source code of Linux kernel)
Download a release from [[https://www.kernel.org/|kernel.org]].
从[[ https://www.kernel.org/|kernel.org ]]下载发行版。
For the example, we download the 4.10.1 kernel:
对于此示例,我们下载了4.10.1内核:
# wget