As pull-up and pull down resistor and the wiringPiISR library call did not work for Banana M2-Zero I modified the BPI version and (partly) fixed the problems. More details in the README file on my github. As stated in the README I did not test every command, just the ones I needed myself.
If you need a command or library call which is still buggy ( for M2-Zero) let me know and I will see what I can do … wish you fun
example of (corrected) gpio readall: