sywong2000 post at 2018-2-24 11:31:29

Orange Pi Zero Plus 2 missing spidev

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..


sywong2000 post at 2018-2-26 20:31:24

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
page: [1]
View full version: Orange Pi Zero Plus 2 missing spidev