Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5d7d578
real-hw-test: add UEFI application scaffold
phip1611 Aug 16, 2026
d919346
real-hw-test: add QEMU development environment
phip1611 Aug 16, 2026
af20280
nix: add flake development environment
phip1611 Aug 16, 2026
e0f9a05
real-hw-test: add UART inventory and firmware serial handoff
phip1611 Aug 16, 2026
d60ac75
real-hw-test: probe legacy COM ports
phip1611 Aug 16, 2026
b5c8489
real-hw-test: discover UARTs described by ACPI SPCR
phip1611 Aug 16, 2026
631eb0a
real-hw-test: discover PCI serial-class UARTs
phip1611 Aug 16, 2026
fb0ffe7
real-hw-test: exercise uart_16550 devices
phip1611 Sep 13, 2026
1ae9bab
real-hw-test: add interactive serial checks
phip1611 Aug 16, 2026
9a1a2cb
real-hw-test: disable firmware watchdog
phip1611 Aug 16, 2026
d620b28
real-hw-test: persist diagnostics on the boot volume
phip1611 Aug 16, 2026
1923ef5
real-hw-test: report persisted log location
phip1611 Aug 16, 2026
9b468d0
real-hw-test: bound nonblocking transmit checks
phip1611 Aug 16, 2026
eea8240
real-hw-test: document the hardware test
phip1611 Sep 13, 2026
4b7e622
real-hw-test: "make install" to install on a USB stick
phip1611 Aug 16, 2026
372928b
ci: smoke-test UEFI UART paths in QEMU
phip1611 Aug 16, 2026
8e3f2bf
ci: smoke-test aarch64 UEFI UART paths in QEMU
phip1611 Sep 2, 2026
5f81dee
doc: link the test suites from the README
phip1611 Sep 13, 2026
4aab76a
ci: update dependabot
phip1611 Sep 20, 2026
dbc44c0
clippy: clippy::absolute_paths
phip1611 Sep 20, 2026
a48a671
real-hw-test: record the start time in the log
phip1611 Sep 20, 2026
a83c4f5
real-hw-test: build into the crate's own target directory
phip1611 Sep 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
directories:
- "/"
- "/real-hw-test"
- "/test"
schedule:
interval: monthly
open-pull-requests-limit: 10
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/real-hw-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: UEFI real-hardware test smoke test
Comment thread
phip1611 marked this conversation as resolved.

on: [pull_request, merge_group]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
qemu:
name: Headless QEMU TCG (${{ matrix.arch }})
Comment thread
phip1611 marked this conversation as resolved.
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
steps:
- uses: actions/checkout@v7
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-uefi,aarch64-unknown-uefi
- name: Install QEMU, firmware, and harness tools
run: |
sudo apt-get update
if [[ "${{ matrix.arch }}" == x86_64 ]]; then
sudo apt-get install -y dosfstools mtools ovmf qemu-system-x86 socat
else
sudo apt-get install -y dosfstools mtools qemu-efi-aarch64 qemu-system-arm socat
fi
- name: Run deterministic UEFI checks
working-directory: real-hw-test
run: |
if [[ "${{ matrix.arch }}" == x86_64 ]]; then
# The ovmf package layout varies across Ubuntu releases: combined
# vs split images, 4M variants, and symlinks. Prefer combined.
OVMF=""
for candidate in /usr/share/ovmf/OVMF.fd /usr/share/OVMF/OVMF.fd; do
if [[ -r "$candidate" ]]; then
OVMF=$candidate
break
fi
done
if [[ -z "$OVMF" ]]; then
OVMF=$(find -L /usr/share/OVMF /usr/share/ovmf -maxdepth 1 \
-name 'OVMF_CODE*.fd' -readable 2>/dev/null | sort | head -n1)
fi
if [[ -z "$OVMF" ]]; then
echo "error: the ovmf package did not install a usable image:" >&2
ls -la /usr/share/OVMF /usr/share/ovmf >&2 || true
exit 1
fi
make ci-qemu OVMF="$OVMF"
else
export AAVMF_CODE=/usr/share/AAVMF/AAVMF_CODE.fd
export AAVMF_VARS=/usr/share/AAVMF/AAVMF_VARS.fd
make ci-qemu ARCH=aarch64
fi
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ fn main() {
}
```

## Testing

- There is a manual integration test packaged as UEFI application that you can
boot on real hardware: [./real-hw-test](./real-hw-test/README.md)
- There is an integration test that can run as a VM in
[./integration-test](./integration-test)

## License

This project is licensed under either of
Expand Down
1 change: 1 addition & 0 deletions real-hw-test/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
Comment thread
phip1611 marked this conversation as resolved.
2 changes: 2 additions & 0 deletions real-hw-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build/
/target/
267 changes: 267 additions & 0 deletions real-hw-test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions real-hw-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "uart-16550-real-hw-test"
version = "0.1.0"
edition = "2024"
publish = false

[dependencies]
jiff = { version = "0.2", default-features = false }
uart_16550 = { path = ".." }
uefi = { version = "0.40.0", features = ["alloc", "global_allocator", "jiff02", "panic_handler"] }
Loading
Loading