Tim,
Thanks for the pointers.  I am referring the DriverSampleDxe from  
MdeModulePkg\Universal\DriverSampleDxe and calling HiiAddPackages to install 
the vfr binaries.   And I have seen the vfr.c files are getting generated in it.
Am I going in a wrong direction?

Thanks
Sathya

From: Tim Lewis [mailto:tim.le...@insyde.com]
Sent: Tuesday, February 12, 2013 10:12 AM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Issues while building the driver through udk

Sathya -

In a true UEFI build, there is no vfr.c. Please see the description of how HII 
resources are handled in the LoadImage() description from the UEFI 
specification. In the case you are seeing, the individual packages are 
generated as .hpk files (HII Packages), combined together into HII package 
lists by GenFw and then inserted directly into the .efi as a resource (like 
Windows dialog boxes, etc.). When LoadImage() is called, that resource is found 
and a pointer to it installed on the same image handle as the loaded image 
protocol.  To use the resources, you simply use HandleProtocol() on the image 
handle with the GUID and then call NewPackageList()

Tim

From: Prakash, Sathya [mailto:sathya.prak...@lsi.com]
Sent: Tuesday, February 12, 2013 9:07 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] Issues while building the driver through udk

Tim,
I have commented that out and with that I am able to proceed a step ahead.  But 
I am seeing another problem,  I couldn't see the VFR.c is not getting generated 
after vfrcompile.  The vfrcompile didn't return any error,  at the end while 
linking I get unresolved symbol for formsbin.
I keep the files in a hierarchical folder (like rootdir\HII\Inc\*.vfr)  does it 
cause any issue?

Thanks
Sathya

From: Tim Lewis [mailto:tim.le...@insyde.com]
Sent: Monday, February 11, 2013 6:07 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] Issues while building the driver through udk

Sathya -

Looks like you are right. The GenFw tool has an artificial limit on the number 
of form packages.

    if (NumberOfFormPacakge > 1) {
      Error (NULL, 0, 3000, "Invalid", "The input hii packages contains more 
than one hii form package");
      goto Finish;
    }

Don't see any reason why this should be done.

Tim

From: Prakash, Sathya [mailto:sathya.prak...@lsi.com]
Sent: Monday, February 11, 2013 4:47 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] Issues while building the driver through udk

Andrew,
Thanks for the response.
WRT the build error, I am using same build and build clean, means the 
Conf/Target.txt values are taken (no commandline build arguments).

I have another question, Cant we have two form package. I have two VFRs and one 
UNI in my HII source directory and I install two formsets for two different 
purpose.  This was working perfectly in my EDK1 with separate vfrcompile.  But 
I am hitting the below mentioned error  with the same set of files, is there a 
way I can workaround or solve this?

"GenFw" -o c:\udk2010sr1ddk\Build\MdeModule\RELEASE_MYTOOLS\X64\MdeModul
ePkg\Application\mpt2sas\mpt2sas\OUTPUT\mpt2sashii.rc -g 5545b72e-7218-11e2-a476
-9cb70ded6101 --hiipackage c:\udk2010sr1ddk\Build\MdeModule\RELEASE_MYTOOLS\X64\
MdeModulePkg\Application\mpt2sas\mpt2sas\OUTPUT\HII\inc\HiiDriverForms.hpk  c:\u
dk2010sr1ddk\Build\MdeModule\RELEASE_MYTOOLS\X64\MdeModulePkg\Application\mpt2sa
s\mpt2sas\OUTPUT\HII\inc\HiiUCMForms.hpk  c:\udk2010sr1ddk\Build\MdeModule\RELEA
SE_MYTOOLS\X64\MdeModulePkg\Application\mpt2sas\mpt2sas\OUTPUT\mpt2sasStrDefs.hp
k
GenFw: ERROR 3000: Invalid
  The input hii packages contains more than one hii form package
NMAKE : fatal error U1077: 'c:\udk2010SR1DDK\BaseTools\Bin\Win32\GenFw.EXE' : re
turn code '0x2'
Stop.


Build...
: error 7000: Failed to execute command
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\nmake.exe /no
logo all [c:\udk2010sr1ddk\Build\MdeModule\RELEASE_MYTOOLS\X64\MdeModulePkg\Appl
ication\mpt2sas\mpt2sas]

Thanks
Sathya

From: Andrew Fish [mailto:af...@apple.com]
Sent: Monday, February 11, 2013 11:08 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] Issues while building the driver through udk



On Feb 11, 2013, at 8:49 AM, "Prakash, Sathya" 
<sathya.prak...@lsi.com<mailto:sathya.prak...@lsi.com>> wrote:

Folks,
I have tried to build my driver using udk2010 (so far we are using EDK 1.6).  I 
am able to setup the build environment and able to build the module once 
successfully.

But when I want to rebuild again, I have executed the command "build clean" and 
then the next build command resulted in the error below

build...
: error 0001: File open failure
        
c:\udk2010sr1ddk\Build\MdeModule\RELEASE_MYTOOLS\X64\MdePkg\Library\BasePcdLibNull\BasePcdLibNull\OUTPUT\BasePcdLibNull.lib
        [Errno 2] No such file or directory: 
'c:\\udk2010sr1ddk\\Build\\MdeModule\\RELEASE_MYTOOLS\\X64\\MdePkg\\Library\\BasePcdLibNull\\BasePcdLibNull\\OUTPUT\\BasePcdLibNull.lib'<smb://udk2010sr1ddk/Build/MdeModule/RELEASE_MYTOOLS/X64/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/BasePcdLibNull.lib'>


Is your clean command symmetric with your build. If you don't pass arguments 
they default from the Conf/target.txt file? If they are different then paths 
can be different in the build result directory.


Also I have .uni file and I have included the strdef.h in the headers, but I 
see error because the .uni seems not build and the strdef.h is not created (I 
have kept the .uni prior to the c file in .inf)


It works differently in the edk2, you don't need to add the #include as it gets 
added in the AutoGen.h that is forced included into your driver.

For an example look at 
https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/MdeModulePkg/Universal/DriverSampleDxe/

Thanks,

Andrew Fish

Thanks
Sathya
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to