Kernel/zh-cn

"Linux内核"是操作系统的核心，提供了程序访问硬件的接口. 内核包含了绝大多数的设备驱动.

安装
To create a kernel, it is necessary to install the kernel source code first. The Gentoo recommended kernel sources for a desktop system are, of course,. These are maintained by the Gentoo developers, and patched to fix security vulnerabilities, functional problems, as well as to improve compatibility with rare system architectures.

安装之前，检查有效的USE flags：

Now install :

Portage树中还有各种备选的内核源代码：


 * - 官方的，没有打过补丁的内文源代码. 注意因为它们是Linux官方内核，不包含任何Gentoo的补丁，并不被Gentoo开发者支持.


 * A full list with short descriptions can be found by searching with emerge:



指南

 * Kernel sources overview: Guide explaining the various kernel source flavors Gentoo provides.


 * Manual configuration: Manual configuration enables the user, with some effort, to create a custom-fit kernel configuration.


 * Kernel Seeds:Like the option above, Kernels Seeds help the user, with some effort, create a custom-fit kernel configuration using an existing as a base.


 * Automatic configuration: genkernel is a tool to automatically configure and setup a kernel. The drivers needed for a system are detected and loaded at boot time.


 * Gentoo Kernel Configuration Guide: Gentoo内核配置指南.


 * Upgrade: 通过已有的内核配置升级新内核.


 * Removal: 如何移除旧的内核.


 * 2.4 to 2.6 Migration: 从2.4内核到2.6内核的迁移指南.

参考
See the kernel category.

External resources

 * Blogs related to the Linux kernel at planet.kernel.org/
 * Kernel statistics at kernelhub.org/
 * Torvald's kernel git source repository hosted at github.com/