From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com []) by mx.groups.io with SMTP id smtpd.web12.10887.1603160515520632101 for ; Mon, 19 Oct 2020 19:22:00 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: heng.luo@intel.com) IronPort-SDR: vbp/cEQA1wYNv06hpzKmS6Tbf2yOjH40AKIEKNNI/39mOvz7XmEt88wBvFEe8gj22m2KvVXnW8 UJRJ/w2vfY0A== X-IronPort-AV: E=McAfee;i="6000,8403,9779"; a="154082283" X-IronPort-AV: E=Sophos;i="5.77,395,1596524400"; d="scan'208";a="154082283" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2020 19:22:00 -0700 IronPort-SDR: RTuH87av+Q6pOLgrUFDCyeYfV8pzu71H8GXX4HP+SHjTz7trGXURKyY7EZZdOtrsxz3jMS4jrn qVZK8peyyzvw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,395,1596524400"; d="scan'208";a="523322882" Received: from hengluo-dev.ccr.corp.intel.com ([10.239.153.154]) by fmsmga005.fm.intel.com with ESMTP; 19 Oct 2020 19:21:59 -0700 From: "Heng Luo" To: devel@edk2.groups.io Cc: Eric Dong , Chasel Chiu , Nate DeSimone Subject: [PATCH 2/2] UpXtreme: console redirect after the shell is loaded Date: Tue, 20 Oct 2020 10:21:44 +0800 Message-Id: <20201020022144.2261-3-heng.luo@intel.com> X-Mailer: git-send-email 2.24.0.windows.2 In-Reply-To: <20201020022144.2261-1-heng.luo@intel.com> References: <20201020022144.2261-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..6eb7eb1d90 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|BoardModulePkg/Library/SerialPortTerminalLib/SerialPortTerminalLib.= 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