mraa does not work any more with Kernel 5.X : legacyGPIO REMOVED from kernel
I am successfully compiling mraa on a rasppberryPi4-64 with debian buster image kernel v5.4. Unfortunately mrra is not operational because legacy GPIO is not constructed any more and a bunch of files is missing in /sys/ folder. I might be a little ahead on that move but this inconvenience may spread over other users soon. Are there plans to bring mraa to use regular GPIO definitions. and make it available with recent kernels. I If anybody knows a reversible trick tu build the legacy GPIO please let me know
@g-vidal thanks for being a long time supporter of the project. A new milestone that I see relevant and needs to be promoted more is the need to implement the io_uring APIs that were made available with more recent kernels. This will keep the project relevant and modern so I hope it addresses at least part of your concerns.
@g-vidal We have added support for gpio chardev long ago in MRAA. That'll work with recent kernels. Please check 96boards platform support code where you'll get some reference. For switching over, you just need to provide a flag and an array of gpio chardev mapping. Finally MRAA will try to use chardev or legacy gpio depending on the kernel revision.
Let me know if you need any help.
Many thanks @Propanu and @Mani-Sadhasivam I am very busy to support teachers during the covid-19 containment with distance learning. I am deeply overbooked at the moment but I'll check ASAP and provide feedback.