linux 内核源码 编译_如何在现有Linux操作系统中从源代码编译和安装Linux内核

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的示例。

下载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
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值