Kernel/zh-cn

The Linux kernel is the core of the operating system and offers an interface for programs to access the hardware. The kernel contains most of the device drivers.

USE flags
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.

Emerge
Now install :

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


 * - The official, non-patched Linux kernel sources. These sources are left as is, they do not contain any additional patches and are therefore not supported by Gentoo support or developers.
 * - Gentoo sources with security enhancements.

Sources overview

 * Kernel sources overview: Most, if not all, of the kernel sources packages available in Gentoo are detailed in the kernel sources overview article. Navigate there for further knowledge on specific kernel sources available in the Portage tree.

Searching all alternatives
A full list of kernel sources with short descriptions can be found by searching with emerge:

Configuration help

 * Automatic configuration: genkernel is a tool used to automate the build process of the kernel and initramfs. The goal of genkernel is to help users through the kernel building process.


 * 手工配置: 手工配置使得用户——通过一些努力——可以创建一个定制的内核配置.


 * Gentoo kernel configuration guide: Gentoo's kernel configuration guide.


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


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


 * 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.


 * 2.4 to 2.6 Migration: Migration guide from Linux 2.4 to Linux 2.6. Since the Linux kernel codebase has significantly moved past 2.6, these migration steps are no longer relevant, but may be useful for helping administrators understand.

参考

 * The kernel category - All the kernel related articles on the wiki.

外部资源

 * planet.kernel.org/ - Blogs related to the Linux kernel.
 * kernelhub.org/ - A site dedicated to kernel statistics.
 * Torvalds' kernel source repositories:
 * Kernel source repository (Kernel.org).
 * kernel Kernel source repository (GitHub mirror).