blob: da2ccabf2860021c9d3180311eb918dc801eb0f9 [file] [log] [blame]
Ian Rayf31dac42017-11-08 15:35:13 +00001#
2# Boot count configuration
3#
4
5menu "Boot count support"
6
Lukasz Majewskid1ec9462018-02-09 23:50:57 +01007config BOOTCOUNT_LIMIT
8 bool "Enable support for checking boot count limit"
9 help
10 Enable checking for exceeding the boot count limit.
11 More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
12
Lukasz Majewski04e2cea2018-02-09 23:53:29 +010013config SYS_BOOTCOUNT_SINGLEWORD
14 bool "Use single word to pack boot count and magic value"
15 help
16 This option enables packing boot count magic value and boot count
17 into single word (32 bits).
18
Alex Kiernan3dccc102018-02-16 15:50:38 +000019if BOOTCOUNT_LIMIT
Ian Rayf31dac42017-11-08 15:35:13 +000020
21config BOOTCOUNT_EXT
22 bool "Boot counter on EXT filesystem"
23 help
24 Add support for maintaining boot count in a file on an EXT
25 filesystem.
26
27if BOOTCOUNT_EXT
28
29config SYS_BOOTCOUNT_EXT_INTERFACE
30 string "Interface on which to find boot counter EXT filesystem"
31 default "mmc"
32 depends on BOOTCOUNT_EXT
33 help
34 Set the interface to use when locating the filesystem to use for the
35 boot counter.
36
37config SYS_BOOTCOUNT_EXT_DEVPART
38 string "Partition of the boot counter EXT filesystem"
39 default "0:1"
40 depends on BOOTCOUNT_EXT
41 help
42 Set the partition to use when locating the filesystem to use for the
43 boot counter.
44
45config SYS_BOOTCOUNT_EXT_NAME
46 string "Path and filename of the EXT filesystem based boot counter"
47 default "/boot/failures"
48 depends on BOOTCOUNT_EXT
49 help
50 Set the filename and path of the file used to store the boot counter.
51
52config SYS_BOOTCOUNT_ADDR
53 hex "RAM address used for reading and writing the boot counter"
54 default 0x7000A000
55 depends on BOOTCOUNT_EXT
56 help
57 Set the address used for reading and writing the boot counter.
58
59endif
60
61endif
62
63endmenu