I have a Raspberry Pi 2 and I would like to use it to communicate with an SPI device.
The pins from the SPI device have been connected to the appropriate headers on the board, so all that remains is for me to load the correct modules to talk to the device.
I have used raspi-config to enable SPI and to load the module automatically. After rebooting I saw that /dev/spidev0.0 and /dev/spidev0.1 were available for me to read from. I tried to simply run cat /dev/spidev0.0 & and I got an error message: cat: /dev/spidev0.0: Message too long.
When I run lsmod I see that the module spi_bcm2708 is loaded. I was under the impression that the correct module to load is spi_bcm2835, is this the case?
I can't find the location where this module is loaded, it's not listed in /etc/modules, or anywhere that I can see in any of the init.d scripts. Where can I find the module command to change it to use the more up to date module?
Alternatively is there a way to update raspi-config to use the correct module?