zephyr-bsp: add support for qemu-cortex-a9
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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
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
@@ -147,3 +147,6 @@ qemu-x86: stm32mp157c-dk2: extends: .build + +v2m-musca-b1: + extends: .build
ci/v2m-musca-b1.yml new file +10 -0
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
FYI, the CI for this series can be seen at
https://gitlab.com/jonmason00/meta-zephyr/-/pipelines/660400016
Quoted 73 lines · Jon Mason
Signed-off-by Jon Mason <[email protected]>--- .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@@ -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@@ -0,0 +1,10 @@ +header: + version: 11 + includes: + - ci/base.yml + +local_conf_header: + failing_tests: | + ZEPHYRTESTS:remove = "common queue" + +machine: qemu-cortex-a9meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf new file +20
-0@@ -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
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-a9FYI, the CI for this series can be seen at
https://gitlab.com/jonmason00/meta-zephyr/-/pipelines/660400016Quoted 73 lines · Jon Mason
Signed-off-by Jon Mason <[email protected]>--- .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
-0100644
.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
-0mode 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-a9meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf new file +20
-1@@ -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