2 # Boot count configuration
5 menuconfig BOOTCOUNT_LIMIT
6 bool "Enable support for checking boot count limit"
8 Enable checking for exceeding the boot count limit.
9 More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
14 prompt "Boot count device"
15 default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
16 default BOOTCOUNT_AT91 if AT91SAM9XE
19 bool "Boot counter on EXT filesystem"
21 Add support for maintaining boot count in a file on an EXT
24 config BOOTCOUNT_AM33XX
25 bool "Boot counter in AM33XX RTC IP block"
26 depends on AM33XX || SOC_DA8XX
28 A bootcount driver for the RTC IP block found on many TI platforms.
29 This requires the RTC clocks, etc, to be enabled prior to use and
30 not all boards with this IP block on it will have the RTC in use.
33 bool "Boot counter in environment"
35 If no softreset save registers are found on the hardware
36 "bootcount" is stored in the environment. To prevent a
37 saveenv on all reboots, the environment variable
38 "upgrade_available" is used. If "upgrade_available" is
39 0, "bootcount" is always 0, if "upgrade_available" is
40 1 "bootcount" is incremented in the environment.
41 So the Userspace Application must set the "upgrade_available"
42 and "bootcount" variable to 0, if a boot was successfully.
45 bool "Boot counter in RAM"
47 Store the bootcount in DRAM protected against against bit errors
48 due to short power loss or holding a system in RESET.
51 bool "Boot counter on I2C device"
53 Enable support for the bootcounter on an i2c (like RTC) device.
54 CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
55 CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
57 CONFIG_BOOTCOUNT_ALEN = address len
60 bool "Boot counter for Atmel AT91SAM9XE"
65 config SYS_BOOTCOUNT_SINGLEWORD
66 bool "Use single word to pack boot count and magic value"
68 This option enables packing boot count magic value and boot count
69 into single word (32 bits).
71 config SYS_BOOTCOUNT_EXT_INTERFACE
72 string "Interface on which to find boot counter EXT filesystem"
74 depends on BOOTCOUNT_EXT
76 Set the interface to use when locating the filesystem to use for the
79 config SYS_BOOTCOUNT_EXT_DEVPART
80 string "Partition of the boot counter EXT filesystem"
82 depends on BOOTCOUNT_EXT
84 Set the partition to use when locating the filesystem to use for the
87 config SYS_BOOTCOUNT_EXT_NAME
88 string "Path and filename of the EXT filesystem based boot counter"
89 default "/boot/failures"
90 depends on BOOTCOUNT_EXT
92 Set the filename and path of the file used to store the boot counter.
94 config SYS_BOOTCOUNT_ADDR
95 hex "RAM address used for reading and writing the boot counter"
97 depends on BOOTCOUNT_EXT
99 Set the address used for reading and writing the boot counter.