The PlatformBdsShowProgress() supports graphics mode only, which is not
applicable for RS-232 serial console. Show the progress message as a console
text message in case PlatformBdsShowProgress() fails.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daniil Egranov <daniil.egra...@arm.com>
---
 IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c 
b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
index 6958979..7d21cc3 100644
--- a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
+++ b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
@@ -925,7 +925,7 @@ ShowProgress (
         // Show progress
         //
         if (TmpStr != NULL) {
-          PlatformBdsShowProgress (
+          Status = PlatformBdsShowProgress (
             Foreground,
             Background,
             TmpStr,
@@ -933,12 +933,19 @@ ShowProgress (
             ((TimeoutDefault - TimeoutRemain) * 100 / TimeoutDefault),
             0
             );
+          if (EFI_ERROR(Status)) {
+            //if graphics mode is not supported (serial console) show text 
progress message
+            AsciiPrint ("\rPress any key to enter Boot Menu in %d seconds     
", TimeoutRemain);
+          }
         }
       }
     }
     
     if (TmpStr != NULL) {
       gBS->FreePool (TmpStr);
+        if (EFI_ERROR(Status)) {
+          AsciiPrint ("\n");
+        }
     }
 
     //
-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to