coreboot-libre-fam15h-rdimm/Documentation/mainboard/emulation/qemu-riscv.md

9 lines
323 B
Markdown
Raw Permalink Normal View History

2024-03-04 11:14:53 +01:00
# Qemu RISC-V emulator
## 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`