Jump to content

Recommended Posts

Posted

What module should I load to get SPI working on 4.x kernel image? My usual suspect spi_bcm2708 is not available. I once used it on Banana Pi M2 from other manufacturer (SinoVOIP?) with Raspbian, now on Banana Pro I'm stuck with not working SPI.

Posted

My usual suspect spi_bcm2708 is not available. I once used it on Banana Pi M2 from other manufacturer (SinoVOIP?) with Raspbian

 

Very unlikely since the M2 is also not a board using a BroadCom SoC. Have you tried a 'modprobe spidev' already? To check whether kernel support is present I would've a look at the output of

zgrep CONFIG_SPI /proc/config.gz
Posted

With kernel 3.4.108 it will be the same or similar as you are used to. The module name in Allwinner world is spi_sun7i (not Broadcomm  bcm2708) and it's already loaded within my images. But to enable SPI you need to enable it in script.bin files located in /boot ...

 

For kernel 4.x I can't give you direct how-to since I haven't come this far. It's totally different but possible. 

 

ADD: And spidev too yes.

Posted

modprobe -v spidev prints nothing and module is not loaded.
 
Kernel is stock, so it has SPI support compiled in. Module spi_7sun (nor any other sun*-spi) is not available although it's enabled in config:

 

$ zgrep CONFIG_SPI /proc/config.gz
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_FSL_SPI is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX_PCI is not set
# CONFIG_SPI_ROCKCHIP is not set
# CONFIG_SPI_SC18IS602 is not set
CONFIG_SPI_SUN4I=y
CONFIG_SPI_SUN6I=y
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_DESIGNWARE is not set
CONFIG_SPI_SPIDEV=y
# CONFIG_SPI_TLE62X0 is not set

 

I specifically need newer kernel because of docker>=1.6.2 requirement.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines