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 | |
Lukasz Majewski | 6dd8c90 | 2018-02-09 23:50:57 +0100 | [diff] [blame] | 7 | config 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 Majewski | fe6a4b3 | 2018-02-09 23:53:29 +0100 | [diff] [blame] | 13 | config 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 Kiernan | 4aa943f | 2018-02-16 15:50:38 +0000 | [diff] [blame^] | 19 | if BOOTCOUNT_LIMIT |
Ian Ray | 542a48e | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 20 | |
| 21 | config 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 | |
| 27 | if BOOTCOUNT_EXT |
| 28 | |
| 29 | config 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 | |
| 37 | config 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 | |
| 45 | config 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 | |
| 52 | config 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 | |
| 59 | endif |
| 60 | |
| 61 | endif |
| 62 | |
| 63 | endmenu |