audk/ArmPkg
Nhi Pham 6254037223 ArmPkg: Implement PlatformBootManagerLib for LinuxBoot
LinuxBoot is a firmware that replaces specific firmware functionality
like the UEFI DXE phase with a Linux kernel and runtime. It is built-in
UEFI image like an application, which is executed at the end of DXE
phase.

To achieve the LinuxBoot boot flow "SEC->PEI->DXE->BDS->LinuxBoot",
today we use the common well-known GUID of UEFI Shell for LinuxBoot
payload, so LinuxBoot developers can effortlessly find the UEFI Shell
Application and replace it with the LinuxBoot payload without
recompiling platform EDK2 (There might be an issue with a few systems
that don't have a UEFI Shell). Also, we have a hard requirement to force
the BDS to boot into the LinuxBoot as it is essentially required that
only the LinuxBoot boot option is permissible and UEFI is an
intermediate bootstrap phase. Considering all the above, it is
reasonable to just have a new GUID for LinuxBoot and require a LinuxBoot
specific BDS implementation. In addition, with making the BDS
implementation simpler, we can reduce many DXE drivers which we think it
is not necessary for LinuxBoot booting.

This patch adds a new PlatformBootManagerLib implementation which
registers only the gArmTokenSpaceGuid.PcdLinuxBootFileGuid for LinuxBoot
payload as an active boot option. It allows BDS to jump to the LinuxBoot
quickly by skipping the UiApp and UEFI Shell.

The PlatformBootManagerLib library derived from
ArmPkg/Library/PlatformBootManagerLib.

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Acked-by: Moritz Fischer <moritzf@google.com>
2021-10-23 08:38:20 +00:00
..
Drivers ArmPkg: Use PcdPciIoTranslation PCD from MdePkg 2021-10-14 06:25:52 +00:00
Filesystem/SemihostFs ArmPkg: Correct small typos 2021-04-28 12:03:51 +00:00
Include ArmPkg/IndustryStandard: 32b/64b agnostic FF-A, Mm SVC and Std SMC IDs 2021-08-11 11:32:32 +00:00
Library ArmPkg: Implement PlatformBootManagerLib for LinuxBoot 2021-10-23 08:38:20 +00:00
Universal/Smbios ArmPkg/Smbios: Fix max cache size 2 wrong issue 2021-10-15 10:47:50 +00:00
ArmPkg.ci.yaml ArmPkg: SpellCheck: Update valid acronyms in ExtendedWords 2021-06-16 14:40:00 +00:00
ArmPkg.dec ArmPkg: Implement PlatformBootManagerLib for LinuxBoot 2021-10-23 08:38:20 +00:00
ArmPkg.dsc ArmPkg: Implement PlatformBootManagerLib for LinuxBoot 2021-10-23 08:38:20 +00:00