Almaz post at 2018-2-6 17:09:31

OrangePi Zero /dev/spidevX.X absent

Edited by Almaz at 2018-2-6 18:02

Hi! I am newbie in Linux.
I booted raspbian on OrangePi zero and don't found /dev/spidevX.X to use SPI.
Dmesg shows me following:

[ 0.469611] sunxi_spi_chan_cfg()1376 - has no spi_regulator.
[ 0.469803] sunxi_spi_chan_cfg()1376 - has no spi_regulator.
After little Google browsing I found this:
Fex_Guide and SPIdev
I tried to put following in /boot/config.txt file:


spi_used = 1
spi_cs_bitmap = 1
spi_cs0 = port:PI10<2><default><default><default>
spi_sclk = port:PI11<2><default><default><default>
spi_mosi = port:PI12<2><default><default><default>
spi_miso = port:PI13<2><default><default><default>


spi_dev_num = 1


modalias = "spidev"
max_speed_hz = 12000000
bus_num = 0
chip_select = 0
mode = 0
full_duplex = 1
manual_cs = 0

After rebooting the board I don't see spidevs in /dev directory.
Dmesg also doesn't shown me any changes. Does this mean that I need to build linux kernel from sources
or I did something wrong?


igorpec post at 2018-2-7 04:26:36

https://www.armbian.com/download/

SPI works on both kernels.

Almaz post at 2018-2-7 05:41:44

igorpec replied at 2018-2-7 04:26
https://www.armbian.com/download/

SPI works on both kernels.

Can't use armbian because there are a lot of Raspbian libraries need to be used.

Almaz post at 2018-2-7 06:20:09

As explained here:
http://www.orangepi.org/Docs/FAQ.htmlsudo modprobe spi-sun7i
not works:
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/3.4.39/modules.dep.bin'

igorpec post at 2018-2-8 18:38:50

Can't use armbian because there are a lot of Raspbian libraries need to be used.

... but it looks like they don't work? :) Raspbian for Orange pi is just some old Raspbian+extremly old and unsupported kernel for Allwinner H3 ... which is completely different than RPi.

You are wasting time.
page: [1]
View full version: OrangePi Zero /dev/spidevX.X absent