From bf065600bc79dd0e2320b2def302293b166142da Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Tue, 19 Aug 2025 09:33:24 -0400 Subject: [PATCH] raspberrypi2.conf: add QB_ variables for runqemu Add the relevant QB_ variables sufficient to get the QEMU raspi2b model running with runqemu. Signed-off-by: Jon Mason --- conf/machine/raspberrypi2.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/conf/machine/raspberrypi2.conf b/conf/machine/raspberrypi2.conf index 8cb859e..1d4655e 100644 --- a/conf/machine/raspberrypi2.conf +++ b/conf/machine/raspberrypi2.conf @@ -12,3 +12,19 @@ SERIAL_CONSOLES ?= "115200;ttyAMA0" UBOOT_MACHINE = "rpi_2_config" ARMSTUB ?= "armstub7.bin" + +# +# Below are variables ONLY needed for running with Yocto/OE's runqemu script +# +IMAGE_CLASSES += "qemuboot" + +QB_SYSTEM_NAME = "qemu-system-arm" +QB_MACHINE = "-machine raspi2b" +QB_MEM = "-m 1024" +QB_DTB = "bcm2709-rpi-2-b.dtb" +QB_NET = "none" +QB_KERNEL_ROOT = "/dev/mmcblk0" +QB_KERNEL_CMDLINE_APPEND = "rootwait" +QB_RNG = "" +QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=sd,format=raw" +QB_DEFAULT_FSTYPE = "ext3"