1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-31 12:50:02 +00:00

arm-bsp: musca-b1: Add Zephyr support

Zephyr supports Musca B1, and QEMU has an emulated Musca B1 board.  Add
the relevant parts to get this compiling with meta-zephyr and (in
theory) run QEMU.

Change-Id: I9af4aea03e31e96f8eee17f44913e747b1241891
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Jon Mason
2020-09-30 08:54:12 -04:00
parent 3b924302d6
commit 4cde2c189e
2 changed files with 39 additions and 0 deletions
+13
View File
@@ -11,3 +11,16 @@ require conf/machine/include/tune-cortexm33.inc
# GLIBC will not work with Cortex-M. # GLIBC will not work with Cortex-M.
TCLIBC = "baremetal" TCLIBC = "baremetal"
# For runqemu
require conf/machine/include/qemu.inc
QB_SYSTEM_NAME = "qemu-system-arm"
QB_MACHINE = "-machine musca-b1"
QB_CPU = "-cpu cortex-m33"
QB_OPT_APPEND = "-nographic -vga none"
QB_MEM = "512k"
# Zephyr RTOS settings
ZEPHYR_BOARD = "v2m_musca_b1"
ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
ARCH_musca-b1 = "arm"
+26
View File
@@ -0,0 +1,26 @@
# Musca B1
## Overview
For a description of the hardware, go to
https://developer.arm.com/tools-and-software/development-boards/iot-test-chips-and-boards/musca-b-test-chip-board
For current supported hardware by Zephyr, go to
https://docs.zephyrproject.org/2.3.0/boards/arm/v2m_musca/doc/index.html
For emulated hardware, go to
https://www.qemu.org/docs/master/system/arm/musca.html
## Building
In the local.conf file, MACHINE should be set as follows:
MACHINE ?= "musca-b1"
To build for Zephyr:
```bash$ bitbake-layers layerindex-fetch meta-zephyr```
```bash$ bitbake zephyr-philosophers```
To build the trusted firmware-m (and not Zephyr):
```bash$ bitbake trusted-frimware-m```
## Running
To run Zephyr on the QEMU based machine, execute the following command
```bash$ runqemu qemu-musca-b1```