public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: "Piotr Król" <piotr.krol@3mdeb.com>, edk2-devel@lists.01.org
Subject: Re: CorebootPayloadPkg: redirect UEFI Shell to serial
Date: Tue, 11 Jul 2017 20:01:44 +0200	[thread overview]
Message-ID: <c757d940-82be-a96a-4985-56344e7f1470@redhat.com> (raw)
In-Reply-To: <721bf59b-166b-7a67-a1e7-b3e30d2487d3@3mdeb.com>

On 07/10/17 23:31, Piotr Król wrote:
> Hi all,
> I'm trying to enable CorebootPayloadPkg on PC Engines APU2 (AMD Embedded
> G series GX-412TC). I passed some asserts related to RTC and memory
> reservation for LAPIC/APIC/HPET. Now it looks like I'm starting UEFI Shell:
> 
> [Bds]Booting UEFI Shell
> [Bds] Expand
> MemoryMapped(0xB,0x830000,0xC0FFFF)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1)
> ->
> MemoryMapped(0xB,0x830000,0xC0FFFF)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1)
> PROGRESS CODE: V03058000 I0
> InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B CF8FBD40
> Loading driver at 0x000CF54D000 EntryPoint=0x000CF556CCF Shell.efi
> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF CF927818
> ProtectUefiImageCommon - 0xCF8FBD40
>   - 0x00000000CF54D000 - 0x00000000000F4380
> PROGRESS CODE: V03058001 I0
> InstallProtocolInterface: 387477C2-69C7-11D2-8E39-00A0C969723B CF8DEBA0
> InstallProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA CF8DDF98
> 
> What's missing is UEFI Shell output on serial console. APU2 do not have
> wired video output. That's why I would like to enable UEFI Shell output
> to serial.
> 
> I tried to replace DebugLib with
> MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf, but
> this lead to reboot after loading protocols.
> 
> I believe this is well known problem, but cannot find information about
> that. Any pointers would be appreciated.

CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc seems to correctly
include the general SerialDxe driver:

  #
  # ISA Support
  #
  MdeModulePkg/Universal/SerialDxe/SerialDxe.inf

and on top of that, the terminal and console drivers:

  #
  # Console Support
  #
  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf

I imagine SerialDxe is not configured correctly for the platform. Can
you look into the PCDs that SerialDxe consumes (see the INF file),
and/or whether
"CorebootModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf",
which SerialDxe depends on in the CorebootPayloadPkg build, is
appropriate for your hardware? (This lib instance also consumes a large
set of PCDs.)

Laszlo


  reply	other threads:[~2017-07-11 18:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-10 21:31 CorebootPayloadPkg: redirect UEFI Shell to serial Piotr Król
2017-07-11 18:01 ` Laszlo Ersek [this message]
2017-07-13 23:53   ` Piotr Król
2017-07-14  1:06     ` Laszlo Ersek
2017-07-15 13:00       ` Piotr Król
2017-07-25  9:16         ` Laszlo Ersek
2017-08-05  0:13           ` Piotr Król

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=c757d940-82be-a96a-4985-56344e7f1470@redhat.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