From d53435096b7780f3086ef7d000c436233f6f487a Mon Sep 17 00:00:00 2001 From: Charles Dias Date: Sun, 8 Feb 2026 18:44:28 -0300 Subject: [PATCH] machine: mps2/mps3: add missing QEMU and Zephyr board settings Update MPS2 and MPS3 machine configurations: - Add ZEPHYR_BOARD with the current Zephyr board identifiers (mps2/an385, mps2/an521/cpu0, mps3/corstone300/an547). - Add QB_RNG = "" to disable virtio-rng, which is unsupported on these machines. - Add QB_MEM to explicitly set memory (16 MB for mps2-an385, 2048 MB for mps3-an547; mps2-an521 already had it). Signed-off-by: Charles Dias Signed-off-by: Lee Chee Yang --- meta-zephyr-bsp/conf/machine/mps2-an385.conf | 3 +++ meta-zephyr-bsp/conf/machine/mps2-an521.conf | 2 ++ meta-zephyr-bsp/conf/machine/mps3-an547.conf | 3 +++ 3 files changed, 8 insertions(+) diff --git a/meta-zephyr-bsp/conf/machine/mps2-an385.conf b/meta-zephyr-bsp/conf/machine/mps2-an385.conf index 081c6dd..173acce 100644 --- a/meta-zephyr-bsp/conf/machine/mps2-an385.conf +++ b/meta-zephyr-bsp/conf/machine/mps2-an385.conf @@ -11,8 +11,11 @@ TCLIBC = "newlib" QB_SYSTEM_NAME = "qemu-system-arm" QB_MACHINE = "-machine mps2-an385" QB_CPU = "-cpu cortex-m3" +QB_MEM = "-m 16" QB_GRAPHICS = "-vga none" QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm" +QB_RNG = "" # Zephyr RTOS settings +ZEPHYR_BOARD = "mps2/an385" ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot" diff --git a/meta-zephyr-bsp/conf/machine/mps2-an521.conf b/meta-zephyr-bsp/conf/machine/mps2-an521.conf index ebf8256..138ae01 100644 --- a/meta-zephyr-bsp/conf/machine/mps2-an521.conf +++ b/meta-zephyr-bsp/conf/machine/mps2-an521.conf @@ -15,6 +15,8 @@ QB_CPU = "-cpu cortex-m33" QB_MEM = "-m 16" QB_GRAPHICS = "-vga none" QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm" +QB_RNG = "" # Zephyr RTOS settings +ZEPHYR_BOARD = "mps2/an521/cpu0" ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot" diff --git a/meta-zephyr-bsp/conf/machine/mps3-an547.conf b/meta-zephyr-bsp/conf/machine/mps3-an547.conf index ad8c687..64f91c6 100644 --- a/meta-zephyr-bsp/conf/machine/mps3-an547.conf +++ b/meta-zephyr-bsp/conf/machine/mps3-an547.conf @@ -12,8 +12,11 @@ TCLIBC = "newlib" QB_SYSTEM_NAME = "qemu-system-arm" QB_MACHINE = "-machine mps3-an547" QB_CPU = "-cpu cortex-m55" +QB_MEM = "-m 2048" QB_GRAPHICS = "-vga none" QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm" +QB_RNG = "" # Zephyr RTOS settings +ZEPHYR_BOARD = "mps3/corstone300/an547" ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"