public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ye, Ting" <ting.ye@intel.com>
To: Ivan Novgorodtsev <inovgorodtsev@itti.com.pl>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: LocateProtocol - gEfiTcp4ServiceBindingProtocolGuid
Date: Mon, 11 Feb 2019 03:34:18 +0000	[thread overview]
Message-ID: <BC0C045B0E2A584CA4575E779FA2C12A1ABB0377@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <16dfeda839c61d6162ac0a72e224b200.squirrel@newmailer.itti.com.pl>

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 Tcp4ServiceBindingProtocol is missed.

You may refer to WIKI here for how to enable UEFI network stack: https://github.com/tianocore/tianocore.github.io/wiki/NetworkPkg-Getting-Started-Guide

Thanks,
Ting

-----Original Message-----
From: Ivan Novgorodtsev [mailto:inovgorodtsev@itti.com.pl] 
Sent: Friday, February 8, 2019 3:25 PM
To: Ye, Ting <ting.ye@intel.com>
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 
> use the EDKII trunk code?  It is available at 
> https://github.com/tianocore/edk2.
>
> Thanks,
> Ting
>
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of 
> 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. 
> 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 
> first one, at lines 91-94  LocateProtocol triggers return. Second 
> screenshot shows the error. Settings:
>
> *BootCheck.inf*
>
> [Packages]
>    MdePkg/MdePkg.dec
>    MdeModulePkg/MdeModulePkg.dec
>    ShellPkg/ShellPkg.dec
>
> [LibraryClasses]
>    UefiApplicationEntryPoint
>    UefiLib
>    UefiBootServicesTableLib
>    #used in application
>    ShellLib
>
> [Protocols]
>    gEfiShellProtocolGuid
>    gEfiTcp4ServiceBindingProtocolGuid
>    gEfiTcp4ProtocolGuid
>
> *Nt32Pkg.dsc*
>
> [LibraryClasses.common.UEFI_APPLICATION]
>    PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
> PrintLib|MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPri
> PrintLib|nt
> PrintLib|2Protocol.inf
>    #added below for application
>    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 
> 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
>


      parent reply	other threads:[~2019-02-11  3:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-01 12:41 LocateProtocol - gEfiTcp4ServiceBindingProtocolGuid Ivan Novgorodtsev
2019-02-02  1:27 ` Ye, Ting
     [not found]   ` <16dfeda839c61d6162ac0a72e224b200.squirrel@newmailer.itti.com.pl>
2019-02-11  3:34     ` Ye, Ting [this message]

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=BC0C045B0E2A584CA4575E779FA2C12A1ABB0377@SHSMSX103.ccr.corp.intel.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