title: Building a Mender Yocto image for a Raspberry
body: <p>I'm trying to build a <strong>Mender Yocto image</strong> for my <strong>Raspberry Pi</strong> to have the  possibility of remote updates.</p>
  
  <p>I was following this instructions:
   <a href="https://docs.mender.io/1.0/artifacts/building-mender-yocto-image" rel="nofollow noreferrer">https://docs.mender.io/1.0/artifacts/building-mender-yocto-image</a></p>
  
  <p>Also, I added this layer:
  <a href="https://github.com/mendersoftware/meta-mender/tree/master/meta-mender-raspberrypi" rel="nofollow noreferrer">https://github.com/mendersoftware/meta-mender/tree/master/meta-mender-raspberrypi</a></p>
  
  <p>My <em><code>local.conf</code></em> looks like:</p>
  
  <pre><code>KERNEL_IMAGETYPE = "uImage"
  
  MENDER_PARTITION_ALIGNMENT_KB = "4096"
  MENDER_BOOT_PART_SIZE_MB = "40"
  IMAGE_DEPENDS_sdimg += " bcm2835-bootfiles"
  # raspberrypi files aligned with mender layout requirements
  IMAGE_BOOT_FILES_append = " boot.scr u-boot.bin;${SDIMG_KERNELIMAGE}"
  IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
  MENDER_ARTIFACT_NAME = "release-1"
  INHERIT += "mender-full"
  MACHINE = "raspberrypi3"
  
  DISTRO_FEATURES_append = " systemd"
  VIRTUAL-RUNTIME_init_manager = "systemd"
  DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
  VIRTUAL-RUNTIME_initscripts = ""
  
  IMAGE_FSTYPES = "ext4"
  </code></pre>
  
  <p>My <em><code>bblayers.conf</code></em> file looks like:</p>
  
  <pre><code># POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
  # changes incompatibly
  POKY_BBLAYERS_CONF_VERSION = "2"
  
  BBPATH = "${TOPDIR}"
  BBFILES ?= ""
  
  BBLAYERS ?= " \
  /home/c3po/poky/meta \
  /home/c3p0/poky/meta-poky \
  /home/c3po/poky/meta-yocto-bsp \
  /home/c3po/poky/oe-meta-go \
  /home/c3po/poky/meta-mender/meta-mender-core \
  /home/c3po/poky/meta-mender/meta-mender-demo \
  /home/c3po/poky/meta-mender/meta-mender-raspberrypi \
  "
  </code></pre>
  
  <p>In additon to the answer from Drew I added:</p>
  
  <p>In the poky folder I cloned the  meta-raspberrypi layer:</p>
  
  <pre><code>git clone  git://git.yoctoproject.org/meta-raspberrypi
  </code></pre>
  
  <p>Than I added the layer with:</p>
  
  <pre><code>bitbake-layers add-layer /meta-raspberrypi
  </code></pre>
  
  <p>and the dependencies</p>
  
  <pre><code>git clone git://git.openembedded.org/openembedded-core
  git clone git://git.openembedded.org/meta-openembedded
  
  add-layer ../openembedded-core
  add-layer ../meta-openembedded
  </code></pre>