zgoda Posted August 21, 2015 Share Posted August 21, 2015 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. Link to comment Share on other sites More sharing options...
tkaiser Posted August 21, 2015 Share Posted August 21, 2015 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 Link to comment Share on other sites More sharing options...
Igor Posted August 21, 2015 Share Posted August 21, 2015 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. Link to comment Share on other sites More sharing options...
zgoda Posted August 21, 2015 Author Share Posted August 21, 2015 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. Link to comment Share on other sites More sharing options...
tkaiser Posted August 21, 2015 Share Posted August 21, 2015 Since you want to use a Banana Pro it should read CONFIG_SPI_SUN7I instead? It's not defined in Igor's config and maybe that's the reason: http://will-tm.com/spi-on-the-cubieboard2/ Regarding mainline kernel, SPI and device tree have a look at http://linux-sunxi.org/SPIdev 1 Link to comment Share on other sites More sharing options...
zgoda Posted August 21, 2015 Author Share Posted August 21, 2015 Thank you. Replying to myself: spidev is not loaded because it's not compiled as module. Link to comment Share on other sites More sharing options...
Recommended Posts