summaryrefslogtreecommitdiff
path: root/Documentation/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/mainboard')
-rw-r--r--Documentation/mainboard/emulation/qemu-riscv.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/mainboard/emulation/qemu-riscv.md b/Documentation/mainboard/emulation/qemu-riscv.md
index ed2c6d5892..9ccc1b7265 100644
--- a/Documentation/mainboard/emulation/qemu-riscv.md
+++ b/Documentation/mainboard/emulation/qemu-riscv.md
@@ -3,6 +3,9 @@
## Building coreboot and running it in QEMU
- Configure coreboot and run `make` as usual
-- Run `util/riscv/make-spike-elf.sh build/coreboot.rom build/coreboot.elf` to
- convert coreboot to an ELF that QEMU can load
-- Run `qemu-system-riscv64 -M virt -m 1024M -nographic -kernel build/coreboot.elf`
+
+Run QEMU
+```
+qemu-system-riscv64 -M virt -m 1G -nographic -bios build/coreboot.rom \
+ -drive if=pflash,file=./build/coreboot.rom,format=raw
+```