Commit d1ec9461f2a2b478b3682dfc3f0f72e3fdd104c1
Committed by
Tom Rini
1 parent
0c502b6c17
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
Convert CONFIG_BOOTCOUNT_LIMIT to Kconfig
This converts the following to Kconfig: CONFIG_BOOTCOUNT_LIMIT Signed-off-by: Lukasz Majewski <lukma@denx.de> Tested-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Acked-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Showing 80 changed files with 62 additions and 35 deletions Side-by-side Diff
- README
- configs/am335x_baltos_defconfig
- configs/am335x_boneblack_defconfig
- configs/am335x_boneblack_vboot_defconfig
- configs/am335x_evm_defconfig
- configs/am335x_evm_nor_defconfig
- configs/am335x_evm_spiboot_defconfig
- configs/am335x_evm_usbspl_defconfig
- configs/am335x_hs_evm_defconfig
- configs/am335x_hs_evm_uart_defconfig
- configs/am335x_sl50_defconfig
- configs/birdland_bav335a_defconfig
- configs/birdland_bav335b_defconfig
- configs/brppt1_mmc_defconfig
- configs/brppt1_nand_defconfig
- configs/brppt1_spi_defconfig
- configs/calimain_defconfig
- configs/chiliboard_defconfig
- configs/dh_imx6_defconfig
- configs/draco_defconfig
- configs/etamin_defconfig
- configs/ge_b450v3_defconfig
- configs/ge_b650v3_defconfig
- configs/ge_b850v3_defconfig
- configs/highbank_defconfig
- configs/ids8313_defconfig
- configs/km_kirkwood_128m16_defconfig
- configs/km_kirkwood_defconfig
- configs/km_kirkwood_pci_defconfig
- configs/kmcoge4_defconfig
- configs/kmcoge5ne_defconfig
- configs/kmcoge5un_defconfig
- configs/kmeter1_defconfig
- configs/kmlion1_defconfig
- configs/kmnusa_defconfig
- configs/kmopti2_defconfig
- configs/kmsugp1_defconfig
- configs/kmsupx5_defconfig
- configs/kmsuv31_defconfig
- configs/kmtegr1_defconfig
- configs/kmtepr2_defconfig
- configs/kmvect1_defconfig
- configs/mgcoge3un_defconfig
- configs/mx53ppd_defconfig
- configs/portl2_defconfig
- configs/pxm2_defconfig
- configs/rastaban_defconfig
- configs/rut_defconfig
- configs/socfpga_is1_defconfig
- configs/socfpga_sr1500_defconfig
- configs/suvd3_defconfig
- configs/theadorable_debug_defconfig
- configs/thuban_defconfig
- configs/tqma6s_wru4_mmc_defconfig
- configs/tuge1_defconfig
- configs/tuxx1_defconfig
- configs/x600_defconfig
- drivers/bootcount/Kconfig
- include/configs/am335x_evm.h
- include/configs/am335x_sl50.h
- include/configs/baltos.h
- include/configs/bav335x.h
- include/configs/brppt1.h
- include/configs/calimain.h
- include/configs/chiliboard.h
- include/configs/cm_t335.h
- include/configs/dh_imx6.h
- include/configs/ge_bx50v3.h
- include/configs/highbank.h
- include/configs/ids8313.h
- include/configs/km/keymile-common.h
- include/configs/km/km-powerpc.h
- include/configs/km/kmp204x-common.h
- include/configs/mx53ppd.h
- include/configs/siemens-am33x-common.h
- include/configs/socfpga_is1.h
- include/configs/socfpga_sr1500.h
- include/configs/theadorable.h
- include/configs/tqma6_wru4.h
- include/configs/x600.h
README
| ... | ... | @@ -714,11 +714,6 @@ |
| 714 | 714 | RAM and NFS. |
| 715 | 715 | |
| 716 | 716 | - Bootcount: |
| 717 | - CONFIG_BOOTCOUNT_LIMIT | |
| 718 | - Implements a mechanism for detecting a repeating reboot | |
| 719 | - cycle, see: | |
| 720 | - http://www.denx.de/wiki/view/DULG/UBootBootCountLimit | |
| 721 | - | |
| 722 | 717 | CONFIG_BOOTCOUNT_ENV |
| 723 | 718 | If no softreset save registers are found on the hardware |
| 724 | 719 | "bootcount" is stored in the environment. To prevent a |
| ... | ... | @@ -2323,11 +2318,6 @@ |
| 2323 | 2318 | but sometimes that is not allowed. |
| 2324 | 2319 | |
| 2325 | 2320 | - bootcount support: |
| 2326 | - CONFIG_BOOTCOUNT_LIMIT | |
| 2327 | - | |
| 2328 | - This enables the bootcounter support, see: | |
| 2329 | - http://www.denx.de/wiki/DULG/UBootBootCountLimit | |
| 2330 | - | |
| 2331 | 2321 | CONFIG_AT91SAM9XE |
| 2332 | 2322 | enable special bootcounter support on at91sam9xe based boards. |
| 2333 | 2323 | CONFIG_SOC_DA8XX |
configs/am335x_baltos_defconfig
| ... | ... | @@ -47,6 +47,7 @@ |
| 47 | 47 | CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),-(UBI)" |
| 48 | 48 | CONFIG_CMD_UBI=y |
| 49 | 49 | CONFIG_ISO_PARTITION=y |
| 50 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 50 | 51 | CONFIG_SYS_OMAP24_I2C_SPEED=1000 |
| 51 | 52 | CONFIG_MMC_OMAP_HS=y |
| 52 | 53 | CONFIG_NAND=y |
configs/am335x_boneblack_defconfig
configs/am335x_boneblack_vboot_defconfig
configs/am335x_evm_defconfig
configs/am335x_evm_nor_defconfig
| ... | ... | @@ -20,6 +20,7 @@ |
| 20 | 20 | CONFIG_CMD_MTDPARTS=y |
| 21 | 21 | CONFIG_MTDIDS_DEFAULT="nand0=nand.0" |
| 22 | 22 | CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)" |
| 23 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 23 | 24 | CONFIG_DFU_MMC=y |
| 24 | 25 | CONFIG_DFU_NAND=y |
| 25 | 26 | CONFIG_DFU_RAM=y |
configs/am335x_evm_spiboot_defconfig
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | CONFIG_MTDIDS_DEFAULT="nor0=m25p80-flash.0" |
| 22 | 22 | CONFIG_MTDPARTS_DEFAULT="mtdparts=m25p80-flash.0:128k(SPL),512k(u-boot),128k(u-boot-env1),128k(u-boot-env2),3464k(kernel),-(rootfs)" |
| 23 | 23 | CONFIG_ENV_IS_IN_SPI_FLASH=y |
| 24 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 24 | 25 | CONFIG_DFU_MMC=y |
| 25 | 26 | CONFIG_DFU_RAM=y |
| 26 | 27 | CONFIG_MMC_OMAP_HS=y |
configs/am335x_evm_usbspl_defconfig
| ... | ... | @@ -25,6 +25,7 @@ |
| 25 | 25 | CONFIG_CMD_MTDPARTS=y |
| 26 | 26 | CONFIG_MTDIDS_DEFAULT="nand0=nand.0" |
| 27 | 27 | CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)" |
| 28 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 28 | 29 | CONFIG_DFU_MMC=y |
| 29 | 30 | CONFIG_DFU_NAND=y |
| 30 | 31 | CONFIG_DFU_RAM=y |
configs/am335x_hs_evm_defconfig
configs/am335x_hs_evm_uart_defconfig
configs/am335x_sl50_defconfig
configs/birdland_bav335a_defconfig
configs/birdland_bav335b_defconfig
configs/brppt1_mmc_defconfig
configs/brppt1_nand_defconfig
| ... | ... | @@ -50,6 +50,7 @@ |
| 50 | 50 | CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:128k(MLO),128k(MLO.backup),128k(dtb),128k(u-boot-env),512k(u-boot),4m(kernel),128m(rootfs),-(user)" |
| 51 | 51 | CONFIG_ENV_IS_IN_NAND=y |
| 52 | 52 | CONFIG_NETCONSOLE=y |
| 53 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 53 | 54 | # CONFIG_MMC is not set |
| 54 | 55 | CONFIG_NAND=y |
| 55 | 56 | CONFIG_PHYLIB=y |
configs/brppt1_spi_defconfig
configs/calimain_defconfig
configs/chiliboard_defconfig
| ... | ... | @@ -37,6 +37,7 @@ |
| 37 | 37 | CONFIG_MTDIDS_DEFAULT="nand0=8000000.nand" |
| 38 | 38 | CONFIG_MTDPARTS_DEFAULT="mtdparts=8000000.nand:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)" |
| 39 | 39 | CONFIG_ENV_IS_IN_MMC=y |
| 40 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 40 | 41 | CONFIG_DM_GPIO=y |
| 41 | 42 | CONFIG_MMC_OMAP_HS=y |
| 42 | 43 | CONFIG_NAND=y |
configs/dh_imx6_defconfig
configs/draco_defconfig
configs/etamin_defconfig
configs/ge_b450v3_defconfig
configs/ge_b650v3_defconfig
configs/ge_b850v3_defconfig
configs/highbank_defconfig
configs/ids8313_defconfig
| ... | ... | @@ -29,6 +29,7 @@ |
| 29 | 29 | CONFIG_MTDIDS_DEFAULT="nor0=ff800000.flash,nand0=e1000000.flash" |
| 30 | 30 | CONFIG_MTDPARTS_DEFAULT="mtdparts=ff800000.flash:7m(dum),768k(BOOT-BIN),128k(BOOT-ENV),128k(BOOT-REDENV);e1000000.flash:-(ubi)" |
| 31 | 31 | CONFIG_CMD_UBI=y |
| 32 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 32 | 33 | # CONFIG_MMC is not set |
| 33 | 34 | CONFIG_MTD_NOR_FLASH=y |
| 34 | 35 | CONFIG_PHYLIB=y |
configs/km_kirkwood_128m16_defconfig
configs/km_kirkwood_defconfig
configs/km_kirkwood_pci_defconfig
configs/kmcoge4_defconfig
configs/kmcoge5ne_defconfig
| ... | ... | @@ -24,6 +24,7 @@ |
| 24 | 24 | CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);app:-(ubi1);" |
| 25 | 25 | CONFIG_CMD_UBI=y |
| 26 | 26 | # CONFIG_CMD_UBIFS is not set |
| 27 | +CONFIG_BOOTCOUNT_LIMIT=y | |
| 27 | 28 | # CONFIG_MMC is not set |
| 28 | 29 | CONFIG_MTD_NOR_FLASH=y |
| 29 | 30 | # CONFIG_PCI is not set |
configs/kmcoge5un_defconfig
configs/kmeter1_defconfig
configs/kmlion1_defconfig
configs/kmnusa_defconfig
configs/kmopti2_defconfig
configs/kmsugp1_defconfig
configs/kmsupx5_defconfig
configs/kmsuv31_defconfig
configs/kmtegr1_defconfig
configs/kmtepr2_defconfig
configs/kmvect1_defconfig
configs/mgcoge3un_defconfig
configs/mx53ppd_defconfig
configs/portl2_defconfig
configs/pxm2_defconfig
configs/rastaban_defconfig
configs/rut_defconfig
configs/socfpga_is1_defconfig
configs/socfpga_sr1500_defconfig
configs/suvd3_defconfig
configs/theadorable_debug_defconfig
configs/thuban_defconfig
configs/tqma6s_wru4_mmc_defconfig
configs/tuge1_defconfig
configs/tuxx1_defconfig
configs/x600_defconfig
drivers/bootcount/Kconfig
| ... | ... | @@ -11,6 +11,12 @@ |
| 11 | 11 | number of times the board has booted on a number of different |
| 12 | 12 | persistent storage mediums. |
| 13 | 13 | |
| 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 | + | |
| 14 | 20 | if BOOTCOUNT |
| 15 | 21 | |
| 16 | 22 | config BOOTCOUNT_EXT |
include/configs/am335x_evm.h
include/configs/am335x_sl50.h
include/configs/baltos.h
include/configs/bav335x.h
include/configs/brppt1.h
include/configs/calimain.h
| ... | ... | @@ -277,7 +277,6 @@ |
| 277 | 277 | /* initial stack pointer in internal SRAM */ |
| 278 | 278 | #define CONFIG_SYS_INIT_SP_ADDR (0x8001ff00) |
| 279 | 279 | |
| 280 | -#define CONFIG_BOOTCOUNT_LIMIT | |
| 281 | 280 | #define CONFIG_SYS_BOOTCOUNT_LE /* Use little-endian accessors */ |
| 282 | 281 | #define CONFIG_SYS_BOOTCOUNT_ADDR DAVINCI_RTC_BASE |
| 283 | 282 |
include/configs/chiliboard.h
include/configs/cm_t335.h
include/configs/dh_imx6.h
include/configs/ge_bx50v3.h
include/configs/highbank.h
| ... | ... | @@ -26,7 +26,6 @@ |
| 26 | 26 | #define CONFIG_PL01x_PORTS { (void *)(0xFFF36000) } |
| 27 | 27 | #define CONFIG_CONS_INDEX 0 |
| 28 | 28 | |
| 29 | -#define CONFIG_BOOTCOUNT_LIMIT | |
| 30 | 29 | #define CONFIG_SYS_BOOTCOUNT_SINGLEWORD |
| 31 | 30 | #define CONFIG_SYS_BOOTCOUNT_LE /* Use little-endian accessors */ |
| 32 | 31 | #define CONFIG_SYS_BOOTCOUNT_ADDR 0xfff3cf0c |
include/configs/ids8313.h
include/configs/km/keymile-common.h
include/configs/km/km-powerpc.h
include/configs/km/kmp204x-common.h
| ... | ... | @@ -189,7 +189,6 @@ |
| 189 | 189 | #define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_QRIO_OR_PRELIM /* QRIO Options */ |
| 190 | 190 | |
| 191 | 191 | /* bootcounter in QRIO */ |
| 192 | -#define CONFIG_BOOTCOUNT_LIMIT | |
| 193 | 192 | #define CONFIG_SYS_BOOTCOUNT_ADDR (CONFIG_SYS_QRIO_BASE + 0x20) |
| 194 | 193 | |
| 195 | 194 | #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ |
include/configs/mx53ppd.h
include/configs/siemens-am33x-common.h
include/configs/socfpga_is1.h
include/configs/socfpga_sr1500.h
include/configs/theadorable.h
include/configs/tqma6_wru4.h
include/configs/x600.h