Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] SPI module on Raspberry Pi B+
@ 2016-01-15 13:06 David Picard
  2016-01-15 21:35 ` Peter Seiderer
  0 siblings, 1 reply; 3+ messages in thread
From: David Picard @ 2016-01-15 13:06 UTC (permalink / raw)
  To: buildroot

Hello,

I just switched from Buildroot 2015.08.1 to 2015.11.1, and tried to keep 
the same configuration. SPI was working well, before the switch.

Now, I am having some trouble with the SPI driver, namely spi_bcm2835 : 
when I insert the module, there is no log in dmesg output, and nothing 
is created in /sys/bus/spi/devices.

I could make it work by loading spi_bcm2708 instead, despite the 
deprecated warning. In this case, I get some logging messages and 
/sys/bus/spi/devices/spi0.0 and /sys/bus/spi/devices/spi0.1 appear.

Any idea ?

David.

------------------
Board : Raspberry Pi B+
Buildroot : 2015.11.1
SPI peripheral : Adafruit PiTFT 2.8"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] SPI module on Raspberry Pi B+
@ 2016-01-15 13:08 David Picard
  0 siblings, 0 replies; 3+ messages in thread
From: David Picard @ 2016-01-15 13:08 UTC (permalink / raw)
  To: buildroot

Hello,

I just switched from Buildroot 2015.08.1 to 2015.11.1, and tried to keep 
the same configuration. SPI was working well, before the switch.

Now, I am having some trouble with the SPI driver, namely spi_bcm2835 : 
when I insert the module, there is no log in dmesg output, and nothing 
is created in /sys/bus/spi/devices.

I could make it work by loading spi_bcm2708 instead, despite the 
deprecated warning. In this case, I get some logging messages and 
/sys/bus/spi/devices/spi0.0 and /sys/bus/spi/devices/spi0.1 appear.

Any idea ?

David.

------------------
Board : Raspberry Pi B+
Buildroot : 2015.11.1
SPI peripheral : Adafruit PiTFT 2.8"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] SPI module on Raspberry Pi B+
  2016-01-15 13:06 David Picard
@ 2016-01-15 21:35 ` Peter Seiderer
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2016-01-15 21:35 UTC (permalink / raw)
  To: buildroot

Hello David,

On Fri, 15 Jan 2016 14:06:10 +0100, David Picard <davepiq@yahoo.fr> wrote:

> Hello,
> 
> I just switched from Buildroot 2015.08.1 to 2015.11.1, and tried to keep 
> the same configuration. SPI was working well, before the switch.
> 
> Now, I am having some trouble with the SPI driver, namely spi_bcm2835 : 
> when I insert the module, there is no log in dmesg output, and nothing 
> is created in /sys/bus/spi/devices.
> 

Did you try with a fresh build using the 2015.11.1 configs/raspberrypi_defconfig?

Did you enable spi support (on the target SD card) in the config.txt file?

I use the following for hifiberry-dac+ support (and Adafruit PiTFT):

diff -u config.txt_orig config.txt
--- config.txt_orig     2015-09-29 21:11:00.000000000 +0200
+++ config.txt  2015-10-01 21:22:14.000000000 +0200
@@ -18,3 +18,30 @@
 gpu_mem_256=100
 gpu_mem_512=100
 gpu_mem_1024=100
+
+#
+# from https://www.raspberrypi.org/documentation/configuration/device-tree.md
+#
+dtdebug=1
+
+# Uncomment some or all of these to enable the optional hardware interfaces
+dtparam=i2c_arm=on
+dtparam=i2s=on
+dtparam=spi=on
+dtoverlay=hifiberry-dacplus

Regards,
Peter

> I could make it work by loading spi_bcm2708 instead, despite the 
> deprecated warning. In this case, I get some logging messages and 
> /sys/bus/spi/devices/spi0.0 and /sys/bus/spi/devices/spi0.1 appear.
> 
> Any idea ?
> 
> David.
> 
> ------------------
> Board : Raspberry Pi B+
> Buildroot : 2015.11.1
> SPI peripheral : Adafruit PiTFT 2.8"
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-15 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 13:08 [Buildroot] SPI module on Raspberry Pi B+ David Picard
  -- strict thread matches above, loose matches on Subject: below --
2016-01-15 13:06 David Picard
2016-01-15 21:35 ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox