IT lexicon › Infra & Ops › Boot counter

Boot counter

Infra & Ops På svenska → Updated: 2026-11-05

A counter the bootloader bumps on every start and the running system clears once it's healthy — otherwise a fallback path takes over.

The problem it solves is the device that boots, hangs and reboots forever after a bad update. In U-Boot, bootcount lives somewhere that survives a reset: an RTC register, a scrap of RAM or the environment in flash. Once the value exceeds bootlimit, the bootloader runs altbootcmd instead of the usual boot command — typically the other system partition or a recovery mode.

It only works paired with a watchdog. A kernel that wedges itself counts nothing; it's the watchdog that forces the reboot that makes the counter tick. Update tools such as RAUC, SWUpdate and Mender reset the counter only after the application itself reports that it works, not merely when the kernel has loaded.

← Back to the lexicon