=================
Compile Kernel Module
In home directory(/home/pi),
- sudo rpi-update && sudo reboot
- sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source
- rpi-source --skip-gcc
- copying kernel directory(with files) into home directory(/home/pi/kernel)
- make
- sudo make install
- sudo depmod
- sudo insmod kernel_module.ko
How to Execute
- make
- ./run