Step by step using GPIO on VIM2

I did flash my old VIM2 max via Kresque and installed Ubuntu I can’t get wiringpi to work.
Ubuntu 18.04.4 LTS Kernel 5.5.0-rc2

root@v2001:~# 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

So I’ve cloned WiringPi from https://github.com/khadas/WiringPi.git
and ran: ./build
running into:
runRemote.c: In function ‘runRemoteCommands’:
runRemote.c:63:32: error: ‘PI_GPIO_MASK’ undeclared (first use in this function); did you mean ‘__FD_MASK’?
if (noLocalPins && ((pin & PI_GPIO_MASK) == 0))
^~~~~~~~~~~~
__FD_MASK
runRemote.c:63:32: note: each undeclared identifier is reported only once for each function it appears in
Makefile:55: recipe for target ‘runRemote.o’ failed
make: *** [runRemote.o] Error 1

I would like to connect a 433 transmitter to GPIO23

Anyone did something like this before and can share experience ?

Hello mate, Can you try using a more recent firmware, it might fix your problem :slight_smile:

Sure, which would you recommend to get it working?

Try a latest release of Focal (ubuntu 20.04) of 4.9 kernel, it will ensure stability and will have wiring-pi preinstalled, make sure it was something newer than 20200530…