From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 B37452094560A for ; Tue, 11 Jul 2017 11:00:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 51239C00861E; Tue, 11 Jul 2017 18:01:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 51239C00861E Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=lersek@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 51239C00861E Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-201.phx2.redhat.com [10.3.116.201]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8B56460A98; Tue, 11 Jul 2017 18:01:45 +0000 (UTC) To: =?UTF-8?Q?Piotr_Kr=c3=b3l?= , edk2-devel@lists.01.org References: <721bf59b-166b-7a67-a1e7-b3e30d2487d3@3mdeb.com> From: Laszlo Ersek Message-ID: Date: Tue, 11 Jul 2017 20:01:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <721bf59b-166b-7a67-a1e7-b3e30d2487d3@3mdeb.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 11 Jul 2017 18:01:46 +0000 (UTC) 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: Tue, 11 Jul 2017 18:00:00 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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