]> git.sur5r.net Git - u-boot/commitdiff
configs: ge_bx50v3: enable bootcount
authorIan Ray <ian.ray@ge.com>
Wed, 10 Jan 2018 19:31:35 +0000 (20:31 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
Enable bootcount using an EXT file.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
include/configs/ge_bx50v3.h

index 605d92e8eebe93549788af0910d3dea794f2045c..15635d7032f5bffa38a5e4066c190219fc61dabc 100644 (file)
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "script=boot.scr\0" \
+       "bootlimit=10\0" \
        "image=/boot/fitImage\0" \
        "console=" CONSOLE_DEV "\0" \
        "fdt_high=0xffffffff\0"   \
 
 #define CONFIG_BCH
 
+#define CONFIG_BOOTCOUNT_LIMIT
+#define CONFIG_BOOTCOUNT_EXT
+#define CONFIG_SYS_BOOTCOUNT_EXT_INTERFACE     "mmc"
+#define CONFIG_SYS_BOOTCOUNT_EXT_DEVPART       "1:5"
+#define CONFIG_SYS_BOOTCOUNT_EXT_NAME          "/boot/failures"
+#define CONFIG_SYS_BOOTCOUNT_ADDR              0x7000A000
+
 #endif /* __GE_BX50V3_CONFIG_H */