Skip to contentSkip to conversation

zephyr-bsp: add support for qemu-cortex-a9

PATCH In review Jon Mason 3 participants 8 messages Oct 7, 2022 – Oct 11, 2022 Arm/versatile express platform

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/6 zephyr-bsp: add support for qemu-cortex-a9

---
 .gitlab-ci.yml                                |  7 +++++++
 ci/qemu-cortex-a9.yml                         | 10 ++++++++++
 .../conf/machine/qemu-cortex-a9.conf          | 20 +++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 ci/qemu-cortex-a9.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
.gitlab-ci.yml +7 -0
index 5752254..031b5c5 100644
@@ -90,6 +90,13 @@ qemu-cortex-a53:
       - TOOLCHAIN: [default, zephyr-toolchain]
         TESTING: testimage
 
+qemu-cortex-a9:
+  extends: .build
+  parallel:
+    matrix:
+      - TOOLCHAIN: [default, zephyr-toolchain]
+        TESTING: testimage
+
 qemu-cortex-m0:
   extends: .build
   parallel:
ci/qemu-cortex-a9.yml new file +10 -0
new file mode 100644
index 0000000..cc44730
@@ -0,0 +1,10 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+local_conf_header:
+  failing_tests: |
+    ZEPHYRTESTS:remove = "common queue"
+
+machine: qemu-cortex-a9
meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf new file +20 -0
new file mode 100644
index 0000000..9dfee42
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: qemu-cortex-a9
+#@DESCRIPTION: Machine for Zephyr BOARD qemu_cortex_a9
+
+DEFAULTTUNE ?= "cortexa9"
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv7a/tune-cortexa9.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine xilinx-zynq-a9"
+QB_CPU = "-cpu cortex-a9"
+QB_GRAPHICS = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=3,align=off,sleep=off -rtc clock=vm"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:qemu-cortex-a9 = "arm"
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/6 zephyr-bsp: add support for mps2-an385

---
 .gitlab-ci.yml                               |  7 +++++++
 ci/mps2-an385.yml                            |  6 ++++++
 meta-zephyr-bsp/conf/machine/mps2-an385.conf | 19 +++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 ci/mps2-an385.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/mps2-an385.conf
.gitlab-ci.yml +7 -0
index 031b5c5..b7de43a 100644
@@ -77,6 +77,13 @@ frdm-kw41z:
 intel-x86-64:
   extends: .build
 
+mps2-an385:
+  extends: .build
+  parallel:
+    matrix:
+      - TOOLCHAIN: [default, zephyr-toolchain]
+        TESTING: testimage
+
 nrf52840-mdk-usb-dongle:
   extends: .build
 
ci/mps2-an385.yml new file +6 -0
new file mode 100644
index 0000000..e536118
@@ -0,0 +1,6 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+machine: mps2-an385
meta-zephyr-bsp/conf/machine/mps2-an385.conf new file +19 -0
new file mode 100644
index 0000000..159e1bd
@@ -0,0 +1,19 @@
+#@TYPE: Machine
+#@NAME: mps2-an385
+#@DESCRIPTION: Machine for Zephyr BOARD mps2-an385
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv7m/tune-cortexm3.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine mps2-an385"
+QB_CPU = "-cpu cortex-m3"
+QB_GRAPHICS = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:mps2-an385 = "arm"
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/6 zephyr-bsp: add support for mps2-an521

In reply to Jon Mason
---
 .gitlab-ci.yml                               |  7 +++++++
 ci/mps2-an521.yml                            |  6 ++++++
 meta-zephyr-bsp/conf/machine/mps2-an521.conf | 21 ++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 ci/mps2-an521.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/mps2-an521.conf
.gitlab-ci.yml +7 -0
index b7de43a..9c6ac3b 100644
@@ -84,6 +84,13 @@ mps2-an385:
       - TOOLCHAIN: [default, zephyr-toolchain]
         TESTING: testimage
 
+mps2-an521:
+  extends: .build
+  parallel:
+    matrix:
+      - TOOLCHAIN: [default, zephyr-toolchain]
+        TESTING: testimage
+
 nrf52840-mdk-usb-dongle:
   extends: .build
 
ci/mps2-an521.yml new file +6 -0
new file mode 100644
index 0000000..13259cf
@@ -0,0 +1,6 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+machine: mps2-an521
meta-zephyr-bsp/conf/machine/mps2-an521.conf new file +21 -0
new file mode 100644
index 0000000..acd02be
@@ -0,0 +1,21 @@
+#@TYPE: Machine
+#@NAME: mps2-an521
+#@DESCRIPTION: Machine for Zephyr BOARD mps2-an521
+
+DEFAULTTUNE ?= "armv8m-main"
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv8-m/tune-cortexm33.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine mps2-an521"
+QB_CPU = "-cpu cortex-m33"
+QB_MEM = "-m 16"
+QB_GRAPHICS = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:mps2-an521 = "arm"
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH 4/6 zephyr-bsp: add support for mps3-an547

In reply to Jon Mason
---
 .gitlab-ci.yml                               |  7 +++++++
 ci/mps3-an547.yml                            |  6 ++++++
 meta-zephyr-bsp/conf/machine/mps3-an547.conf | 20 ++++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 ci/mps3-an547.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/mps3-an547.conf
.gitlab-ci.yml +7 -0
index 9c6ac3b..538f4ff 100644
@@ -91,6 +91,13 @@ mps2-an521:
       - TOOLCHAIN: [default, zephyr-toolchain]
         TESTING: testimage
 
+mps3-an547:
+  extends: .build
+  parallel:
+    matrix:
+      - TOOLCHAIN: [default, zephyr-toolchain]
+        TESTING: testimage
+
 nrf52840-mdk-usb-dongle:
   extends: .build
 
ci/mps3-an547.yml new file +6 -0
new file mode 100644
index 0000000..372ec04
@@ -0,0 +1,6 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+machine: mps3-an547
meta-zephyr-bsp/conf/machine/mps3-an547.conf new file +20 -0
new file mode 100644
index 0000000..185c425
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: mps3-an547
+#@DESCRIPTION: Machine for Zephyr BOARD mps3-an547
+
+DEFAULTTUNE ?= "armv8-1m-main"
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv8-1m/tune-cortexm55.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine mps3-an547"
+QB_CPU = "-cpu cortex-m55"
+QB_GRAPHICS = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:mps3-an547 = "arm"
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH 5/6 zephyr-bsp: add support for v2m-musca-b1

In reply to Jon Mason
---
 .gitlab-ci.yml                                |  3 +++
 ci/v2m-musca-b1.yml                           | 10 ++++++++
 .../conf/machine/v2m-musca-b1.conf            | 25 +++++++++++++++++++
 3 files changed, 38 insertions(+)
 create mode 100644 ci/v2m-musca-b1.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/v2m-musca-b1.conf
.gitlab-ci.yml +3 -0
index 538f4ff..e3b15ad 100644
@@ -147,3 +147,6 @@ qemu-x86:
 
 stm32mp157c-dk2:
   extends: .build
+
+v2m-musca-b1:
+  extends: .build
ci/v2m-musca-b1.yml new file +10 -0
new file mode 100644
index 0000000..a867c4c
@@ -0,0 +1,10 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+local_conf_header:
+  nonbuilding_tests: |
+    ZEPHYRTESTS:remove = "common sleep poll device queue"
+
+machine: v2m-musca-b1
meta-zephyr-bsp/conf/machine/v2m-musca-b1.conf new file +25 -0
new file mode 100644
index 0000000..171e899
@@ -0,0 +1,25 @@
+# Configuration for Musca-B1 development board
+
+#@TYPE: Machine
+#@NAME: Musca-B1 machine
+#@DESCRIPTION: Machine configuration for Musca-B1
+
+DEFAULTTUNE ?= "armv8m-main"
+require conf/machine/include/arm/armv8-m/tune-cortexm33.inc
+
+# GLIBC will not work with Cortex-M.
+TCLIBC = "newlib"
+
+# For runqemu
+IMAGE_FSTYPES += "ext4"
+IMAGE_CLASSES += "qemuboot"
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine musca-b1"
+QB_CPU = "-cpu cortex-m33"
+QB_GRAPHICS = "-nographic -vga none"
+QB_MEM = "512k"
+
+# Zephyr RTOS settings
+ZEPHYR_BOARD = "v2m_musca_b1"
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:musca-b1 = "arm"
Signature · 1 line
2.17.1
author
#5 lore raw

PATCH 6/6 zephyr-bsp: add support for v2m-musca-s1

In reply to Jon Mason
---
 .gitlab-ci.yml                                |  3 +++
 ci/v2m-musca-s1.yml                           | 10 ++++++++
 .../conf/machine/v2m-musca-s1.conf            | 23 +++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 ci/v2m-musca-s1.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/v2m-musca-s1.conf
.gitlab-ci.yml +3 -0
index e3b15ad..3f0e319 100644
@@ -150,3 +150,6 @@ stm32mp157c-dk2:
 
 v2m-musca-b1:
   extends: .build
+
+v2m-musca-s1:
+  extends: .build
ci/v2m-musca-s1.yml new file +10 -0
new file mode 100644
index 0000000..01480e2
@@ -0,0 +1,10 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+local_conf_header:
+  nonbuilding_tests: |
+    ZEPHYRTESTS:remove = "common sleep poll device queue"
+
+machine: v2m-musca-s1
meta-zephyr-bsp/conf/machine/v2m-musca-s1.conf new file +23 -0
new file mode 100644
index 0000000..c43d560
@@ -0,0 +1,23 @@
+# Configuration for Musca-S1 development board
+
+#@TYPE: Machine
+#@NAME: Musca-S1 machine
+#@DESCRIPTION: Machine configuration for Musca-S1
+
+require conf/machine/include/arm/armv8-m/tune-cortexm33.inc
+
+# GLIBC will not work with Cortex-M.
+TCLIBC = "newlib"
+
+# For runqemu
+IMAGE_FSTYPES += "ext4"
+IMAGE_CLASSES += "qemuboot"
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine musca-s1"
+QB_CPU = "-cpu cortex-m33"
+QB_GRAPHICS = "-nographic -vga none"
+QB_MEM = "512k"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:musca-s1 = "arm"
Signature · 1 line
2.17.1
#6 lore raw
In reply to Jon Mason

