Ian Ray | 542a48e | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 1 | # |
| 2 | # Boot count configuration |
| 3 | # |
| 4 | |
| 5 | menu "Boot count support" |
| 6 | |
| 7 | config BOOTCOUNT |
| 8 | bool "Enable Boot count support" |
| 9 | help |
| 10 | Enable boot count support, which provides the ability to store the |
| 11 | number of times the board has booted on a number of different |
| 12 | persistent storage mediums. |
| 13 | |
Lukasz Majewski | 6dd8c90 | 2018-02-09 23:50:57 +0100 | [diff] [blame] | 14 | config BOOTCOUNT_LIMIT |
| 15 | bool "Enable support for checking boot count limit" |
| 16 | help |
| 17 | Enable checking for exceeding the boot count limit. |
| 18 | More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit |
| 19 | |
Lukasz Majewski | fe6a4b3 | 2018-02-09 23:53:29 +0100 | [diff] [blame] | 20 | config SYS_BOOTCOUNT_SINGLEWORD |
| 21 | bool "Use single word to pack boot count and magic value" |
| 22 | help |
| 23 | This option enables packing boot count magic value and boot count |
| 24 | into single word (32 bits). |
| 25 | |
Ian Ray | 542a48e | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 26 | if BOOTCOUNT |
| 27 | |
| 28 | config BOOTCOUNT_EXT |
| 29 | bool "Boot counter on EXT filesystem" |
| 30 | help |
| 31 | Add support for maintaining boot count in a file on an EXT |
| 32 | filesystem. |
| 33 | |
| 34 | if BOOTCOUNT_EXT |
| 35 | |
| 36 | config SYS_BOOTCOUNT_EXT_INTERFACE |
| 37 | string "Interface on which to find boot counter EXT filesystem" |
| 38 | default "mmc" |
| 39 | depends on BOOTCOUNT_EXT |
| 40 | help |
| 41 | Set the interface to use when locating the filesystem to use for the |
| 42 | boot counter. |
| 43 | |
| 44 | config SYS_BOOTCOUNT_EXT_DEVPART |
| 45 | string "Partition of the boot counter EXT filesystem" |
| 46 | default "0:1" |
| 47 | depends on BOOTCOUNT_EXT |
| 48 | help |
| 49 | Set the partition to use when locating the filesystem to use for the |
| 50 | boot counter. |
| 51 | |
| 52 | config SYS_BOOTCOUNT_EXT_NAME |
| 53 | string "Path and filename of the EXT filesystem based boot counter" |
| 54 | default "/boot/failures" |
| 55 | depends on BOOTCOUNT_EXT |
| 56 | help |
| 57 | Set the filename and path of the file used to store the boot counter. |
| 58 | |
| 59 | config SYS_BOOTCOUNT_ADDR |
| 60 | hex "RAM address used for reading and writing the boot counter" |
| 61 | default 0x7000A000 |
| 62 | depends on BOOTCOUNT_EXT |
| 63 | help |
| 64 | Set the address used for reading and writing the boot counter. |
| 65 | |
| 66 | endif |
| 67 | |
| 68 | endif |
| 69 | |
| 70 | endmenu |