From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=benjamin.you@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 8E16621A10971 for ; Sat, 25 Nov 2017 07:20:47 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Nov 2017 07:25:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,453,1505804400"; d="scan'208";a="9517616" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga001.jf.intel.com with ESMTP; 25 Nov 2017 07:25:06 -0800 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 25 Nov 2017 07:25:06 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 25 Nov 2017 07:25:05 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Sat, 25 Nov 2017 23:25:03 +0800 From: "You, Benjamin" To: Cameron Craig , "'edk2-devel@lists.01.org'" Thread-Topic: [edk2] Enabling boot menu via serial & PXE boot in CorebootPayloadPkg Thread-Index: AdNlBD3q6DwwM9CkT6qbFZhY/CoH9AA90NYA Date: Sat, 25 Nov 2017 15:25:03 +0000 Message-ID: References: <0d20f24d08a7499fb124769eb277a7bc@exterity.com> In-Reply-To: <0d20f24d08a7499fb124769eb277a7bc@exterity.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODU2YjljNDgtY2E1ZC00NjBkLTgxNjEtZjRiZmIzNTA3ZWQ0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJnNlRMY2hqRnNhdFZFZGI3OTVcL2FoeDJ3Wm52TEcwSzFKZVwvbmpPN2tUT2hHdXRram03QTZIZ0tvNXl1U2dnYUEifQ== dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Enabling boot menu via serial & PXE boot in CorebootPayloadPkg 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: Sat, 25 Nov 2017 15:20:47 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Cameron, CorebootPayloadPkg does support serial output as user interface. To enable serial, the CorebootPayloadPkg retrieves serial information from Coreboot=20 through CorebootModulePkg\Library\CbParseLib\CbParseLib.c =3D>=20 CbParseSerialInfo(), which is called by CorebootPayloadPkg\Library\ PlatformHookLib\PlatformHookLib.c =3D> PlatformHookSerialPortInitialize(),= =20 which is in turn called by CorebootModulePkg\Library\BaseSerialPortLib16550 \BaseSerialPortLib16550.c =3D=3D> SerialPortInitialize().=20 Have you seen serial output info during Coreboot? If the answer is no, then= =20 Coreboot should be tweaked. If the answer is yes, but you cannot see serial output in Coreboot Payload, then probably the above call sequence needs to= =20 be checked. If you do not have a debugger, one way to trace code flow is to insert raw serial outputs in the code flow. This should be doable since=20 Coreboot already does serial output. Once the serial output functions correctly in the Coreboot Payload, Boot Menu / UI through serial should be= =20 automatically supported. On networking, you might refer to the Minnow Board v3 source tree, at https://github.com/tianocore/edk2-platforms/tree/devel-MinnowBoard3-UDK2017 Minnow Board v3 uses the same SOC as Leaf Hill. You might look at=20 Platform/BroxtonPlatformPkg/PlatformPkg.fdf file for a reference on which=20 components are used for network / PXE. Thanks, - ben > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Cameron Craig > Sent: Friday, November 24, 2017 5:16 PM > To: 'edk2-devel@lists.01.org' > Subject: [edk2] Enabling boot menu via serial & PXE boot in CorebootPaylo= adPkg >=20 > Hi all, >=20 > I'm new to this list and new to edk2 integration. > Currently I'm working on an Intel Leaf Hill CRB, attempting to produce a > coreboot payload consisting of a Tianocore EDKII UDK 2017 UEFI boot manag= er. >=20 > I have basic functionality, but a few useful features are currently missi= ng from > my build: >=20 > 1. User interface via serial. > We will not have the luxury of a video output so need to be able to navig= ate the > boot menu etc. via serial. > In an ideal world I would be looking for a Boolean value to toggle :) But= I > imagine there might be a little more to it. >=20 > 2. PXE Boot. > So far I have sources and built an UNDI driver and pinged a local network= device. > I have also attempted to enable the necessary features for PXE boot [1]. > But I get an error message: > ``` > $ ipconfig > MAC Address: > Broadcast MAC: FF FF FF FF FF FF > ipconfig: Locate protocol error: 'PXE base code protocol' > ``` > So I'm thinking some drivers are not being loaded? >=20 > Any suggestions for enabling these features would be greatly appreciated. >=20 > [1] https://github.com/tianocore/tianocore.github.io/wiki/NetworkPkg- > Getting-Started-Guide -> FEATURES ENABLING >=20 > Cheers, > Cameron >=20 >=20 > Cameron Craig | Graduate Software Engineer | Exterity Limited > tel: +44 1383 828 250 | fax: | mobile: > e: Cameron.Craig@exterity.com | w: www.exterity.com >=20 > Exterity is a leading provider of IP Video and Digital Signage solutions = that helps > organizations to harness the power of video to communicate, educate and > entertain. Our end-to-end solutions enable you to take TV and video conte= nt > directly from any source and manage its delivery, live or on demand, to a= ny > connected device via your existing network. For more information or to > schedule a product demonstration, contact Exterity on +44(0)1383 828 250 = or > visit www.exterity.com >=20 > Legal Notice > Unless expressly stated otherwise, this message is confidential and may b= e > privileged. It is intended for the addressee(s) only. Access to this e-ma= il by > anyone else is unauthorized. If you are not an addressee, any disclosure = or > copying of the contents of this e-mail or any action taken (or not taken)= in > reliance on it is unauthorized and may be unlawful. If you are not an add= ressee, > please inform the sender immediately. >=20 > Exterity Limited is registered in Scotland under No. 225313 with its regi= stered > office at Ridge Way, Hillend Industrial Park, Dalgety Bay, KY11 9JD. >=20 >=20 > _________________________________________________________________ > _____ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > _________________________________________________________________ > _____ > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel