This page discribes how to build and run coreboot for QEMU/AArch64. You can use LinuxBoot via make menuconfig
or an arbitrary FIT image as a payload for QEMU/AArch64.
qemu-system-aarch64 -bios ./build/coreboot.rom \ -M virt,secure=on,virtualization=on -cpu cortex-a53 \ -nographic -m 8192M
-cpu cortex-a53
.-machine secure=on,virtualization=on
.There are 3 steps to make coreboot.rom for QEMU/AArch64. If you select LinuxBoot, step 2 and 3 have done by LinuxBoot.
You can get the DTB from QEMU with the following command.
$ qemu-system-aarch64 \ -M virt,dumpdtb=virt.dtb,secure=on,virtualization=on \ -cpu cortex-a53 -nographic -m 8192M
You need to write an image source file that has an .its
extension to configure kernels, ramdisks, and DTBs. See Flattened uImage Tree documentation for more details.
You can use cbfstool to add the payload you created in step 2 to the coreboot.rom.
$ ./build/cbfstool ./build/coreboot.rom add -f <path-to-a-payload>/uImage \ -n fallback/payload -t fit -c lzma