Code for Live Coding Session 1.
Hi! This session is dedicated to creating a driver and monitor application for an imaginary heart rate monitor device. When built and run, the final result looks approximately like this:
To start using, first we create a virtual machine for this project:
- Clone this repository using git.
- Install Vagrant.
- Install VirtualBox (or your favorite supported VM provider).
- If using VirtualBox, install the vagrant-vbguest plugin (
vagrant plugin install vagrant-vbguest). - Run
vagrant upwhere you cloned the repo (whereVagrantfileis) to create a shiny new VM with everything you need in it.
Now you can use your favorite editor to edit project files and changes will be reflected inside the VM in the project directory.
To build the kernel module, run vagrant ssh to open a shell to the VM. Once connected, run:
make -C /lib/modules/`uname -r`/build M=$PWDin the project directory.
To clean up the built files, run:
make -C /lib/modules/`uname -r`/build M=$PWD cleanExperiment and have fun,
KernelTLV Team
