[SOLVED] RockPi 4C+ Not enable GPIO (mraa-gpio list --> No Pins)

Hi,
I tried to take GPIO control of my RockPi 4C+ following the steps recommended by Radxa, but when I run #mraa-gpio list it says “No Pins”. /dev/gpiochip* is missing and I have this:

-Ubuntu 20.04
-Kernel: 4.4.194-11-rk3399-rockchip-g1bb08d49cc40

  • /boot/hw_intfc.conf it exists

~$ ls -l /sys/class/gpio
total 0
–w------- 1 root root 4096 feb 25 18:06 export
lrwxrwxrwx 1 root root 0 Feb 25 18:06 gpiochip0 -> …/…/devices/platform/pinctrl/gpio/gpiochip0
lrwxrwxrwx 1 root root 0 Feb 25 18:06 gpiochip128 -> …/…/devices/platform/pinctrl/gpio/gpiochip128
lrwxrwxrwx 1 root root 0 Feb 25 18:06 gpiochip32 -> …/…/devices/platform/pinctrl/gpio/gpiochip32
lrwxrwxrwx 1 root root 0 Feb 25 18:06 gpiochip511 -> …/…/devices/platform/ff3c0000.i2c/i2c-0/0-0020/rk805-pinctrl/gpio/gpiochip511
lrwxrwxrwx 1 root root 0 Feb 25 18:06 gpiochip64 -> …/…/devices/platform/pinctrl/gpio/gpiochip64
lrwxrwxrwx 1 root root 0 Feb 25 18:06 gpiochip96 -> …/…/devices/platform/pinctrl/gpio/gpiochip96
–w------- 1 root root 4096 Feb 25 18:06 unexport

I don’t know what may be happening. Any ideas that can help me?
TIA


I answer myself.
The SOLUTION was provided by Nasca on January 10 at Radxa 4C+ - mraa not working
suggesting installing libmraa_1.9_arm64.deb, as a link to libmraa.zip.
It must be installed with the command line (not with GDebi) and it works.
@rock-4c-plus:~$ mraa-gpio list
01 3V3:
02 5V:
03 SDA7: GPIO I2C
04 5V:
05 SCL7: GPIO I2C
06 GND:
07 SPI2_CLK: GPIO SPI
08 TXD2: GPIO UART
09 GND:
10 RXD2: GPIO UART
11 PWM0: GPIO PWM
12 GPIO4_A3: GPIO
.
.
.
Regards,
HTH

1 Like