From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=ting.ye@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 4D9ED208AE9D7 for ; Sun, 10 Feb 2019 19:34:21 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2019 19:34:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,357,1544515200"; d="scan'208";a="121427181" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga007.fm.intel.com with ESMTP; 10 Feb 2019 19:34:20 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 10 Feb 2019 19:34:20 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 10 Feb 2019 19:34:19 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.194]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.190]) with mapi id 14.03.0415.000; Mon, 11 Feb 2019 11:34:18 +0800 From: "Ye, Ting" To: Ivan Novgorodtsev CC: "edk2-devel@lists.01.org" Thread-Topic: [edk2] LocateProtocol - gEfiTcp4ServiceBindingProtocolGuid Thread-Index: AQHUuiynG8k56csaW0aKiZxf4497k6XLt4EwgAlM9wCABPsGIA== Date: Mon, 11 Feb 2019 03:34:18 +0000 Message-ID: References: <7ea89f16-659e-d34e-4e63-da60ee81a7c4@itti.com.pl> <16dfeda839c61d6162ac0a72e224b200.squirrel@newmailer.itti.com.pl> In-Reply-To: <16dfeda839c61d6162ac0a72e224b200.squirrel@newmailer.itti.com.pl> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: LocateProtocol - gEfiTcp4ServiceBindingProtocolGuid X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2019 03:34:21 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Ivan, The code you are using is not from EDKII trunk. You may ask the owner from = the github for detailed info about the error. It looks to me that your platform does not include modules required by UEFI= network stack. For example, TCP driver which producing Tcp4ServiceBindingP= rotocol is missed. You may refer to WIKI here for how to enable UEFI network stack: https://gi= thub.com/tianocore/tianocore.github.io/wiki/NetworkPkg-Getting-Started-Guid= e Thanks, Ting -----Original Message----- From: Ivan Novgorodtsev [mailto:inovgorodtsev@itti.com.pl]=20 Sent: Friday, February 8, 2019 3:25 PM To: Ye, Ting Subject: RE: [edk2] LocateProtocol - gEfiTcp4ServiceBindingProtocolGuid Hi Ting, I'm really sorry for the late reply. I hope now you can see my attachments.= In case they are removed again, i posted them also on imgur here: https://imgur.com/a/8q3VtPN. Kind regards, Ivan > Hi Ivan, > > I can't find your attachment. Maybe removed by the mailing system. > > I have no idea about the tree you are using. Is it possible for you to=20 > use the EDKII trunk code? It is available at=20 > https://github.com/tianocore/edk2. > > Thanks, > Ting > > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of=20 > Ivan Novgorodtsev > Sent: Friday, February 1, 2019 8:41 PM > To: edk2-devel@lists.01.org > Subject: [edk2] LocateProtocol - gEfiTcp4ServiceBindingProtocolGuid > > Hi, > I'm having trouble with sending a tcp packet from UEFI Application.=20 > I'm using code from this github: > https://github.com/YunWang/uefi-programming-guider/tree/master/book/Ne > twork > > I attached two screenshot were I suppose something went wrong. In=20 > first one, at lines 91-94=A0 LocateProtocol triggers return. Second=20 > screenshot shows the error. Settings: > > *BootCheck.inf* > > [Packages] > =A0 MdePkg/MdePkg.dec > =A0 MdeModulePkg/MdeModulePkg.dec > =A0 ShellPkg/ShellPkg.dec > > [LibraryClasses] > =A0 UefiApplicationEntryPoint > =A0 UefiLib > =A0 UefiBootServicesTableLib > =A0 #used in application > =A0 ShellLib > > [Protocols] > =A0 gEfiShellProtocolGuid > =A0 gEfiTcp4ServiceBindingProtocolGuid > =A0 gEfiTcp4ProtocolGuid > > *Nt32Pkg.dsc* > > [LibraryClasses.common.UEFI_APPLICATION] > =A0 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf > PrintLib|MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPri > PrintLib|nt > PrintLib|2Protocol.inf > =A0 #added below for application > =A0 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf > FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf > > In the background simple C# TCP Server is running, I can connect to it=20 > for example using another C# app or using PuTTY. > > I would appreciate any useful information, thank you. > Kind regards, Ivan > > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >