On 2015/11/2 18:31, Michael Zimmermann wrote:
Hi,
I tried to set a
'EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS|EFI_VARIABLE_RUNTIME_ACCESS'
variable from an UEFI application but SetVariable just returns invalid
parameter for some reason.(with the global GUID)
UEFI spec 3.3 says
"To prevent name collisions with possible future globally defined
variables, other internal firmware
data variables that are not defined here must be saved with a unique
VendorGuid other than
EFI_GLOBAL_VARIABLE or any other GUID defined by the UEFI Specification.
Implementations must only permit the creation of variables with a UEFI
Specification-defined
VendorGuid when these variables are documented in the UEFI Specification."
If the variable UEFI application set is not defined in UEFI with the
global GUID, could you define a unique GUID for the special variable set
in your UEFI application?
Thanks,
Star
I'm setting the variable in the exact same way as other existing ones so
the only difference really is that I'm using another name. Do I have to
'register' variables in the inf file before I can use it? The spec doesn't
really say sth. about SetVariable returning invalid_parameter for sth. like
that.
I am using these packages:
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
<LibraryClasses>
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
}
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel