Assignment for the Politecnico di Torino course, "Operating Systems for Embedded Systems"
This Yocto layer has been designed (and tested) to work on the Raspberry Pi 3B.
These steps should be done on an already set up Raspberry Pi 3 build environment.
- Clone this repository inside your Yocto directory:
git clone https://github.com/andreapignaz/meta-assignment280098.git
- Go inside the rpi3 build environment:
source oe-init-build-env build_rpi3
- Add the cloned layer to the rpi3 building container:
bitbake-layers add-layer ../meta-assignment280098
- Add the new recipes to the image to be deployed: in the file conf/local.conf inside the build_rpi3 directory, add the following lines:
IMAGE_INSTALL_append = " heartbeatapplication"
IMAGE_INSTALL_append = " heartbeatmodule"
KERNEL_MODULE_AUTOLOAD += "heartbeatmodule"
- Run bitbake:
bitbake core-image-full-cmdline
- Flash the microSD with the image (replace sdX with the correct device identifier):
sudo dd if=tmp/deploy/images/raspberrypi3/core-image-full-cmdline-raspberrypi3.rpi-sdimg of=/dev/sdX bs=1M
After the Raspberry Pi did boot up:
- Launch the heartbeat application:
heartbeatapplication