From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cloudserver096301.home.net.pl (cloudserver096301.home.net.pl [79.96.179.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 07DFA21A00AFA for ; Thu, 13 Jul 2017 16:51:29 -0700 (PDT) Received: from 109241231046.gdansk.vectranet.pl (109.241.231.46) (HELO [192.168.0.106]) by serwer1539010.home.pl (79.96.179.35) with SMTP (IdeaSmtpServer 0.82) id f4cd7dcb3eb61e42; Fri, 14 Jul 2017 01:53:14 +0200 To: Laszlo Ersek , edk2-devel@lists.01.org References: <721bf59b-166b-7a67-a1e7-b3e30d2487d3@3mdeb.com> From: =?UTF-8?Q?Piotr_Kr=c3=b3l?= Message-ID: <5f50924b-c781-2715-2447-a7a94d571efb@3mdeb.com> Date: Fri, 14 Jul 2017 01:53:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: CorebootPayloadPkg: redirect UEFI Shell to serial X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2017 23:51:30 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/11/2017 08:01 PM, Laszlo Ersek wrote: Hi Laszlo, thanks for taking time to reply. > > 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), Logs appear correctly in DXE and BDS, so at least at some point it works. Boot logs for SHELL_TYPE=UEFI_BIN adn SHELL_TYPE=BUILD_UEFI: http://81.95.197.197:7777/aciqabilaw http://81.95.197.197:7777/ijopesosuy It would be great to have the same for Shell application. Board schematics is open and available here: http://www.pcengines.ch/schema/apu2c.pdf You can see that serial is exposed through LPC. I tried to modify PcdSerialUseMmio to TRUE, but it doesn't seem to affect anything. Linux say "ttyS0 at I/O 0x3f8", so using IO seems to be fine. > 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.) I was able to get some results after removing: DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf from Shell.inf section in DSC. Boot log: http://81.95.197.197:7777/isenazutac As you can see I'm getting some logs from Shell entry point and it looks like DoShellPrompt start, but it doesn't appear on serial. In DoShellPrompt thing wait on ShellInfoObject.NewEfiShellProtocol->ReadFile so it seems no input from serial is accepted. Any further steps appreciated. I believe I need no stuff related to GOP, maybe it cause some problems ? Best Regards, - -- Piotr Król Embedded Systems Consultant https://3mdeb.com | @3mdeb_com -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE4DCbLYWmfoRjKeNLsu5x6WeqnkwFAlloB+kACgkQsu5x6Weq nkxUJRAAn8vB7qYm7vvFiAU8n7YM3AkkJyWs0KoQOO/4vDqJU8/O3dgDsnOhMfa8 T4xD0w/DBRdn7l06IrEnGHrYq6qH7zXmY7H3+QU4J55off/LHqNYm1SwJ+8LCDU0 /3+8VKaG3j3SR+nw/+iYAK+jPRFC0CtRIT2eNseqRHyZyvVaBEs/gcmv0znHqAjS rxkXc9VpkRbMq/dpoPpSbLtCf2D0d9G7QeyML4K+Kqhx66dnaKckUz7jS9amWE5b diFH8rI9IzxugO4Yg/SQsGKnGdR2c4oOxiZbV+p8fbe/AyE5qB76V+YpM9bChB/0 5/kaiWrD4S4ucZH9mRb63Km4rFZV3Km2P0EWZvtaGNacIjvLoYH6kXlqDVemdDRQ FxGhswPxDFYkhoXKN2TVUOVihKde37pkU2txDheQ60HdzcRl4uu3kSoX1g3j9gxe +cDOv/K8GePbp6QRhVtOqz6qIsPbpffjucqnJ5fjKkHOqSFcj8d9hKhREoL5SbBW YQXY9at0yLQWsvyOePcn5PFLxOpv6xr26KzLcAd6uKFMnxn64gXKZzrktJlY3VtQ b2R57kADlluTLgpcprs2QSB/v1WSSQ9KLwV8FuoMAO4XyQ1S2mDQLQhbs70zJP+h hcGK98Yqn0ItFinrOWT72sHUz35WUtUF8p9MdOd7eVxvcGLwwl4= =qNsJ -----END PGP SIGNATURE-----