public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Nate DeSimone" <nathaniel.l.desimone@intel.com>
To: "Luo, Heng" <heng.luo@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Dong, Eric" <eric.dong@intel.com>,
	"Chiu, Chasel" <chasel.chiu@intel.com>,
	Michael Kubacki <Michael.Kubacki@microsoft.com>
Subject: Re: [Patch V2 2/2] UpXtreme: console redirect after the shell is loaded
Date: Tue, 27 Oct 2020 22:36:48 +0000	[thread overview]
Message-ID: <MWHPR1101MB21609B3E2E911B4514700710CD160@MWHPR1101MB2160.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20201023081356.5167-2-heng.luo@intel.com>

Hey Heng,

Please see feedback inline.

On 10/23/20, 1:14 AM, Luo, Heng <heng.luo@intel.com> wrote:

> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3014
> 
> 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 <eric.dong@intel.com>
> Cc: Chasel Chiu <chasel.chiu@intel.com>
> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
> Signed-off-by: Heng Luo <heng.luo@intel.com>
> ---
>  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.dsc 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 @@
>    #
>    # Include PCD configuration for this board.
>    #
> -  !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc
> +  !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc
> +
>    !include OpenBoardPkgPcd.dsc
>    !include AdvancedFeaturePkg/Include/AdvancedFeatures.dsc
>  
> @@ -82,6 +83,12 @@
>  [Components.X64]
>  !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeInclude.dsc
>  !include $(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc
> +MdeModulePkg/Universal/BdsDxe/BdsDxe.inf{
> +<LibraryClasses>
> +  NULL|SerialDebugFeaturePkg/Library/SerialPortTerminalLib/SerialPortTerminalLib.inf

Should only be included if PcdSerialTerminalFeatureEnable == TRUE

> +}
> +MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
> +MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
>  
>  #######################################
>  # Build Option Includes
> diff --git a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkg.fdf 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/PciHostBridgeDxe.inf
>  INF  MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
>  INF  MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
>  INF  MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
> +INF  MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
> +INF  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf

It would be better to put this into Features/Intel/Debugging/SerialTerminalFeaturePkg/Include/PostMemory.fdf
Then you don't need to modify the .fdf file for every BoardPkg to enable this advanced feature.

>  INF  MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
>  INF  MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
>  INF  BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
> -- 
> 2.24.0.windows.2

Thanks,
Nate


  reply	other threads:[~2020-10-27 22:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23  8:13 [Patch V2 1/2] AdvancedFeaturePkg: Add SerialPortTerminalLib Heng Luo
2020-10-23  8:13 ` [Patch V2 2/2] UpXtreme: console redirect after the shell is loaded Heng Luo
2020-10-27 22:36   ` Nate DeSimone [this message]
2020-10-27 22:36 ` [Patch V2 1/2] AdvancedFeaturePkg: Add SerialPortTerminalLib Nate DeSimone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MWHPR1101MB21609B3E2E911B4514700710CD160@MWHPR1101MB2160.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox