This README file contains information on the contents of the
meta-mbed-raspberrypi
layer.
The meta-mbed-raspberrypi
layer contains mbed_sdcard_image-rpi-class
that can be used to build an SD-card image capable of firmware update through
Mbed Cloud Client. In practice this means an image with additional partitions
and u-boot
bootloader.
To use this layer, add following lines to your local.conf
-file:
MACHINE = "mbed-rpi3"
RPI_USE_U_BOOT = "1"
#ENABLE_UART is strictly not necessary, but can help with debugging issues.
ENABLE_UART="1"
#Mbed Edge and protocol translator examples use systemd, it is enabled with these
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""
IMAGE_INSTALL_append = " connman"
To enable the bluetooth features, add following lines to your local.conf
-file:
DISTRO_FEATURES_append += " bluetooth "
CORE_IMAGE_EXTRA_INSTALL += " ${MACHINE_EXTRA_RRECOMMENDS} "
${MACHINE_EXTRA_RRECOMMENDS}
contains the Broadcom firmware packages.
The Mbed Edge on Raspberry Pi 3 is currently tested on top of the sumo
-version
of the Yocto and with this layer. The following repositories are required to build
an image with Raspberry Pi 3 support:
In order to use this layer, you need to make the build system aware of it.
Assuming the meta-mbed-raspberrypi
layer exists at the top-level of your
Yocto build tree, you can add it to the build system by adding the
location of the meta-mbed-raspberrypi
layer to bblayers.conf
,
along with any other layers needed. e.g.:
BBLAYERS ?= " \
/path/to/yocto/meta \
/path/to/yocto/meta-poky \
/path/to/yocto/meta-openembedded/meta-oe \
/path/to/yocto/meta-raspberrypi
/path/to/yocto/meta-mbed-raspberrypi \
"