Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

This project has been deprecated, please refer to https://github.com/PelionIoT/meta-pelion-edge for the Yocto recipes or meta layers of Pelion Edge.

License

Notifications You must be signed in to change notification settings

PelionIoT/meta-mbed-raspberrypi

Repository files navigation

meta-mbed-raspberrypi

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.

Dependencies

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:

poky

meta-openembedded

meta-raspberrypi

Adding the meta-mbed-raspberrypi layer to your build

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 \
    "

About

This project has been deprecated, please refer to https://github.com/PelionIoT/meta-pelion-edge for the Yocto recipes or meta layers of Pelion Edge.

Resources

License

Stars

Watchers

Forks

Packages

No packages published