2022-03-01 02:07:34 +01:00
|
|
|
# QEMU RISC-V emulator
|
2018-12-31 14:13:47 +01:00
|
|
|
|
2022-03-01 02:07:34 +01:00
|
|
|
## Building coreboot and running it in QEMU
|
2018-12-31 14:13:47 +01:00
|
|
|
|
|
|
|
- Configure coreboot and run `make` as usual
|
|
|
|
- Run `util/riscv/make-spike-elf.sh build/coreboot.rom build/coreboot.elf` to
|
2022-03-01 02:07:34 +01:00
|
|
|
convert coreboot to an ELF that QEMU can load
|
2018-12-31 14:13:47 +01:00
|
|
|
- Run `qemu-system-riscv64 -M virt -m 1024M -nographic -kernel build/coreboot.elf`
|