Skip to content
Banana Pi -BPI edited this page Jul 18, 2026 · 1 revision

Build and Install

Requirements

  • A supported Banana Pi running Linux.
  • A compiler, make, libc development headers and Git.
  • Root permission for installation and, depending on the backend/device permissions, runtime GPIO access.

Example Debian/Ubuntu preparation:

sudo apt update
sudo apt install build-essential git

Build from this repository

git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi2.git
cd BPI-WiringPi2
./build
sudo ldconfig

The build script builds and installs libwiringPi, libwiringPiDev and the gpio utility. Review the script before running it on production systems because installation modifies system library and binary paths.

Non-installing developer build

Use this path when reviewing a port without installing it system-wide:

make -C wiringPi
make -C devLib
make -C gpio clean
make -C gpio \
  INCLUDE='-I../wiringPi -I../devLib' \
  LDFLAGS='' \
  LIBS='../wiringPi/libwiringPi.so.3.19 ../devLib/libwiringPiDev.so.3.19 -lpthread -lrt -lm -lcrypt'

Verify the installation

gpio -v
gpio readall

gpio readall should show the detected board and its exact connector layout. Stop if the board name, header size or power/GND positions are wrong.

Uninstall

./build uninstall

See Known Limitations and Roadmap before assuming every displayed pin supports pull, alternate functions or PWM.

Clone this wiki locally