I’m working on raspberry pi4 pinned on balenaOS 6.5.1+rev2
I’m experiencing a potential issue with BalenaOS 6.5.1+rev2.
When I upgrade to this version and include the following configuration parameters:
I’m unable to instantiate the SC16IS752 UART. In previous versions, this configuration worked as expected, and I could access ttySC0 and ttySC1. However, with version 6.5.1+rev2, no UART devices appear.
Is this related to a GPIO handling bug introduced in this release?
It would also be very appreciated to add a feature to go back to the OS versions, especially in the event of a problem
@mpous can you clarify where this would have been introduced? I’m also seeing this issue starting in version 6.5.x. The affected section of code was working fine in v6.4.1 rev 1.
The GitHub issue you linked is from a while ago, not clear why it would affect only new versions of Balena OS (and it’s not clear from the changelog)?
I’m using gpiozero and RPi.GPIO
Like in the GitHub issue, my code also now crashes with:
my-service File "/usr/local/lib/python3.9/site-packages/gpiozero/pins/pi.py", line 319, in _set_when_changed
my-service self._enable_event_detect()
my-service File "/usr/local/lib/python3.9/site-packages/gpiozero/pins/rpigpio.py", line 226, in _enable_event_detect
my-service GPIO.add_event_detect(
my-service RuntimeError: Failed to add edge detection
What would be greatly appreciated from Balena would be the ability to roll back to a previous version of BalenaOS
A very concrete example:
After updating several machines to version 6.5, we are currently experiencing several issues in the GPIO system
Due to changes with the new Raspberry Pi OS, the RPi.GPIO library commonly used has been deprecated, so it is not compatible with the newer OS versions.
We are facing issues with this as well, it would be really great if we could have a downgrade option for OS… Has anyone found a way to work around it?
in our case this command is throwing an error:
echo 7 > /sys/class/gpio/export
This prevents us from resetting our lora concentrator on startup at the moment.
libgpiod doesn’t seem to be available either since gpiodetect is not available. Or do we have to install this ourselves in the container?
The only way I’ve managed to “downgrade” is to switch to the previous boot partition by updating the file /mnt/boot/resinOS_uEnv.txt and changing resin_root_part=2 to resin_root_part=3 (or vice versa depending on which was the last working partition).