A repo to setup a working environment for experimentation and lab exercises
The code provided as part of this repository is ONLY for learning purposes!
- Setup your envrionment on Rpi (One time setup):
- Install raspbian on the Rpi and complete the installation
- Setup
ssh
on Rpi - Install Kernel headers:
sudo apt install raspberrypi-kernel-headers
- Compile the kernel driver module
- Create a new folder e.g.
cd sample-assignment
- Create necessary files and copy over the source code from the files attached in the course's assignment/lecture sections
- Once all the files are copied, your directory structure should contain -
- Source -
.c
files for our Kernel driver - Makefile -
Makefile
- Source -
- Run
make
to compile the kernel (You should seemodule.ko
file being generated)
- Create a new folder e.g.
- Install the module and validate the functionality
- Install the module:
sudo insmod <module_name.ko>
- Verify the installation and working:
dmesg | tail -n 5
- Uninstall the module:
sudo rmmod <module_name>
- Can also check the list of all installed modules:
lsmod | grep <module_name>
- Install the module:
Copyright © 2024 inpyjama.com. All Rights Reserved.