We have an application with BBB and our own proprietary cape. It has been running on Debian Buster IoT for a number of years now. We have been using the adafruit GPIO-BBB driver and have been switching on and off some Hi-side drivers on pin P8-39 through P8-46 with no problems.
I have created an SD Card with the latest version of Debian as above and was unable to install the adafruit driver. So I have installed Python-Periphery which we have working on another SOC Board and it works perfectly fine so a “No Brainer” switching to this on the BBB!!. I have not attached our cape to the Industrial BBB for testing the GPIO Pins as I want to completely isolate it from any other hardware.
Has anybody else tried to use this python-periphery driver only to find it does not work? I have disabled the display pins in uEnv.txt “disable_uboot_overlay_video=1” but to no avail. I can see the pins are being set to output after I run a little test app with gpioinfo. The test Python App just sets the pins to output and writes a value to them. I have connected an LED to the pins to see if they lights up when I run the app, which they don’t.
I have created a simple-gpio overlay to set the pins to output and I am not really sure if I have set that up correctly either. I have never had to use overlays before as everything just worked out of the box previously.
Any advise or suggestion would be greatly appreciated!!.
This is going to be broken in later v6.x’s kernels, as the libgpio inside linux kernel has massively changed in the last year.. (hard coded gpio offset numbers have changed)
Otherwise it’s a cool project, thanks for sharing.. I’d retry with the v5.10.x-ti kernel or maybe the earlier 6.6.x-bone kernel
Thank you Robert for your prompt response, I had seen your post earlier about using v5.10.x for those who may not be ready for latest. And you are correct of course about hard coding it always comes back to bite you (the user) when you try to do an upgrade!!!