Hi Volodymyr,

Add my comments below.

Thanks,
Eric

-----Original Message-----
From: Volodymyr Sharovar [mailto:volodymyrsharo...@gmail.com] 
Sent: Thursday, August 21, 2014 6:38 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Driver with HII hangs on machines with EFI 2.00 specification 
revision

I get an assertion error when loading a driver with HII stuff on machines with 
EFI 2.00 specification revision in uefi shell with load command. Specifically 
the error I got was:

ASSERT 
c:\myworkspace\MdeModulePkg\Library\UefiHiiServicesLib\UefiHiiServicesLib.c(100)
: !EFI_ERROR (Status)

If loading the driver through the rom image the machines just hangs.
[[[Eric]]] From your error message, it is caused because system can't find the 
Hii Config Routing Protocol. The HII infrastructure is new added in UEFI 2.1, 
so if the system before UEFI 2.1, driver can find this protocol.

Through my testing this assertion happens even before DriverEntry is called. My 
question is how does it work?
[[[Eric]]] Before the driver entry is called, the library used by this driver 
must be constructed, this error is raised when do library contruct.

As well as I understand that HII was introduced in EFI 2.1 specification 
revision. So how should the cases be handled when the driver is loaded in 
revisions of EFI that are lower then 2.1?
[[[Eric]]] in this case, I suggest you do driver build with the same system 
version, else, just like this case, some protocol maybe not find and driver 
can't run.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to