Skip to content
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

QEMU #14

Merged
merged 2 commits into from
Oct 11, 2023
Merged

QEMU #14

merged 2 commits into from
Oct 11, 2023

Conversation

macpijan
Copy link
Contributor

@macpijan macpijan commented Sep 21, 2023

  1. Start QEMU with (fw from: https://docs.dasharo.com/variants/qemu_q35/building-manual/#procedure)
#!/usr/bin/env bash

qemu-system-x86_64 \
  -machine q35 \
  -drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE.fd \
  -drive if=pflash,format=raw,file=/tmp/OVMF_VARS.fd \
  -net none \
  -qmp unix:/tmp/qmp-socket,server,nowait \
  -serial telnet:localhost:1234,server,nowait \
  -nographic
  1. Start test with
robot -L TRACE -v config:qemu -v rte_ip:127.0.0.1 -v snipeit:no dasharo-compatibility/uefi-shell.robot

==============================================================================
Uefi-Shell                                                                    
==============================================================================
USH001.001 UEFI Shell :: Check whether the DUT has the ability to ... | PASS |
------------------------------------------------------------------------------
Uefi-Shell                                                            | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output:  /home/macpijan/projects/github/dasharo/open-source-firmware-validation/output.xml
Log:     /home/macpijan/projects/github/dasharo/open-source-firmware-validation/log.html
Report:  /home/macpijan/projects/github/dasharo/open-source-firmware-validation/report.html

Current problems:

  • we are really tied to the RTE in our setup - we expect each platform uses it, we expect we are able to SSH into it, verify CPU ID and stuff,
  • we use OVMF, not edk2 payload, and intial phase of boot looks different on serial - especially the Press KEY to enter setup etc is not printed, so all our keywords won't work; current FW boots straight into EFI shell (we can interrupt with DEL, but there is no message printed about such possibility on serial)

@macpijan macpijan changed the title wip QEMU Oct 8, 2023
@macpijan
Copy link
Contributor Author

macpijan commented Oct 9, 2023

@pietrushnic With these changes: Dasharo/edk2#91
I am able to run the same uefi-shell basic test as above, but on OVMF built from our code

@macpijan macpijan merged commit 857d94e into main Oct 11, 2023
3 of 5 checks passed
@macpijan macpijan deleted the qemu branch October 12, 2023 10:31
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.

1 participant