Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phasing out most Linux drivers #971

Open
2bndy5 opened this issue Apr 1, 2024 · 1 comment
Open

Phasing out most Linux drivers #971

2bndy5 opened this issue Apr 1, 2024 · 1 comment

Comments

@2bndy5
Copy link
Member

2bndy5 commented Apr 1, 2024

I'm of the opinion that all but SPIDEV should be phased out.

  • MRAA isn't well maintained since Intel passed it on to the eclipse github org; contributions don't seem to be well verified/tested. And it stopped working on the RPi4.
  • BCM2835 can't really support RPi5 using interactions with CPU registers due to the hardware abstraction on RPi5.
  • pigpio is practically in the same position as BCM2835 lib concerning RPi5 support. They'd have to overhaul the lib's internals to behave more like the newer lgpio lib of the same author, but that would introduce breaking changes to the API.
  • wiringPi has been limping on via sparse community support since Gordon ended official development. The more I dive into that lib's source, the less appealing it is. Long story made short: its old and not well written.
  • Has littlewire ever worked? The source I found is not compatible with the driver API we have. The header that our littlewire driver looks for no longer exists in the littlewire sources, and I can't even figure out when that changed using git blame.

Originally posted by @2bndy5 in #969 (comment)

@2bndy5
Copy link
Member Author

2bndy5 commented Apr 1, 2024

I don't expect to actually remove anything until RPi7 gets produced. We can hard-code the build systems to select SPIDEV despite the presence of other needed libraries. This should be the least breaking approach we can do to dissuade users from selecting other (seemingly unreliable) drivers.

2bndy5 added a commit that referenced this issue Apr 5, 2024
in preparation for #971

- affects CMake and configure scripts
- adds warnings to docs with reference to #971
- removes docs' note about pigpio needed for IRQ support
- fix cross-links in docs (probably a doxygen v1.10.0 difference)
2bndy5 added a commit that referenced this issue Apr 6, 2024
in preparation for #971

- affects CMake and configure scripts
- adds warnings to docs with reference to #971
- removes docs' note about pigpio needed for IRQ support
- fix cross-links in docs (probably a doxygen v1.10.0 difference)

* set doxygen favicon
* don't override user input about RF24_DRIVER in cmake
  when not using an env var to set RF24_DRIVER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant