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