We can reset to 0 by calling bootcount -r but if we want to force "recovery mode" (e.g. altbootcmd) we could set bootcount=0xFFFF ?
Usage:
bootcount -f Set bootcount to 0xFFFF to force altbootcmd to run
Need to verify, if bootcount is incremented first (e.g. always at least 1) we don't want it to roll over to 0. However we can use this to force it to rollover back to 0 after booting into recovery. Meaning, altbootcmd will run once, then a subsequent reboot will rollover the value to 0, and boot normally the next time.
We can reset to 0 by calling
bootcount -r
but if we want to force "recovery mode" (e.g.altbootcmd
) we could setbootcount=0xFFFF
?Usage:
Need to verify, if bootcount is incremented first (e.g. always at least 1) we don't want it to roll over to 0. However we can use this to force it to rollover back to 0 after booting into recovery. Meaning,
altbootcmd
will run once, then a subsequent reboot will rollover the value to 0, and boot normally the next time.