Skip to content

Complete rewrite of get_ovmf_binaries() #164

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

Merged
merged 1 commit into from
Apr 14, 2025
Merged

Complete rewrite of get_ovmf_binaries() #164

merged 1 commit into from
Apr 14, 2025

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Apr 11, 2025

This was a horrible, unreliable and non-portable hack.

This was a horrible, unreliable and non-portable hack.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review April 12, 2025 00:16
@marc-hb marc-hb requested a review from stellarhopper as a code owner April 12, 2025 00:16
@marc-hb
Copy link
Collaborator Author

marc-hb commented Apr 12, 2025

@ikitayama this should help a lot with AAVMF, please try it.

qcmd+=("-drive" "if=pflash,format=raw,unit=1,file=OVMF_VARS.fd")
edk2_vmf_get_images
qcmd+=("-drive" "if=pflash,format=raw,unit=0,file=${edk2_vmf_code},readonly=on")
qcmd+=("-drive" "if=pflash,format=raw,unit=1,file=${edk2_vmf_vars}")
qcmd+=("-debugcon" "file:uefi_debug.log" "-global" "isa-debugcon.iobase=0x402")
Copy link
Collaborator

@ikitayama ikitayama Apr 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marc-hb This is not valid for the "virt" machine. With this fixed.

Tested-by: Itaru Kitayama [email protected]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ikitayama for trying this, much appreciated! As I did not change that line, this looks like a good candidate for a followup PR. Which... you could submit after this one is merged? I tried but I don't have any easy way to test qemu-system-aarch64.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind: I will fix this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not valid for the "virt" machine.

Fix submitted in #166

@marc-hb marc-hb merged commit 193cd6a into pmem:main Apr 14, 2025
2 checks passed
@marc-hb marc-hb deleted the ovmf branch April 14, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants