[edk2] Diagnostic of standalone UEFI driver

2015-04-23 Thread Ritesh Tiwari
Hi, We are writing a *standalone* client driver. We also want to implement a diagnostic interface for this driver. The diagostic interface is needed to diagnose the working of driver itself. I am looking to get opinions on what are the best practices to implement such a diagnostic interface for s

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-17 Thread Ritesh Tiwari
these pkgs? As per https://svn.code.sf.net/p/edk2/code/branches/UDK2014.SP1/ I can see AppPkg, StdLib are present. But UDK2014 GA does not include these pkgs. Thanks, Ritesh On Tue, Mar 17, 2015 at 11:52 AM, Ritesh Tiwari wrote: > Thanks Ye. > > Lee, can you please confirm about stdl

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-16 Thread Ritesh Tiwari
t; libraries are included with UDK 2014 under StdLib. This libraries are > designed to link with applications. AppPkg has several examples. > > > > Best Regards, > > Ye Ting > > > > *From:* Ritesh Tiwari [mailto:ritesh.tiw...@seagate.com] > *Sent:* Monday, March 16, 2

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-16 Thread Ritesh Tiwari
not support returning underlying socket > information. If you want to use TCP socket you might refer to the socket > library: > > https://svn.code.sf.net/p/edk2/code/trunk/edk2/AppPkg > > https://svn.code.sf.net/p/edk2/code/trunk/edk2/StdLib > > > > Best Regards, > > Ye T

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-13 Thread Ritesh Tiwari
ocket fd details in TCP4 structure. If it is not possible from TCP_IP4_PROTOCOL then do I need to create TCP socket separately to make a SSL connection? Thanks, Ritesh On Thu, Mar 12, 2015 at 3:14 PM, Ritesh Tiwari wrote: > Thanks Ye for all the help. I think I did a typo earlier. For NT3

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-12 Thread Ritesh Tiwari
4ServiceBinding, Tcp4ServiceBinding > to the same controller handle. To filter a particular NIC, for example, > you are able to get MAC address by using SNP or MnpServiceBinding. The > library function NetLibGetMacAddress provides such capability. > > > > Best Regards, > &

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-11 Thread Ritesh Tiwari
eateServiceChild () to create child for a TCP service? Or is there a way to filter out handles based on some criteria? Thanks. On Wed, Mar 11, 2015 at 3:01 PM, Ritesh Tiwari wrote: > Hi Ye, > > All the modules/libararies are listed in the Nt32Pkg,dsc file. And all are > loaded too. &g

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-11 Thread Ritesh Tiwari
gt; MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf > > MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf > > MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf > > MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf > > > > Best Regards, > > Ye Ting > > &g

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-11 Thread Ritesh Tiwari
Getting Started Guide(pdf) > <http://sourceforge.net/projects/network-io/files/Documents/EFINetworkStackGettingStarted.pdf/download> > for guidance on building and using the library to enable UEFI network stack > under NT32 Platform Emulator. > > Best Regards, > > Ye Ting &g

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-10 Thread Ritesh Tiwari
eed SnpNt32Io.dll, not SnpNt32Dxe.dll, locating at the same > directory with SnpNt32Dxe.efi (could be > .\Build\NT32IA32\DEBUG_VS2010x86\IA32) > > > > Best Regards, > > Ye Ting > > > > *From:* Ritesh Tiwari [mailto:ritesh.tiw...@seagate.com] > *Sent:*

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-10 Thread Ritesh Tiwari
lease check > whether you have your SnpNt32Dxe module working now. > > > > Best Regards, > > Ye Ting > > > > > > *From:* Ritesh Tiwari [mailto:ritesh.tiw...@seagate.com] > *Sent:* Wednesday, March 11, 2015 10:40 AM > *To:* edk2-devel@lists.sourc

Re: [edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-10 Thread Ritesh Tiwari
> Hi, > > > > You could use gBS->LocateHandleBuffer() to locate the controller handle > which has the service installed. In your example, you could use > gEfiTcp4ServiceBindingProtocolGuid as protocol GUID. > > > > Best Regards, > > Ye Ting > > &g

[edk2] Controller Handle in NetLibCreateServiceChild()

2015-03-10 Thread Ritesh Tiwari
Hi, I am trying to create a TCP4 child using NetLibCreateServiceChild(). The first input parameter of this API is a controller (The controller which has the service installed). My very basic question is how to get this controller handle? Here is the signature of this API - @param[in] Contr

[edk2] Not able to locate EFI_TCP4_PROTOCOL protocol

2015-03-10 Thread Ritesh Tiwari
Hi, I am trying to write a TCP application. I am seeing bootservices->LocateProtocol() for EFI_TCP4_PROTOCOL failing. Although TCP4DXE driver is loaded as per drivers command. But when I load this TCP4DXE driver manually I don't see EFI_TCP4_PROTOCOL handle is getting installed. I am testing all t

[edk2] Remote procedure call

2014-12-29 Thread Ritesh Tiwari
Hi, I am very new to EDK/UEFI. I am looking to develop a client which periodically calls APIs in a remote host (server is running in this remote host) and gets the data. Wanted to know what are the best ways to do it using EDK provided network protocols. I am developing it for UEFI 2.3.1. I don't