Skip to contentSkip to conversation

arm/machine: add zephyr machine conf for microbit

PATCH In review Jon Mason 2 participants 2 messages Jan 12, 2021 – Jan 14, 2021

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 arm/machine: add zephyr machine conf for microbit

Zephyr supports QEMU based machine for Cortex M0 (qemu-cortex-m0). This is actually using the BBC Microbit v1 machine in QEMU. Use this more accurate name for the machine conf. This enables us to verify m0 tunings.

NOTE: qemu-cortex-m0's zephyr config has SRAM too small to run zephyr-kernel-test-all, but can run zephyr-philosophers and zephyr-kernel-test-sleep (and possibly others).

Change-Id Ia997a162c10cf1a6b8fea244cb1960f4d4c66adc
---
 meta-arm/conf/machine/microbit-v1.conf | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-arm/conf/machine/microbit-v1.conf
meta-arm/conf/machine/microbit-v1.conf new file +20 -0
new file mode 100644
index 0000000..c4cc4d5
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: microbit_v1
+#@DESCRIPTION: Machine for BBC Microbit v1, Zephyr BOARD qemu_cortex_m0
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/tune-cortex-m0.inc
+
+MACHINEOVERRIDES =. "nordic:"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine microbit"
+QB_CPU = "-cpu cortex-m0"
+QB_OPT_APPEND = "-nographic -vga none"
+QB_RNG = ""
+
+# Zephyr RTOS settings
+ZEPHYR_BOARD = "qemu_cortex_m0"
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH_qemu-cortex-m0 = "arm"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Jon Mason

Zephyr supports QEMU based machine for Cortex M0 (qemu-cortex-m0). This is actually using the BBC Microbit v1 machine in QEMU. Use this more accurate name for the machine conf. This enables us to verify m0 tunings.

Quoted 7 lines

NOTE: qemu-cortex-m0's zephyr config has SRAM too small to run zephyr-kernel-test-all, but can run zephyr-philosophers and zephyr-kernel-test-sleep (and possibly others).

Change-Id Ia997a162c10cf1a6b8fea244cb1960f4d4c66adc

---

Pulled into master.

Thanks,
Jon

Quoted 37 lines
 meta-arm/conf/machine/microbit-v1.conf | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-arm/conf/machine/microbit-v1.conf
meta-arm/conf/machine/microbit-v1.conf new file +20 -0
new file mode 100644
index 0000000..c4cc4d5
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: microbit_v1
+#@DESCRIPTION: Machine for BBC Microbit v1, Zephyr BOARD qemu_cortex_m0
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/tune-cortex-m0.inc
+
+MACHINEOVERRIDES =. "nordic:"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine microbit"
+QB_CPU = "-cpu cortex-m0"
+QB_OPT_APPEND = "-nographic -vga none"
+QB_RNG = ""
+
+# Zephyr RTOS settings
+ZEPHYR_BOARD = "qemu_cortex_m0"
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH_qemu-cortex-m0 = "arm"
Signature · 1 line
2.17.1