YIO-Remote / remote-software

💎 YIO Remote Software repository
GNU General Public License v3.0
164 stars 21 forks source link

Find replacement for unsupported WiringPi library #492

Closed zehnm closed 2 years ago

zehnm commented 4 years ago

Expected Behavior or Design

All 3rd party libraries are maintained and if possible supported by Buildroot.

Current Behavior or Design

GPIO access and i2c communication are handled with the WiringPi library. This library has been deprecated in August 2019 and is no longer maintained: http://wiringpi.com/wiringpi-deprecated/ Furthermore it has been removed in the latest Builroot version 2020.05.

Possible Solution

Detailed Description and Additional Information

From libgpiod: Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use the character device instead.

Personally, I'd prefer to go the standard Linux Kernel route. If you have any suggestions, please comment.

zehnm commented 4 years ago

After testing direct SMBus communication and digging around the WiringPi library, the effort wouldn't be too big replacing WiringPi. However, WiringPi already uses SMBus for i2c! Therefore I don't see an urgent need replacing WiringPi, as long as we can still easily use it in Buildroot. I still need to look into libgpiod though.

zehnm commented 3 years ago

Small update: in remote-os we are now using a custom Buildroot package for a forked WirkingPi repo, since the original repository is no longer online and official Buildroot support has been removed.