Debian / raspi3-image-spec

contains the files to build the https://wiki.debian.org/RaspberryPi3 image
127 stars 32 forks source link

Missing SPI support #30

Closed crjp closed 5 years ago

crjp commented 6 years ago

SPI is not available since SPIDEV is not compiled into the kernel:

config-4.18.0-rc4-arm64:

# CONFIG_SPI_SPIDEV is not set
gwolf commented 6 years ago

FWIW, Christian Schlüter has reported this bug in Debian (which is as far as we can go for building this image!):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904043

Thanks Christian!

chschlue commented 6 years ago

FWIW, despite building a kernel with SPIDEV enabled and enabling the SPI devices using this DT-overlay, I haven't gotten it to work on a B+ yet.

gwolf commented 6 years ago

Christian Schlüter dijo [Tue, Jul 31, 2018 at 10:06:28AM -0700]:

FWIW, despite building a kernel with SPIDEV enabled and enabling the SPI devices using this DT-overlay, I haven't gotten it to work yet.

Hmm, odd. I have to try this. FWIW, the Raspbian kernel provides /dev/spidev

It might be related to some missing declaration at kernel load time? The following URL contains a snippet to be added to the dtb:

https://stackoverflow.com/questions/35699752/linux-spidev-is-not-shown-in-dev

Also, config.txt (on mmcblk0p1) contains:

dtparam=spi=on

So... Should check soon :) I'm currently without my console cable.

chschlue commented 6 years ago

This appears to work, i.e. I can write to and read from /dev/spidev*

Unfortunately, I can't reach any RPi physically ATM so I could bridge MISO and MOSI for a quick loopback test.

When it comes to device tree, you are fishing in murky waters as much as I am, right?

gwolf commented 6 years ago

Christian Schlüter dijo [Thu, Aug 02, 2018 at 04:32:42AM -0700]:

This appears to work, i.e. I can write to and read from the /dev/spidev*

Unfortunately, I can't reach any RPi physically ATM so I could bridge MISO and MOSI for a quick loopback test.

When it comes to device tree, you are fishing in murky waters as much as I am, right?

As murky as they can be :-]

chschlue commented 6 years ago

Apparently fixed in 4.18.5-1~exp1

gwolf commented 5 years ago

It's done in the kernel. I'm sorry for my extended absence from this project, I intend to pick up the slack and get this moving. I will be working in the next days in a new version, hopefully it won't take long to have it done! Am, of course, not closing this until it's properly imported and tested.

gwolf commented 5 years ago

Umh, I am going to close this issue - Its last action from both Christian and me is "I think it is closed", over six months ago. I am moving over open issues to Salsa. I am going to declare this issue as closed; please open in Salsa if it is not!