Skip to content

A (basic) layer for a Yocto distribution (deployed on Raspberry Pi) that mocks a heartbeat measurement module and gives readings on the command line. Assignment for Politecnico di Torino course, "Operating Systems for Embedded Systems".

License

Notifications You must be signed in to change notification settings

andreapignaz/yocto_heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yocto_heartbeat

Assignment for the Politecnico di Torino course, "Operating Systems for Embedded Systems"

Target machine

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.

Add the recipes to Yocto and build the Linux image

  1. Clone this repository inside your Yocto directory:
git clone https://github.com/andreapignaz/meta-assignment280098.git
  1. Go inside the rpi3 build environment:
source oe-init-build-env build_rpi3
  1. Add the cloned layer to the rpi3 building container:
bitbake-layers add-layer ../meta-assignment280098
  1. 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"
  1. Run bitbake:
bitbake core-image-full-cmdline 
  1. 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

Use the driver and the application

After the Raspberry Pi did boot up:

  1. Launch the heartbeat application:
heartbeatapplication

About

A (basic) layer for a Yocto distribution (deployed on Raspberry Pi) that mocks a heartbeat measurement module and gives readings on the command line. Assignment for Politecnico di Torino course, "Operating Systems for Embedded Systems".

Topics

Resources

License

Stars

Watchers

Forks