Re: [meta-zephyr][PATCH 1/6] zephyr-bsp: add support for qemu-cortex-a9


Naveen Saini
 

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'

-----Original Message-----
From: yocto@... <yocto@...> On
Behalf Of Jon Mason
Sent: Friday, October 7, 2022 10:20 PM
To: Jon Mason <jon.mason@...>
Cc: yocto@...
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

On Fri, Oct 07, 2022 at 10:11:58AM -0400, Jon Mason wrote:
Signed-off-by: Jon Mason <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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5752254..031b5c5
100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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:
diff --git a/ci/qemu-cortex-a9.yml b/ci/qemu-cortex-a9.yml new file
mode 100644 index 0000000..cc44730
--- /dev/null
+++ b/ci/qemu-cortex-a9.yml
@@ -0,0 +1,10 @@
+header:
+ version: 11
+ includes:
+ - ci/base.yml
+
+local_conf_header:
+ failing_tests: |
+ ZEPHYRTESTS:remove = "common queue"
+
+machine: qemu-cortex-a9
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
new file mode 100644
index 0000000..9dfee42
--- /dev/null
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
@@ -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

Join yocto@lists.yoctoproject.org to automatically receive all group messages.