2019-05-08 15:21:36 +00:00
|
|
|
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
=====================================
|
2007-11-29 00:21:56 +00:00
|
|
|
General note on [U]EFI x86_64 support
|
2019-05-08 15:21:36 +00:00
|
|
|
=====================================
|
2007-11-29 00:21:56 +00:00
|
|
|
|
|
|
|
The nomenclature EFI and UEFI are used interchangeably in this document.
|
|
|
|
|
|
|
|
Although the tools below are _not_ needed for building the kernel,
|
|
|
|
the needed bootloader support and associated tools for x86_64 platforms
|
|
|
|
with EFI firmware and specifications are listed below.
|
|
|
|
|
|
|
|
1. UEFI specification: http://www.uefi.org
|
|
|
|
|
|
|
|
2. Booting Linux kernel on UEFI x86_64 platform requires bootloader
|
|
|
|
support. Elilo with x86_64 support can be used.
|
|
|
|
|
|
|
|
3. x86_64 platform with EFI/UEFI firmware.
|
|
|
|
|
2019-05-08 15:21:36 +00:00
|
|
|
Mechanics
|
2007-11-29 00:21:56 +00:00
|
|
|
---------
|
2019-05-08 15:21:36 +00:00
|
|
|
|
|
|
|
- Build the kernel with the following configuration::
|
|
|
|
|
2007-11-29 00:21:56 +00:00
|
|
|
CONFIG_FB_EFI=y
|
|
|
|
CONFIG_FRAMEBUFFER_CONSOLE=y
|
2019-05-08 15:21:36 +00:00
|
|
|
|
2008-01-30 12:31:19 +00:00
|
|
|
If EFI runtime services are expected, the following configuration should
|
2019-05-08 15:21:36 +00:00
|
|
|
be selected::
|
|
|
|
|
2008-01-30 12:31:19 +00:00
|
|
|
CONFIG_EFI=y
|
2022-06-20 11:34:03 +00:00
|
|
|
CONFIG_EFIVAR_FS=y or m # optional
|
2019-05-08 15:21:36 +00:00
|
|
|
|
2007-11-29 00:21:56 +00:00
|
|
|
- Create a VFAT partition on the disk
|
|
|
|
- Copy the following to the VFAT partition:
|
2019-05-08 15:21:36 +00:00
|
|
|
|
2007-11-29 00:21:56 +00:00
|
|
|
elilo bootloader with x86_64 support, elilo configuration file,
|
|
|
|
kernel image built in first step and corresponding
|
2020-04-28 13:32:25 +00:00
|
|
|
initrd. Instructions on building elilo and its dependencies
|
2007-11-29 00:21:56 +00:00
|
|
|
can be found in the elilo sourceforge project.
|
2019-05-08 15:21:36 +00:00
|
|
|
|
2007-11-29 00:21:56 +00:00
|
|
|
- Boot to EFI shell and invoke elilo choosing the kernel image built
|
|
|
|
in first step.
|
2008-01-30 12:31:19 +00:00
|
|
|
- If some or all EFI runtime services don't work, you can try following
|
|
|
|
kernel command line parameters to turn off some or all EFI runtime
|
|
|
|
services.
|
2019-05-08 15:21:36 +00:00
|
|
|
|
|
|
|
noefi
|
|
|
|
turn off all EFI runtime services
|
|
|
|
reboot_type=k
|
|
|
|
turn off EFI reboot runtime service
|
|
|
|
|
2008-06-25 12:44:46 +00:00
|
|
|
- If the EFI memory map has additional entries not in the E820 map,
|
|
|
|
you can include those entries in the kernels memory map of available
|
|
|
|
physical RAM by using the following kernel command line parameter.
|
2019-05-08 15:21:36 +00:00
|
|
|
|
|
|
|
add_efi_memmap
|
|
|
|
include EFI memory map of available physical RAM
|