Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1768|Reply: 1

Orange Pi Zero Plus 2 missing spidev

[Copy link]

2

Threads

4

Posts

36

Credits

Novice

Rank: 1

Credits
36
Post time 2018-2-24 11:31:29 | Show all posts |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| Post time 2018-2-26 20:31:24 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-9-23 13:37 GMT+8 , Processed in 0.028063 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list