drewmoseley u-boot-raspberrypi: Update patch context.
Changelog: None
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
Latest commit b7df7db Jun 22, 2018



This Yocto layers contains recipes which enables support of building Mender client for Raspberry Pi boards.

NOTE!. To be able to support update of Linux kernel and DTB, Mender requires these to be installed in the /boot directory for each rootfs (normally /dev/mmcblk0p2 and /dev/mmcblk0p3). On the other hand, the Raspberry Pi boot firmware requires that the DTB file is in the same partition as the boot firmware (/dev/mmcbl0p1) and the config.txt file. For now Mender will not use the DTB that is delivered with new artifacts and will continue to boot with the original DTB that was populated using the SDIMG file.


This layer depends on:

URI: git://git.yoctoproject.org/meta-raspberrypi
branch: master
revision: HEAD

in addition to meta-mender dependencies.

Build instructions

  • Read the Mender documentation on Building a Mender Yocto image for Mender specific configuration.

  • Set MACHINE to one of the following

    • raspberrypi
    • raspberrypi0
    • raspberrypi0-wifi
    • raspberrypi2
    • raspberrypi3
    • raspberrypi-cm
  • Add following to your local.conf (including configuration required by meta-mender-core)

      RPI_USE_U_BOOT = "1"
      # These are simply to align with how the "stock" RPi machines are
      # configured.
      # rpi-base.inc removes these as they are normally installed on to the
      # vfat boot partition. To be able to update the Linux kernel Mender
      # uses an image that resides on the root file system and below line
      # ensures that they are installed to /boot
      IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
      # Mender will build an image called `sdimg` which shall be used instead
      # of the `rpi-sdimg`.
      IMAGE_FSTYPES_remove += " rpi-sdimg"
      # Use the same type here as specified in ARTIFACTIMG_FSTYPE to avoid
      # building an unneeded image file.
      SDIMG_ROOTFS_TYPE = "ext4"
  • Run bitbake <image name>