From 8e65a6a3ae63588df226e06fac495de1e097bf64 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 8 Jan 2017 17:45:12 +0000 Subject: [PATCH] Expand discussion of UEFI in kernel and grub sections git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11165 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/grub.xml | 21 ++++++++++++--------- chapter08/kernel.xml | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 71d1d4c23..295085bc0 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -38,15 +38,18 @@ grub-mkrescue --output=grub-img.iso xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso - Most newer systems now come with system firmware that is in - UEFI (Unified Extensible Firmware Interface) mode by default. To boot LFS - on these systems using the instructions here, the UEFI Mode and Secure Boot - capabilities need to be turned off. There are ways to boot with these - capabilities still enabled, but then are not covered here. For details, - see - the lfs-uefi.txt hint at - http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt. + + + To boot LFS on host systems that have UEFI enabled, the kernel needs to + have been built with the CONFIG_EFI_STUB capabality described in the + previous section. However, LFS can be booted using GRUB2 without such + an addition. To do this, the UEFI Mode and Secure Boot capabilities in + the host system's BIOS need to be turned off. For details, see + the lfs-uefi.txt hint at + http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt. + + diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 5c9cf9026..838e2ad94 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -121,6 +121,24 @@ File systems ---> Index of Kernel Settings (&lfs-root;blfs/view/&short-version;/longindex.html#kernel-config-index). + + If your host hardware is using UEFI, then the 'make defconfig' + above should automatically add in some EFI-related kernel options. + + In order to allow your LFS kernel to be booted from within your + host's UEFI boot environment, your kernel must have this option + selected: + +Processor type and features ---> + [*] EFI stub support [CONFIG_EFI_STUB] + + A fuller description of managing UEFI environments from within LFS + is covered by the lfs-uefi.txt hint at + . + + + The rationale for the above configuration items: