summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-06-03 11:03:33 +0300
committerDenys Drozdov <denys.drozdov@toradex.com>2021-01-08 19:42:06 +0200
commit9e32ced048a5b8afb2185fedf96d3b1230cf4694 (patch)
treeb56eb7ff70197db8e50208b9e7e14773075b47c7 /arch
parent8d00556ebc5a0d94872d8b42049af82737f811aa (diff)
toradex: imx8: enable BOOTCOUNT feature
This introduces automatic boot counter that increases after every reset. After a power-on reset, it will be initialized with 1, and each reboot will increment the value by 1. By default it's disabled if bootlimit isn't set. To enable this feature you have set bootcount limit ("bootlimit"), alternate boot action ("altbootcmd") that will be performed if the new value of bootcount exceeds the value of bootlimit, and "upgrade_available" to let U-Boot automatically increase and save the counter value after every reset: > setenv bootlimit 5 > setenv upgrade_available 1 > setenv altbootcmd "bootm ..." In case the bootlimit exceeds, the message will be shown and albootcmd executed: Warning: Bootlimit (5) exceeded. Using altbootcmd. To reset bootcount run: > bootcount reset Print current value: > bootcount print Relates-to: ELB-2703 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> (cherry picked from commit e40c8a3daa5820b984752197636a13b7599c053b)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions