/linux-spi-device-driver-netlink-socket

Netlink Socket approach to communicate with a SPI device driver

Primary LanguageC

Steps to install and run -

Note: You may need to edit some compile paths and/or the galileo ssh IP depending on your configuration. The Makefile is highly configurable, and you only need to change the values of certain variables.

1.To compile the hcsr driver and userspace program

Cross compile for galileo - make galileo

2. Copy over to galileo using - make scp

3. Run on galileo
a. Install the module -
	insmod genl_drv.ko

b. Run the userspace program
	./genl_ex

c.Remove the module
	rmmod genl_drv.ko