How can I test what GPIOs work?

Hello !

I am trying to test if the M3’s pins works or not and I’ve stumbled upon this library: https://github.com/joan2937/pigpio

Linux bananapim3 4.19.38-sunxi
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian

I followed the instruction here: https://abyz.me.uk/rpi/pigpio/download.html

And I’ve ran the following commands:

: sudo apt-get autoremove && sudo apt-get -f install && sudo apt-get update && : : sudo apt-get upgrade -y
: wget abyz.me.uk/rpi/pigpio/pigpio.zip
: unzip pigpio.zip
: cd PIGPIO
: make
: sudo make install
pi@bananapim3:~/PIGPIO$ sudo ./x_pigpio # check C I/F
2019-06-25 09:15:49 initAllocDMAMem: mbox open failed(No such device or address)
pigpio initialisation failed.
pi@bananapim3:~/PIGPIO$ sudo pigpiod
pi@bananapim3:~/PIGPIO$ 2019-06-25 09:16:49 initAllocDMAMem: mbox open failed(No such device or address)
Can't initialise pigpio library

pigpiod -v returns 68.

And that’s it. I can’t make it work and I don’t know what to past this point ! Any ideas ? Thank you !

EDIT:

So I’ve ran :

pi@bananapim3:~/PIGPIO$ sudo ./x_pigpio              
2019-06-25 09:24:20 initAllocDMAMem: mbox open failed(No such device or address)
pigpio initialisation failed.

Then I did this pi@bananapim3:~/PIGPIO$ sudo pigpiod -a1 and it returned nothing, like no error or such. Then:

pi@bananapim3:~/PIGPIO$ gpiotest
Could not find the database of available applications, run update-command-not-found as root to fix this
gpiotest: command not found

That’s for another hardware called Raspberry Pi. For Allwinner GPIOS check this page http://linux-sunxi.org/GPIO

1 Like