diff options
Diffstat (limited to 'chapter10/kernel.xml')
-rw-r--r-- | chapter10/kernel.xml | 107 |
1 files changed, 15 insertions, 92 deletions
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml index 9e522cb0d..8609b1474 100644 --- a/chapter10/kernel.xml +++ b/chapter10/kernel.xml @@ -130,84 +130,15 @@ <para>Be sure to enable/disable/set the following features or the system might not work correctly or boot at all:</para> -<screen role="nodump" revision="sysv"><emphasis role='blue'>G</emphasis>eneral setup ---> - [ ] <emphasis role='blue'>C</emphasis>ompile the kernel with warnings as errors [CONFIG_WERROR] - <emphasis role='blue'>C</emphasis>PU/Task time and stats accounting ---> - [*] <emphasis role='blue'>P</emphasis>ressure stall information tracking [CONFIG_PSI] - [ ] <emphasis role='blue'>R</emphasis>equire boot parameter to enable pressure stall information tracking - [CONFIG_PSI_DEFAULT_DISABLED] - < > <emphasis role='blue'>E</emphasis>nable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS] - [*] <emphasis role='blue'>C</emphasis>ontrol Group support [CONFIG_CGROUPS] ---> - [*] M<emphasis role='blue'>e</emphasis>mory controller [CONFIG_MEMCG] - [ ] <emphasis role='blue'>C</emphasis>onfigure standard kernel features (expert users) [CONFIG_EXPERT] - -<emphasis role='blue'>P</emphasis>rocessor type and features ---> - [*] <emphasis role='blue'>B</emphasis>uild a relocatable kernel [CONFIG_RELOCATABLE] - [*] <emphasis role='blue'>R</emphasis>andomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE] - -<emphasis role='blue'>G</emphasis>eneral architecture-dependent options ---> - [*] <emphasis role='blue'>S</emphasis>tack Protector buffer overflow detection [CONFIG_STACKPROTECTOR] - [*] <emphasis role='blue'>S</emphasis>trong Stack Protector [CONFIG_STACKPROTECTOR_STRONG] - -<emphasis role='blue'>D</emphasis>evice Drivers ---> - <emphasis role='blue'>G</emphasis>eneric Driver Options ---> - [ ] <emphasis role='blue'>S</emphasis>upport for uevent helper [CONFIG_UEVENT_HELPER] - [*] M<emphasis role='blue'>a</emphasis>intain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS] - [*] <emphasis role='blue'>A</emphasis>utomount devtmpfs at /dev, after the kernel mounted the rootfs - [CONFIG_DEVTMPFS_MOUNT] - <emphasis role='blue'>G</emphasis>raphics support ---> - <emphasis role='blue'>F</emphasis>rame buffer Devices ---> - <*> <emphasis role='blue'>S</emphasis>upport for frame buffer devices ---> - <emphasis role='blue'>C</emphasis>onsole display driver support ---> - [*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE]</screen> - -<screen role="nodump" revision="systemd"> -General setup ---> - [ ] Compile the kernel with warnings as errors [CONFIG_WERROR] - [ ] Auditing Support [CONFIG_AUDIT] - CPU/Task time and stats accounting ---> - [*] Pressure stall information tracking [CONFIG_PSI] - [ ] Require boot parameter to enable pressure stall information tracking - [CONFIG_PSI_DEFAULT_DISABLED] - < > Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS] - [*] Control Group support [CONFIG_CGROUPS] ---> - [*] Memory controller [CONFIG_MEMCG] - [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT] - -Processor type and features ---> - [*] Build a relocatable kernel [CONFIG_RELOCATABLE] - [*] Randomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE] - -General architecture-dependent options ---> - [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP] - [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR] - [*] Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG] - -[*] Networking support ---> [CONFIG_NET] - Networking options ---> - [*] TCP/IP networking [CONFIG_INET] - <*> The IPv6 protocol [CONFIG_IPV6] - -Device Drivers ---> - Generic Driver Options ---> - [ ] Support for uevent helper [CONFIG_UEVENT_HELPER] - [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS] - [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs - [CONFIG_DEVTMPFS_MOUNT] - Firmware Loader ---> - [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER] - Firmware Drivers ---> - [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID] - Graphics support ---> - Frame buffer Devices ---> - <*> Support for frame buffer devices ---> - Console display driver support ---> - [*] Framebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE] - -File systems ---> - [*] Inotify support for userspace [CONFIG_INOTIFY_USER] - Pseudo filesystems ---> - [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen> + <!-- To editors: for updating kernel configuration, edit + kernel/*.toml and regenerate kernel/*.xml with + "make -C kernel KERNEL_TREE=</usr/src/linux-&linux-version> --> + + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="kernel/sysv.xml"/> + + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="kernel/systemd.xml"/> <para>Enable some additional features if you are building a 64-bit system. If you are using menuconfig, enable them in the order of @@ -216,31 +147,23 @@ File systems ---> <parameter>CONFIG_X86_X2APIC</parameter> because an option only shows up after its dependencies are selected.</para> -<screen role="nodump"><emphasis role='blue'>P</emphasis>rocessor type and features ---> - [*] <emphasis role='blue'>S</emphasis>upport x2apic [CONFIG_X86_X2APIC] - -Device Drivers ---> - [*] <emphasis role='blue'>P</emphasis>CI Support ---> [CONFIG_PCI] - [*] M<emphasis role='blue'>e</emphasis>ssage Signaled Interrupts (MSI and MSI-X) [CONFIG_PCI_MSI] - [*] <emphasis role='blue'>I</emphasis>OMMU Hardware Support ---> [CONFIG_IOMMU_SUPPORT] - [*] <emphasis role='blue'>S</emphasis>upport for Interrupt Remapping [CONFIG_IRQ_REMAP]</screen> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="kernel/x2apic.xml"/> <para>If you are building a 32-bit system running on a hardware with RAM more than 4GB, adjust the configuration so the kernel will be able to use up to 64GB physical RAM:</para> - <screen role="nodump"><emphasis role='blue'>P</emphasis>rocessor type and features ---> - H<emphasis role='blue'>i</emphasis>gh Memory Support ---> - (X) <emphasis role='blue'>6</emphasis>4GB [CONFIG_HIGHMEM64G]</screen> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="kernel/highmem.xml"/> <para>If the partition for the LFS system is in a NVME SSD (i. e. the device node for the partition is <filename>/dev/nvme*</filename> instead of <filename>/dev/sd*</filename>), enable NVME support or the LFS system won't boot:</para> - <screen role="nodump"><emphasis role='blue'>D</emphasis>evice Drivers ---> - N<emphasis role='blue'>V</emphasis>ME Support ---> - <*> N<emphasis role='blue'>V</emphasis>M Express block device [CONFIG_BLK_DEV_NVME]</screen> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="kernel/nvme.xml"/> </note> <note revision="systemd"> |