Edit: This doesn't cover your running instability case, but that seems more like a feature that should be implemented using a user space watchdog.
[1] https://docs.u-boot.org/en/latest/api/bootcount.html
[0] https://github.com/fedora-iot/greenboot
Edit: This doesn't cover your running instability case, but that seems more like a feature that should be implemented using a user space watchdog.
[1] https://docs.u-boot.org/en/latest/api/bootcount.html