Hi all,
I have a problem with polling GPIO pins on Raspberry 2/3. The system works for 5 to 15 seconds, but then freezes completely and I need to flash the sd card again to get back running.
The code works locally without problems (on command line). I can also see GPIO polling working if I try this in the console (Balena cloud’s ssh window), but the system freezes quickly.
There’s a minimal example here (rpio test), where a button click switches a led strip between green/red, and here’s my dockerfile for the example.
I noticed that some other people have encountered the same (or similar) issue, but I wasn’t able to figure out what they finally did to get everything working.
-
https://forums.balena.io/t/raspberry-pi-4-solid-green-led/36472
https://forums.balena.io/t/installing-node-rpio-requires-gcc-4-8-packages-for-c-11-support/4742/5
I’ve set BALENA_HOST_CONFIG_dtoverlay=gpio-no-irq as per the instructions.
I’m pulling my hair out because of this. If anyone had a working example or any hints on how to solve this, I’d be eternally grateful.
Aleksi