Banana Pi M2 Zero - wiringPi2


Hey, I tried to install on my Banana Pi M2 Zero with this image: But I only get this message if I try to use gpio readall:

Unable to determine hardware version. I see: Hardware : Allwinner sun8i Family
- expecting BCM2708, BCM2709 or BCM2835.
If this is a genuine Raspberry Pi then please report this
to If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.

Can anyone help me with this problem? Thanks


Here is the solution:

  1. Copy the files from to your system
  2. Change bpi-m3 to bpi-m2z in this file var/lib/bananapi/
  3. Install
  4. Have fun with wiringPi


+1, worked for me, thanks