]> git.ipfire.org Git - people/ms/u-boot.git/commit
arm/km: adapt bootcounter evaluation
authorHolger Brunck <holger.brunck@keymile.com>
Tue, 13 Sep 2011 22:41:02 +0000 (22:41 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:23 +0000 (22:56 +0100)
commit37605c466d10ea49c8618d8a4cdfd0176efa8f68
treedad48d568c32add9e3ab3ee0889fe0c6a130f3a4
parentc5dd9785173ca2118609868c7efb4f19dab00d6b
arm/km: adapt bootcounter evaluation

The bootcounter (stored in the RAM) is not enough protected with the 4 Bytes
BOOTCOUNT_MAGIC against bit errors due to short power loss or holding a system
in RESET. It has been seen, that the bootcounter value has been changed due to
a bit flip on a system holding in RESET, but the BOOTCOUNT_MAGIC was still valid.

A bit pattern with 4000 bytes (after BOOTCOUNT_MAGIC) has been implemented,
which should be enough to detect a bit error.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
board/keymile/km_arm/km_arm.c