Raspberry Pi 0 Wifi

sumo
yocto
raspberry-pi-zero-wifi

#1

Board description

The Raspberry Pi Zero W comes with added wireless LAN and Bluetooth connectivity compared to Raspberry Pi Zero.

URL: https://www.raspberrypi.org/products/raspberry-pi-zero-w
Wiki: https://elinux.org/RPi_Hub

Test results

The Yocto Project releases in the table below have been tested by the Mender community. Please update it if you have tested this integration on other Yocto Project releases:

Yocto Project Build Runtime
thud (2.6) :test_works: :test_works: 1
sumo (2.5) :test_works: :test_works:

1. Disabled GRUB integration for ARM systems which is default in meta-mender/thud. U-boot is still primary integration method for this platform.

Build Means that the Yocto Project build using this Mender integration completes without errors and outputs images.
Runtime Means that Mender has been verified to work on the board. For U-Boot-based boards, the integration checklist has been verified.

Getting started

Prerequisites

  • A supported Linux distribution and dependencies installed on your workstation/laptop as described in the Yocto Mega Manual
    • NOTE. Instructions depend on which Yocto version you intend to use.
  • Google repo tool installed and in your PATH .

Configuring the build

Setup Yocto environment

Set the Yocto Project branch you are building for:

# set to your branch, make sure it is supported (see table above)
export BRANCH="sumo"  

Create a directory for your mender-raspberrypi setup to live in and clone the
meta information.

mkdir mender-raspberrypi && cd mender-raspberrypi

Initialize repo manifest:

repo init -u https://github.com/mendersoftware/meta-mender-community \
           -m meta-mender-raspberrypi/scripts/manifest-raspberrypi.xml \
           -b ${BRANCH}

Fetch layers in manifest:

repo sync

Next, initialize the build environment:

source setup-environment raspberrypi

Building the image

You can now proceed with building an image:

MACHINE=raspberrypi0-wifi bitbake core-image-base

Replace core-image-base with your desired image target.

Using the build output

  • tmp/deploy/images/raspberrypi0-wifi/core-image-base-raspberrypi0-wifi.sdimg
  • tmp/deploy/images/raspberrypi0-wifi/core-image-base-raspberrypi0-wifi.mender

The disk image (with .sdimg suffix) is used to provision the device storage for devices without Mender running already. Please proceed to the official documentation on provisioning a new device for steps to do this.

On the other hand, if you already have Mender running on your device and want to deploy a rootfs update using this build, you should use the Mender Artifact files, which have .mender suffix. You can either deploy this Artifact in managed mode with the Mender server as described in Deploy to physical devices or by using the Mender client only in Standalone deployments.

References

  • The official Mender documentation explains how Mender works. This is simply a board-specific complement to the official documentation.

Known issues

  • board doesn’t work out of the box on rocko branch as u-boot support was missing for this board.