I2C not working on Orange pi zero

Recommended Posts


I change from diet pi to my own compilation of armbian with rt kernel patch (orangepi zero)

In dietpi the my python code run perfectly the lcd screen (GPIO) but in armbian the code fail.

When I try to install GPIO with :

sudo modprobe sunxi-gpio

The output is:

modprobe: FATAL: Module gpio-sunxi not found in directory /lib/modules/4.13.9-rt1-sunxi

Very thanks

How I can repair this? 

pd: I enabled all gpio overlays in armbian-config


Also, I founded this, but I dont understand What is proposed here is for all pins or only for the ones set, and if this can work with I2C, Spi, etc...

Thanks a lot in advances.



Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

I am not sure what you are trying to achieve, but I2C LCD display certainly works on Opi Zero. You need to enable I2C bus with overlay and use appropriate drivers for your LCD. In my case, I use display library from @Larry Bank  https://github.com/bitbank2/oled_96


I would propose to start with our normal build. RT is considered experimental feature and we don't deal with it very much and also not support. The (modern) kernel for H3 is fragile already without and we still label it "testing", not yet "stable". I have no idea how you could build a kernel 4.13.9-rt1-sunxi in first place. We are at 4.14.y for some time.


4 hours ago, nwk said:

How I can repair this? 

Use our latest official kernel/build and enable only those you need. Below on the picture, you can see real-world example - some mini project on my desk with Opi Zero and OLED display, which is working perfectly fine with http://ix.io/WTy 




Link to post
Share on other sites
This topic is now closed to further replies.