View: 11639|Reply: 5

OrangePi Zero /dev/spidevX.X absent

[Copy link]

1

threads

3

posts

15

credits

Novice

Rank: 1

credits
15
Published in 2018-2-6 17:09:31 | Show all floors |Read mode
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:

  1. [ 0.469611] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
  2. [ 0.469803] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
Copy code

After little Google browsing I found this:
Fex_Guide and SPIdev
I tried to put following in /boot/config.txt file:

  1. [spi0_para]
  2. spi_used = 1
  3. spi_cs_bitmap = 1
  4. spi_cs0 = port:PI10<2><default><default><default>
  5. spi_sclk = port:PI11<2><default><default><default>
  6. spi_mosi = port:PI12<2><default><default><default>
  7. spi_miso = port:PI13<2><default><default><default>

  8. [spi_devices]
  9. spi_dev_num = 1

  10. [spi_board0]
  11. modalias = "spidev"
  12. max_speed_hz = 12000000
  13. bus_num = 0
  14. chip_select = 0
  15. mode = 0
  16. full_duplex = 1
  17. manual_cs = 0
Copy code


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?


9

threads

634

posts

4460

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4460
Published in 2018-2-7 04:26:36 | Show all floors
https://www.armbian.com/download/

SPI works on both kernels.

1

threads

3

posts

15

credits

Novice

Rank: 1

credits
15
 Author| Published in 2018-2-7 05:41:44 | Show all floors
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.

1

threads

3

posts

15

credits

Novice

Rank: 1

credits
15
 Author| Published in 2018-2-7 06:20:09 | Show all floors
As explained here:
http://www.orangepi.org/Docs/FAQ.html
  1. sudo modprobe spi-sun7i
Copy code

not works:
  1. modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/3.4.39/modules.dep.bin'
Copy code

9

threads

634

posts

4460

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4460
Published in 2018-2-8 18:38:50 | Show all floors
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.
Published in yesterday 00:20 | Show all floors
Comfortabl y, the post is really the freshest on this deserving topic. I harmonise with your conclusions and also can thirstily look forward to your next updates. Just saying thanks will not simply just be adequate, for the extraordinary clarity in your writing. I can directly grab your rss feed to stay informed of any updates. Gratifying work and much success in your business dealings!        소액 현금화
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list