Clone git:
git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi2
Goto BPI-WiringPi2 directory:
cd BPI-WiringPi2
Ensure build is executable:
chmod +x ./build
Run compile and install process:
./build
Make sure build success:
which gpio
You should see:
/usr/local/bin/gpio
Now link the /usr/local/bin/gpio into /usr/bin/gpio
sudo ln -s /usr/local/bin/gpio /usr/bin/gpio
Now run:
gpio readall
You’ll see the table:
Voila! Now you can work with gpio on M2U!