From: Guo Dong Date: Fri, 12 Feb 2021 04:30:49 +0000 (-0700) Subject: UefiPayloadPkg/PlatformBootManager: Connect console after EndOfDxe X-Git-Tag: edk2-stable202102~36 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2e1e8c35f3178df95d79da81ac6deec242da74c2 UefiPayloadPkg/PlatformBootManager: Connect console after EndOfDxe Currently the console is connected before EndOfDxe causing OptionsROMs to be loaded, but their drivers aren't used and thus no GOP is installed. To make use of 3rdparty OptionROMs connect the console after EndOfDxe. Tested on Intel CFL board using Nvidia Quadro GPU. Signed-off-by: Patrick Rudolph Reviewed-by: Guo Dong Reviewed-by: Sunny Wang --- diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index c5c6af0abc..7fa3a048b7 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -157,8 +157,6 @@ PlatformBootManagerBeforeConsole ( EFI_INPUT_KEY Down; EFI_BOOT_MANAGER_LOAD_OPTION BootOption; - PlatformConsoleInit (); - // // Register ENTER as CONTINUE key // @@ -192,6 +190,8 @@ PlatformBootManagerBeforeConsole ( // Dispatch deferred images after EndOfDxe event and ReadyToLock installation. // EfiBootManagerDispatchDeferredImages (); + + PlatformConsoleInit (); } /**