Skip to content

How to write a valid AAVMF file? #17

@xnox

Description

@xnox

AAVMF files are not the same as OVMF 4M files it seems.

Setting "correct" filesize and blockmap does not appear to create valid AAVMF var files. See the naive approach in xnox@ba19194

somehow with above patch doing:

uefivars -i edk2 -I /usr/share/AAVMF/AAVMF_VARS.ms.fd -o json -O ms.json
uefivars -i json -I ms.json -o edk2,preset=aavmf -O aavmf.ms.fd
truncate -s 64M aavmf.ms.fd

And booting the resulting firmware looses all variable settings, and the VM is no longer in secureboot mode.

Are some of the assumptions in writing edk2 format specific to OVMF and/or OVMF 4M size and/or blocksize?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions