This is just a basic linux device driver which explains about the real read and write of the device file. Please update your Beaglebone board's kernel directory in the Makefile. Build for Beaglebone: ...