I confirm Lazlo statements. It works the same on ARM (development)
platforms. We use Console Splitter.
We use EmbeddedPkg/SerialDxe to produce gEfiSerialIoProtocolGuid.


> -----Original Message-----
> From: Laszlo Ersek [mailto:[email protected]]
> Sent: 08 August 2014 17:59
> To: [email protected]
> Subject: Re: [edk2] [OVFM] Example usage of the BaseSerialPortLibIoPort
> OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
> 
> On 08/08/14 15:41, Paolo Bonzini wrote:
> > Il 08/08/2014 00:49, Laszlo Ersek ha scritto:
> >> - Will this redirection break the terminal driver, for example? OVMF
> >> does make use of the serial port even when DEBUG() goes to the QEMU
> >> debug port. For example, thanks to ConSplitterDxe, the setup screens
> >> (Boot manager, Boot maintenance manager etc) are fully usable on the
> >> virtual serial port. I don't immediately see how that stack is
> built,
> >> but it should not be disturbed. (I don't know if this patch disturbs
> it,
> >> I'm asking.)
> >>
> >> ... TerminalDxe seems to consume gEfiSerialIoProtocolGuid, which
> seems
> >> to be provided by IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe.
> Hmm... I
> >> think that one doesn't depend on SerialPortLib. Good.
> >
> > Does that mean we lack an equivalent of IsaSerialDxe for ARM?
> There's
> > nothing in ArmPlatformPkg that produces gEfiSerialIoProtocolGuid.
> 
> See "EmbeddedPkg/SerialDxe". (EmbeddedPkg provides many modules for the
> ARM DSCs.)
> 
> EmbeddedPkg/SerialDxe itself depends on and delegates to SerialPortLib
> and SerialPortExtLib (eg. it calls SerialPortWrite()). If you run
> 
> $ git grep -l -E 'LIBRARY_CLASS *= *(SerialPortLib|SerialPortExtLib)'
> 
> there's a number of hits:
> 
>   ArmPkg/Library/SemiHostingSerialPortLib
>   ArmPlatformPkg/Library/PL011SerialPortLib
>   EmbeddedPkg/Library/TemplateSerialPortExtLib
>   EmbeddedPkg/Library/TemplateSerialPortLib
>   EmulatorPkg/Library/DxeEmuSerialPortLib
>   EmulatorPkg/Library/DxeEmuStdErrSerialPortLib
>   EmulatorPkg/Library/PeiEmuSerialPortLib
>   MdeModulePkg/Library/BaseSerialPortLib16550
>   MdePkg/Library/BaseSerialPortLibNull
>   Omap35xxPkg/Library/SerialPortLib
>   PcAtChipsetPkg/Library/SerialIoLib
> 
> Some of these are obviously emulators / null implementations, but some
> look like real hardware drivers usable on ARM (PL011SerialPortLib,
> Omap35xxPkg).
> 
> Running the same grep on Linaro's uefi-next tree
> <git://git.linaro.org/arm/uefi/uefi-next.git>, you get more:
> 
> - Omap44xxPkg/Library/SerialPortLib
> - SamsungPlatformPkg/ExynosPkg/Exynos5250/Library/SerialPortLib
> 
> Laszlo
> 
> 
> -----------------------------------------------------------------------
> -------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel





------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to