Add support for running QEMU version of System76 firmware

This commit is contained in:
Jeremy Soller
2019-09-20 14:19:57 -06:00
parent 081a13974d
commit 42bad6730e
5 changed files with 689 additions and 11 deletions

23
scripts/qemu.sh Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e
# if [ -z "$1" ]
# then
# echo "$0 [model]" >&2
# exit 1
# fi
# MODEL="$1"
MODEL="qemu"
if [ ! -d "models/${MODEL}" ]
then
echo "model '${MODEL}' not found" >&2
exit 1
fi
MODEL_DIR="$(realpath "models/${MODEL}")"
kvm -M q35 -m 1024 -vga std \
-bios "build/${MODEL}/coreboot.rom" \
-chardev stdio,id=debug -device isa-debugcon,iobase=0x402,chardev=debug \
"$@"