Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

SPI not working on Linux 4.1.11+ Oct 25 (after upgrade)
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
SPI not working on Linux 4.1.11+ Oct 25 (after upgrade)
2nd Nov, 2015, 01:10 PM
Post: #1
cmik Offline
Registered
Posts: 0
Joined: Nov 2015
Reputation: 0
SPI not working on Linux 4.1.11+ Oct 25 (after upgrade)
Hello not sure what happened, but I did an apt-get upgrade, and it broke my LED lights and Hyperion.

It appears there are not SPI devices.

Terminal

xbian@xbian ~ $ ll /dev/spi*
ls: cannot access /dev/spi*: No such file or directory
xbian@xbian ~ $ uname -a
Linux xbian 4.1.11+ #1 SMP PREEMPT Sun Oct 25 21:05:41 CET 2015 armv7l GNU/Linux
xbian@xbian ~ $ cd /lib/modules/4.1.11+/kernel/drivers/spi/
xbian@xbian /lib/modules/4.1.11+/kernel/drivers/spi $ ls
spi-bcm2708.ko spi-bitbang.ko spi-gpio.ko spi-pl022.ko spi-xcomm.ko
xbian@xbian /lib/modules/4.1.11+/kernel/drivers/spi $ sudo insmod spi-bcm2708.ko
insmod: ERROR: could not insert module spi-bcm2708.ko: No such device

I have played around with the /boot/config.txt and found something that worked.
Added the following line:
dtoverlay=spi-bcm2708

Is it expect that Xbian users change this /boot/config.txt to get SPI working? I do not remember required to do this when I originally set-up Hyperion.
Find all posts by this user
Quote this message in a reply
27th Feb, 2016, 09:06 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: SPI not working on Linux 4.1.11+ Oct 25 (after upgrade)
This is because since kernel version 3.18 DT has been introduced https://www.raspberrypi.org/documentation/configuration/device-tree.md

Means that all special hardware/interfaces (LIRC, I2S Soundcards, ...) has to be enabled in /boot/config.txt
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] Linux installer not working rlogiacco 4 13,871 18th Jan, 2015 11:46 PM
Last Post: rikardo1979

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 08:25 AM Powered By MyBB, © 2002-2025 MyBB Group.