forked from WiringPi/WiringPi
-
Notifications
You must be signed in to change notification settings - Fork 29
Build and Install
Banana Pi -BPI edited this page Jul 18, 2026
·
1 revision
- 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 gitgit clone https://github.com/BPI-SINOVOIP/BPI-WiringPi2.git
cd BPI-WiringPi2
./build
sudo ldconfigThe 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.
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'gpio -v
gpio readallgpio readall should show the detected board and its exact connector layout. Stop if the board name, header size or power/GND positions are wrong.
./build uninstallSee Known Limitations and Roadmap before assuming every displayed pin supports pull, alternate functions or PWM.
Documentation for BPI-SINOVOIP/BPI-WiringPi2 · Verify the exact board, carrier, revision and voltage before driving GPIO.