FYI, the CI for this series can be seen at
https://gitlab.com/jonmason00/meta-zephyr/-/pipelines/660400016

Quoted 73 lines · Jon Mason
---
 .gitlab-ci.yml                                |  7 +++++++
 ci/qemu-cortex-a9.yml                         | 10 ++++++++++
 .../conf/machine/qemu-cortex-a9.conf          | 20 +++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 ci/qemu-cortex-a9.yml
 create mode 100644 meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
.gitlab-ci.yml +7 -0
index 5752254..031b5c5 100644
@@ -90,6 +90,13 @@ qemu-cortex-a53:
       - TOOLCHAIN: [default, zephyr-toolchain]
         TESTING: testimage
 
+qemu-cortex-a9:
+  extends: .build
+  parallel:
+    matrix:
+      - TOOLCHAIN: [default, zephyr-toolchain]
+        TESTING: testimage
+
 qemu-cortex-m0:
   extends: .build
   parallel:
ci/qemu-cortex-a9.yml new file +10 -0
new file mode 100644
index 0000000..cc44730
@@ -0,0 +1,10 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+local_conf_header:
+  failing_tests: |
+    ZEPHYRTESTS:remove = "common queue"
+
+machine: qemu-cortex-a9
meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf new file +20 -0
new file mode 100644
index 0000000..9dfee42
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: qemu-cortex-a9
+#@DESCRIPTION: Machine for Zephyr BOARD qemu_cortex_a9
+
+DEFAULTTUNE ?= "cortexa9"
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv7a/tune-cortexa9.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine xilinx-zynq-a9"
+QB_CPU = "-cpu cortex-a9"
+QB_GRAPHICS = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=3,align=off,sleep=off -rtc clock=vm"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:qemu-cortex-a9 = "arm"
Signature · 1 line
2.17.1
#7 lore raw

While running qemu, it throws following error:

runqemu - ERROR - Failed to run qemu: qemu-system-arm: -device virtio-rng-pci,rng=rng0: No 'PCI' bus found for device 'virtio-rng-pci'

Quoted 86 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Jon Mason
Sent: Friday, October 7, 2022 10:20 PM
To: Jon Mason <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] [meta-zephyr][PATCH 1/6] zephyr-bsp: add support for qemu-cortex-a9

FYI, the CI for this series can be seen at
https://gitlab.com/jonmason00/meta-zephyr/-/pipelines/660400016

Quoted 73 lines · Jon Mason
---
 .gitlab-ci.yml                                |  7 +++++++
 ci/qemu-cortex-a9.yml                         | 10 ++++++++++
 .../conf/machine/qemu-cortex-a9.conf          | 20 +++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 ci/qemu-cortex-a9.yml  create mode 100644

meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf

.gitlab-ci.yml index 5752254..031b5c5 renamed from .gitlab-ci.yml +0 -0

100644

.gitlab-ci.yml +7 -0
@@ -90,6 +90,13 @@ qemu-cortex-a53:
       - TOOLCHAIN: [default, zephyr-toolchain]
         TESTING: testimage
 
+qemu-cortex-a9:
+  extends: .build
+  parallel:
+    matrix:
+      - TOOLCHAIN: [default, zephyr-toolchain]
+        TESTING: testimage
+
 qemu-cortex-m0:
   extends: .build
   parallel:
ci/qemu-cortex-a9.yml new file renamed from ci/qemu-cortex-a9.yml +0 -0

mode 100644 index 0000000..cc44730

ci/qemu-cortex-a9.yml new file +10 -0
@@ -0,0 +1,10 @@
+header:
+  version: 11
+  includes:
+    - ci/base.yml
+
+local_conf_header:
+  failing_tests: |
+    ZEPHYRTESTS:remove = "common queue"
+
+machine: qemu-cortex-a9
meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf new file +20 -1
new file mode 100644
index 0000000..9dfee42
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: qemu-cortex-a9
+#@DESCRIPTION: Machine for Zephyr BOARD qemu_cortex_a9
+
+DEFAULTTUNE ?= "cortexa9"
+require conf/machine/include/qemu.inc require
+conf/machine/include/arm/armv7a/tune-cortexa9.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine xilinx-zynq-a9"
+QB_CPU = "-cpu cortex-a9"
+QB_GRAPHICS = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=3,align=off,sleep=off -rtc clock=vm"
+
+# Zephyr RTOS settings
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:qemu-cortex-a9 = "arm"
--

2.17.1