[DRAFT] [bazel,qemu] Add QEMU support for ROM_EXT E2E owernship tests #28506
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: this PR requires QEMU opentitantool SPI bootstrapping support which is not yet currently merged (see #28413), and so is not expected to pass. This PR is marked as draft for now, but is otherwise ready for review. When run on top of that PR (with some small tweaks, see my working local branch) all tests pass in QEMU environments.
This PR checks that QEMU Earlgrey emulation can correctly support ROM_EXT ownership boot service flows (with the same limitations as FPGA when unprovisioned, due to the lack of info page splicing). See relevant comments in the
ownership/BUILD
file - the Xmodem transfer rescue flow has fairly tight timing assumptions based on a 115200 Bps baud rate which may cause tests to fail when run in parallel or on slower hosts. To test, I would recommend running tests in serial (--test_output=streamed
or-j 1
). See the commit messages for further details.