From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web09.5671.1603440849296652168 for ; Fri, 23 Oct 2020 01:14:09 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: heng.luo@intel.com) IronPort-SDR: 3pOWIVh2lSqo1ce2hMTwpNWq9BsrBF7tBuOJhS5xS9YTCJFuaeWqwA0aosZInq5zjRhcLNAflf NUfvRIz0NbDg== X-IronPort-AV: E=McAfee;i="6000,8403,9782"; a="252342520" X-IronPort-AV: E=Sophos;i="5.77,407,1596524400"; d="scan'208";a="252342520" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2020 01:14:04 -0700 IronPort-SDR: 7RINWwrTmsKfuxxp5aOOW3BhHdYGgrDrmtuXkn11BbDInLEgV75zkdNxYvt+N1VbpUEQa93OFA St8MEXoAGjnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,407,1596524400"; d="scan'208";a="349117494" Received: from hengluo-dev.ccr.corp.intel.com ([10.239.153.154]) by fmsmga004.fm.intel.com with ESMTP; 23 Oct 2020 01:14:03 -0700 From: "Heng Luo" To: devel@edk2.groups.io Cc: Eric Dong , Chasel Chiu , Nate DeSimone Subject: [Patch V2 2/2] UpXtreme: console redirect after the shell is loaded Date: Fri, 23 Oct 2020 16:13:56 +0800 Message-Id: <20201023081356.5167-2-heng.luo@intel.com> X-Mailer: git-send-email 2.24.0.windows.2 In-Reply-To: <20201023081356.5167-1-heng.luo@intel.com> References: <20201023081356.5167-1-heng.luo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3014 Use SerialPortTerminalLib to get console redirect after the shell is loaded: 1. Add SerialPortTerminalLib to BdsDxe driver, to add the serial device to ConIn and ConOut variables 2. Include SerialDxe and TerminalDxe to the Up Xtreme's OpenBoardPkg.dsc and OpenBoardPkg.fdf Cc: Eric Dong Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Heng Luo --- Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.dsc | 9 +++++= +++- Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.fdf | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.d= sc b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.dsc index fb493973e2..4c472cf9ee 100644 --- a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.dsc +++ b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.dsc @@ -39,7 +39,8 @@ #=0D # Include PCD configuration for this board.=0D #=0D - !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc=0D=0D + !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc=0D +=0D !include OpenBoardPkgPcd.dsc=0D !include AdvancedFeaturePkg/Include/AdvancedFeatures.dsc=0D =0D @@ -82,6 +83,12 @@ [Components.X64]=0D !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeInclude.dsc=0D !include $(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc=0D +MdeModulePkg/Universal/BdsDxe/BdsDxe.inf{=0D +=0D + NULL|SerialDebugFeaturePkg/Library/SerialPortTerminalLib/SerialPortTermi= nalLib.inf=0D +}=0D +MdeModulePkg/Universal/SerialDxe/SerialDxe.inf=0D +MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf=0D =0D #######################################=0D # Build Option Includes=0D diff --git a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.f= df b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.fdf index 0d99114961..e15cb7dfa9 100644 --- a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.fdf +++ b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.fdf @@ -342,6 +342,8 @@ INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridg= eDxe.inf INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf=0D INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf=0D INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf=0D +INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf=0D +INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf=0D INF MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.in= f=0D INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf=0D INF BoardModulePkg/LegacySioDxe/LegacySioDxe.inf=0D --=20 2.24.0.windows.2