I build from this repository: github
I had to edit the makefiles by adding a flag: -fcommon
The command output is like this: ~/WiringPi # gpio readall +------+-----+-------------------+------+---+----+--- Model Khadas-Edge ---+----+---+------+----------------------------+-----+------+ | GPIO | wPi | Name | Mode | V | DS | PU/PD | Physical | PU/PD | DS | V | Mode | Name | wPi | GPIO | +------+-----+-------------------+------+---+----+-------+----++----+-------+----+---+------+----------------------------+-----+------+ | | | 5V | | | | | 1 || 21 | | | | | GND(0V) | | | Bus Error