Building RBoot for Emulation e.g. QEMU


Return to index

RBoot on QEMU

RBoot supports building for qemu as a target board. The resulting rom can then be tested using qemu.

The qemu board is mostly intended to speed up development by removing the need to flash to bare metal during initial tests. Qemu may also be useful for end users who intend to make changes to their RBoot rom without having to flash and reboot their machine.

Building and Testing

There is basic support for an arm64 virtual machine:

./mk -b coreboot emulation_qemu_arm64_12mb_uefi
qemu-system-aarch64 -bios bin/qemu_arm64_12mb/uboot_payload_qemu_arm64_12mb_libgfxinit_corebootfb.rom \
	-M virt,secure=on,virtualization=on,acpi=on -cpu cortex-a53 -m 768M -serial stdio -vga none -display none

That command (above) does a serial console.

qemu-system-aarch64 \
    -machine virt,secure=on,virtualization=on \
    -cpu cortex-a72 -m 1G \
    -serial stdio -device VGA \
    -device qemu-xhci \
    -device usb-kbd -device usb-mouse \
    -bios bin/qemu_arm64_12mb/*.rom

Markdown file for this page: https://rboot.org/docs/misc/emulation.md

Site map

This HTML page was generated by the Rboot Static Site Generator.