spidev is broken

Since the today’s Raspbian upudate, the spi interface not working anymore.

uname -a
Linux raspberrypi1 3.18.5+ #746 PREEMPT Mon Feb 2 13:57:16 GMT 2015 armv6l GNU/Linux

All commands below and numberous rebooting show, that the support for spi is simply voided.

dmesg | grep spi
ls -l /dev/spi*
ls /sys/bus/spi/devices
lsmod
insmod spi
modprobe spidev
modinfo spidev

I also took care of the blacklist

sudo nano /etc/modprobe.d/raspi-blacklist.conf

nothing worked out so far 😦

edit[2015-02-03]
I may have found an official explaination for the SPI problems…
http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=98318
http://www.raspberrypi.org/forums/viewtopic.php?p=675658#p675658

All that’s to be done is adding the following lines into /boot/config.txt as super user

dtparam=spi=on
dtparam=i2c=on
dtparam=i2s=on

edit[2015-04-15]
An easy approach to solve the issue with 1-wire sensors DS18B20 etc. is described here .

edit[2015-06-04]
You just add the following line at the end of file /boot/config.txt to use PIN 7 (GPIO=4) as w1-DATA

# 1wire bus for DS18B20
dtoverlay=w1-gpio,gpiopin=4,pullup=on

reboot and check your result with

ls /sys/bus/w1/devices/
cat /sys/devices/w1_bus_master1/28*/w1_slave | grep t=

if you have an installed 1-wire sensor, such as the DS18B20

Leave a comment