(In /src directory)
make
- Make sure that MAJOR_NUMBER (== 100) does not overlap with any other driver.
insmod my_device.ko
mknod /dev/my_device c 100 0
(In /run directory)
- Because it is based on the ARM board, it must be built using the ARM compiler.
arm-linux-gnueabihf-gcc run.c