-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EDK2UEFIVarStore serialization broken on AAVMF #9
Comments
This seems to be happening when Our AAVMF varstores are padded to 64M, but only the first 4M is marked as a valid FV in the header. Despite this the I am not sure what's strictly correct solution here:
|
What if you just set |
@agraf I guess that's one solution for producing a correct header, it would just mean I suppose that isn't strictly an issue, client code would just need to pad the new varstore if it cares about the size. |
I'd prefer it that way around, yes. Would you mind to cook up a patch? |
Please see PR #10 |
Another update concerning my issue:
I'll do more investigation to see how can I make the library produce working variable stores for AAVMF reliably, just wanted to update that the header fix is likely not all that's required. |
edk2.py: Use length from firmware volume header (Fixes #9)
Both reading and writing an AAVMF variable store using EDK2UEFIVarStore seems to work.
However after serialization, the new varstore is no longer readable to AAVMF firmware itself.
I am investigating this issue in more detail and will update this bug with more information.
The text was updated successfully, but these errors were encountered: