diff --git a/conf/machine/raspberrypi4-64.conf b/conf/machine/raspberrypi4-64.conf index 1d93772..0a42992 100644 --- a/conf/machine/raspberrypi4-64.conf +++ b/conf/machine/raspberrypi4-64.conf @@ -39,3 +39,20 @@ KERNEL_IMAGETYPE_DIRECT ?= "Image" KERNEL_BOOTCMD ?= "booti" ARMSTUB ?= "armstub8-gic.bin" + +# +# Below are variables ONLY needed for running with Yocto/OE's runqemu script +# +IMAGE_CLASSES += "qemuboot" + +# FIXME - boot hangs trying to find the boot media, for both SD and USB +QB_SYSTEM_NAME = "qemu-system-aarch64" +QB_MACHINE = "-machine raspi4b" +QB_MEM = "-m 2048" +QB_DTB = "bcm2711-rpi-4-b.dtb" +QB_NETWORK_DEVICE = "-device usb-net,netdev=net0,mac=@MAC@" +QB_KERNEL_ROOT = "/dev/sda" +QB_KERNEL_CMDLINE_APPEND = "rootwait earlycon=pl011,mmio32,0xfe201000" +QB_RNG = "" +QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device usb-storage,drive=disk0" +QB_DEFAULT_FSTYPE = "ext3"