UEFI grT->GetVariable() returning Not Found Status #11282
Unanswered
PopoviciPaul
asked this question in
Q&A
Replies: 1 comment
-
|
I cannot say with certainty what the problem might be. I would check the following
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I made an app with EDK2 in which I am trying to read a UEFI variable which I'm setting from Ubuntu OS on a QEMU environment.
This is the code:
And the value is beiing set like this from Ubuntu OS on QEMU with this script:
As you can see from the script I am trying to set the variable to 100(0x64). I also have another similar script for setting it to 0. At boottime when UEFI shell comes up I read the value with dmpstore command and I confirm that it's value is 0x64(100). However when the application tries to read it with GetVariable() as in the above example it doesn't find it as if the variable would not exist(Not found status).
My variable which I set from ubuntu has following propreties: Non-Volatile, Boot Service Access, Runtime service Access. So the way I see it it should be accessible for the app.
I am reading through UEFI specs but I have not figured out what the issue is. Please help me fix this if possible. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions