For the examples in this chapter, we need to use real hardware rather than virtual. This means that we need a BeagleBone Black with working power management. Unfortunately, the BSP for the BeagleBone that comes with the meta-yocto-bsp layer does not include the necessary firmware for the Power Management IC (PMIC), so we will have to build an image with a customized kernel. The procedure is the same as we covered in Chapter 6, Selecting a Build System.
First, get a copy of the Yocto Project Morty release, and add the meta-bbb-pm layer from the code archive:
$ git clone -b morty git://git.yoctoproject.org/poky.git
$ cd poky
$ cp -a MELP/chapter_11/poky/meta-bbb-pm
$ source oe-init-build-env build-bbb
$ bitbake-layers add-layer ../meta-bbb-pm
Next, edit conf/local.conf and add these lines at the beginning of the file:
MACHINE = "beaglebone"
PREFERRED_PROVIDER_virtual...