You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: U-Boot boot limit with fallback to old system
Use U-Boot boot limit functionality to detect a system update and failed startups.
This uses the following U-Boot env variables:
- `bootlimit`: defines the maximum number of reboot cycles allowed. Default value: 3
- `bootcount`: will be incremented at each reboot IF `upgrade_available` is set to 1
- `upgrade_available`: indicates that a system update has been applied.
- SWUpdate sets this value to 1 after a new system update has been written.
- Verified after boot with a systemd timer:
If after a system update the remote app is still running after 3 minutes after boot up,
the update is considered successful and `upgrade_available` and `bootcount` U-Boot env vars are cleared.
- `rootfspart`: holds the current active root filesystem partition number to boot from.
- `altbootcmd`: alternative U-Boot boot command if bootlimit is exceeded.
- Switches the `rootfspart` to the old partition number to restore the old system.
0 commit comments