From e8e1692de45452e5f54105a74c73a4f7f3e63306 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Mon, 27 Apr 2026 14:10:43 -0400 Subject: [PATCH] raspberrypi4-64.conf: add QB_ variables for runqemu Add the relevant QB_ variables sufficient to get the QEMU raspi1ap model running with runqemu. Unfortunately, it doesn't fully boot to shell, and seems to hang trying to find boot media (for both SD and USB boot devices). Signed-off-by: Jon Mason --- conf/machine/raspberrypi4-64.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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"