please choosego to mobile | Continue to access the PC version
View: 6172|Reply: 1

Orange Pi Zero Plus 2 missing spidev

[Copy link]

2

threads

4

posts

36

credits

Novice

Rank: 1

credits
36
Published in 2018-2-24 11:31:29 | Show all floors |Read mode
Hi

The linux images of OPi Zero Plus 2 were all missing spidev. I checked the source code from git that it might be the defconfig did not enable the spidev. The manual mentioned there should be an spidev1. I tried to build from the Opi git source code. However when building cross_compile, there're many errors. I guess I'm not using the right toolchain. And yet, the toolchain for H5 files are all like toolchain00, toolchain01... I'm not sure if they're rar or tar?
Building inside Opi ZeroPlus 2 is not possible, due to there only 512Mb ram, the build process run out of memory and crashed.

I also tried to build and armbian image, and successfully make the spidev works. However the kernel is new and quite unstable.



Can you help and:
- rebuild the linux image with the spidev?

- update the source code and build procedure may be for the OPi Zero Plus 2?

I left a few comments at the git so you can take a look..


2

threads

4

posts

36

credits

Novice

Rank: 1

credits
36
 Author| Published in 2018-2-26 20:31:24 | Show all floors
Finally I was able to fix the build problem. It was the toolchain problem. Although I still dunno what are the format of the toolchain available in github, somehow I was able to fix the toolchain, and build the modules.
Yet when I modprobe spidev, there're no responses. I've found the spi1 was depreciated and did not load

Any ideas why it's disabled?

[    5.379790] spi spi1: master is unqueued, this is deprecated
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list