Feargus
Posts: 5
Joined: Wed Feb 10, 2016 9:01 pm

3.18.0 kernel headers and SPI

Sun Feb 28, 2016 1:50 am

I am trying to get GPIB to work on an RPi B+, following this guide:
https://www.element14.com/community/peo ... ment-79630

To use linux-gpib, I need the kernel headers, and the newest ones seem to be the ones of version 3.18. I installed those using

Code: Select all

sudo apt-get install linux-image-rpi-rpfv
sudo apt-get install linux-headers-rpi-rpfv
However, using that kernel, my SPI pins stop working

Code: Select all

ls /dev/*spi*
shows no devices.
When going back to the 4.X kernel, SPI works again.
I was reading that something regarding "device tree" changed in version 3.18, but it's not clear if 3.18.0 was before or after that change.

I would be grateful for any tips on how to get SPI to work with the 3.18.0 kernel, or where to get up-to-date kernel headers, so I can use them to build linux-gpib

Thanks


Feargus
Posts: 5
Joined: Wed Feb 10, 2016 9:01 pm

Re: 3.18.0 kernel headers and SPI

Wed Mar 02, 2016 6:41 pm

This did indeed work, thank you very much.

Communicating with a GPIB device using sudo ibtest works.

I still have problems with pyvisa and pyvisa-py, but that is a different problem.

Thanks so far :-)

Return to “Interfacing (DSI, CSI, I2C, etc.)”