Banana Pi M2 Zero - wiringPi2


#1

Hey, I tried to install https://github.com/BPI-SINOVOIP/BPI-WiringPi2 on my Banana Pi M2 Zero with this image: http://forum.banana-pi.org/t/bpi-m2-zero-new-image-2017-12-04-armbian-5-36-m2-zero-ubuntu-xenial-next-4-14-3-desktop-preview-buildbybpi/4325/26 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 projects@drogon.net. 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


#2

Here is the solution:

  1. Copy the files from https://github.com/BPI-SINOVOIP/BPI-files/tree/master/others/bpi-service to your system
  2. Change bpi-m3 to bpi-m2z in this file var/lib/bananapi/board.sh
  3. Install https://github.com/BPI-SINOVOIP/BPI-WiringPi2
  4. Have fun with wiringPi

#3

+1, worked for me, thanks