Commit d1ec9461f2a2b478b3682dfc3f0f72e3fdd104c1

Authored by Lukasz Majewski
Committed by Tom Rini
1 parent 0c502b6c17

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

... ... @@ -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
... ... @@ -21,6 +21,7 @@
21 21 # CONFIG_CMD_FLASH is not set
22 22 # CONFIG_CMD_SETEXPR is not set
23 23 CONFIG_ENV_IS_IN_MMC=y
  24 +CONFIG_BOOTCOUNT_LIMIT=y
24 25 CONFIG_DFU_TFTP=y
25 26 CONFIG_DFU_MMC=y
26 27 CONFIG_DFU_RAM=y
configs/am335x_boneblack_vboot_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_OF_CONTROL=y
27 27 CONFIG_ENV_IS_IN_MMC=y
28 28 # CONFIG_BLK is not set
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 CONFIG_DFU_MMC=y
30 31 CONFIG_DFU_RAM=y
31 32 CONFIG_DM_I2C=y
configs/am335x_evm_defconfig
... ... @@ -27,6 +27,7 @@
27 27 CONFIG_OF_CONTROL=y
28 28 CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2"
29 29 # CONFIG_BLK is not set
  30 +CONFIG_BOOTCOUNT_LIMIT=y
30 31 CONFIG_DFU_MMC=y
31 32 CONFIG_DFU_NAND=y
32 33 CONFIG_DFU_RAM=y
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
... ... @@ -33,6 +33,7 @@
33 33 CONFIG_OF_CONTROL=y
34 34 CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2"
35 35 # CONFIG_BLK is not set
  36 +CONFIG_BOOTCOUNT_LIMIT=y
36 37 CONFIG_DFU_MMC=y
37 38 CONFIG_DFU_NAND=y
38 39 CONFIG_DFU_RAM=y
configs/am335x_hs_evm_uart_defconfig
... ... @@ -31,6 +31,7 @@
31 31 CONFIG_OF_CONTROL=y
32 32 CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2"
33 33 # CONFIG_BLK is not set
  34 +CONFIG_BOOTCOUNT_LIMIT=y
34 35 CONFIG_DFU_MMC=y
35 36 CONFIG_DFU_NAND=y
36 37 CONFIG_DFU_RAM=y
configs/am335x_sl50_defconfig
... ... @@ -38,6 +38,7 @@
38 38 # CONFIG_CMD_SETEXPR is not set
39 39 CONFIG_CMD_EXT4_WRITE=y
40 40 CONFIG_ENV_IS_IN_MMC=y
  41 +CONFIG_BOOTCOUNT_LIMIT=y
41 42 CONFIG_MMC_OMAP_HS=y
42 43 CONFIG_PHYLIB=y
43 44 CONFIG_SYS_NS16550=y
configs/birdland_bav335a_defconfig
... ... @@ -51,6 +51,7 @@
51 51 CONFIG_CMD_FAT=y
52 52 CONFIG_CMD_FS_GENERIC=y
53 53 CONFIG_ISO_PARTITION=y
  54 +CONFIG_BOOTCOUNT_LIMIT=y
54 55 CONFIG_DFU_MMC=y
55 56 CONFIG_DFU_RAM=y
56 57 CONFIG_MMC_OMAP_HS=y
configs/birdland_bav335b_defconfig
... ... @@ -51,6 +51,7 @@
51 51 CONFIG_CMD_FAT=y
52 52 CONFIG_CMD_FS_GENERIC=y
53 53 CONFIG_ISO_PARTITION=y
  54 +CONFIG_BOOTCOUNT_LIMIT=y
54 55 CONFIG_DFU_MMC=y
55 56 CONFIG_DFU_RAM=y
56 57 CONFIG_MMC_OMAP_HS=y
configs/brppt1_mmc_defconfig
... ... @@ -49,6 +49,7 @@
49 49 CONFIG_CMD_FS_GENERIC=y
50 50 CONFIG_ENV_IS_IN_MMC=y
51 51 CONFIG_NETCONSOLE=y
  52 +CONFIG_BOOTCOUNT_LIMIT=y
52 53 CONFIG_MMC_OMAP_HS=y
53 54 CONFIG_PHYLIB=y
54 55 CONFIG_SYS_NS16550=y
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
... ... @@ -55,6 +55,7 @@
55 55 CONFIG_CMD_MTDPARTS=y
56 56 CONFIG_ENV_IS_IN_SPI_FLASH=y
57 57 CONFIG_NETCONSOLE=y
  58 +CONFIG_BOOTCOUNT_LIMIT=y
58 59 CONFIG_MMC_OMAP_HS=y
59 60 CONFIG_SPI_FLASH=y
60 61 CONFIG_SPI_FLASH_STMICRO=y
configs/calimain_defconfig
... ... @@ -21,6 +21,7 @@
21 21 CONFIG_CMD_PING=y
22 22 CONFIG_CMD_DIAG=y
23 23 CONFIG_ENV_IS_IN_FLASH=y
  24 +CONFIG_BOOTCOUNT_LIMIT=y
24 25 # CONFIG_MMC is not set
25 26 CONFIG_MTD_NOR_FLASH=y
26 27 CONFIG_SYS_NS16550=y
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
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_CMD_FS_GENERIC=y
43 43 CONFIG_ENV_IS_IN_SPI_FLASH=y
44 44 CONFIG_DWC_AHSATA=y
  45 +CONFIG_BOOTCOUNT_LIMIT=y
45 46 CONFIG_SPI_FLASH=y
46 47 CONFIG_SPI_FLASH_SPANSION=y
47 48 CONFIG_PHYLIB=y
configs/draco_defconfig
... ... @@ -51,6 +51,7 @@
51 51 CONFIG_OF_CONTROL=y
52 52 CONFIG_OF_EMBED=y
53 53 CONFIG_ENV_IS_IN_NAND=y
  54 +CONFIG_BOOTCOUNT_LIMIT=y
54 55 CONFIG_DFU_NAND=y
55 56 CONFIG_MMC_OMAP_HS=y
56 57 CONFIG_NAND=y
configs/etamin_defconfig
... ... @@ -51,6 +51,7 @@
51 51 CONFIG_OF_CONTROL=y
52 52 CONFIG_OF_EMBED=y
53 53 CONFIG_ENV_IS_IN_NAND=y
  54 +CONFIG_BOOTCOUNT_LIMIT=y
54 55 CONFIG_DFU_NAND=y
55 56 CONFIG_MMC_OMAP_HS=y
56 57 CONFIG_NAND=y
configs/ge_b450v3_defconfig
... ... @@ -25,6 +25,7 @@
25 25 CONFIG_CMD_FS_GENERIC=y
26 26 CONFIG_DOS_PARTITION=y
27 27 CONFIG_ENV_IS_IN_SPI_FLASH=y
  28 +CONFIG_BOOTCOUNT_LIMIT=y
28 29 CONFIG_SPI_FLASH=y
29 30 CONFIG_SPI_FLASH_STMICRO=y
30 31 CONFIG_NETDEVICES=y
configs/ge_b650v3_defconfig
... ... @@ -25,6 +25,7 @@
25 25 CONFIG_CMD_FS_GENERIC=y
26 26 CONFIG_DOS_PARTITION=y
27 27 CONFIG_ENV_IS_IN_SPI_FLASH=y
  28 +CONFIG_BOOTCOUNT_LIMIT=y
28 29 CONFIG_SPI_FLASH=y
29 30 CONFIG_SPI_FLASH_STMICRO=y
30 31 CONFIG_NETDEVICES=y
configs/ge_b850v3_defconfig
... ... @@ -25,6 +25,7 @@
25 25 CONFIG_CMD_FS_GENERIC=y
26 26 CONFIG_DOS_PARTITION=y
27 27 CONFIG_ENV_IS_IN_SPI_FLASH=y
  28 +CONFIG_BOOTCOUNT_LIMIT=y
28 29 CONFIG_SPI_FLASH=y
29 30 CONFIG_SPI_FLASH_STMICRO=y
30 31 CONFIG_NETDEVICES=y
configs/highbank_defconfig
... ... @@ -25,6 +25,7 @@
25 25 # CONFIG_PARTITION_UUIDS is not set
26 26 CONFIG_ENV_IS_IN_NVRAM=y
27 27 CONFIG_SCSI_AHCI=y
  28 +CONFIG_BOOTCOUNT_LIMIT=y
28 29 # CONFIG_MMC is not set
29 30 CONFIG_SCSI=y
30 31 CONFIG_OF_LIBFDT=y
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
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_EEPROM=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/km_kirkwood_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_EEPROM=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/km_kirkwood_pci_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_EEPROM=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/kmcoge4_defconfig
... ... @@ -31,6 +31,7 @@
31 31 # CONFIG_CMD_UBIFS is not set
32 32 CONFIG_DOS_PARTITION=y
33 33 CONFIG_ENV_IS_IN_SPI_FLASH=y
  34 +CONFIG_BOOTCOUNT_LIMIT=y
34 35 # CONFIG_MMC is not set
35 36 CONFIG_SPI_FLASH=y
36 37 CONFIG_SPI_FLASH_SPANSION=y
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
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_SPI_FLASH=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/kmeter1_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/kmlion1_defconfig
... ... @@ -31,6 +31,7 @@
31 31 # CONFIG_CMD_UBIFS is not set
32 32 CONFIG_DOS_PARTITION=y
33 33 CONFIG_ENV_IS_IN_SPI_FLASH=y
  34 +CONFIG_BOOTCOUNT_LIMIT=y
34 35 # CONFIG_MMC is not set
35 36 CONFIG_SPI_FLASH=y
36 37 CONFIG_SPI_FLASH_SPANSION=y
configs/kmnusa_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_SPI_FLASH=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/kmopti2_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/kmsugp1_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_SPI_FLASH=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/kmsupx5_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/kmsuv31_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_SPI_FLASH=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/kmtegr1_defconfig
... ... @@ -25,6 +25,7 @@
25 25 CONFIG_CMD_DIAG=y
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
  28 +CONFIG_BOOTCOUNT_LIMIT=y
28 29 # CONFIG_MMC is not set
29 30 CONFIG_MTD_NOR_FLASH=y
30 31 # CONFIG_PCI is not set
configs/kmtepr2_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/kmvect1_defconfig
... ... @@ -24,6 +24,7 @@
24 24 CONFIG_CMD_DIAG=y
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/mgcoge3un_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_EEPROM=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/mx53ppd_defconfig
... ... @@ -22,6 +22,7 @@
22 22 CONFIG_CMD_FAT=y
23 23 CONFIG_CMD_FS_GENERIC=y
24 24 CONFIG_BOOTCOUNT=y
  25 +CONFIG_BOOTCOUNT_LIMIT=y
25 26 CONFIG_BOOTCOUNT_EXT=y
26 27 CONFIG_SYS_BOOTCOUNT_EXT_DEVPART="0:5"
27 28 CONFIG_NETDEVICES=y
configs/portl2_defconfig
... ... @@ -26,6 +26,7 @@
26 26 CONFIG_CMD_UBI=y
27 27 # CONFIG_CMD_UBIFS is not set
28 28 CONFIG_ENV_IS_IN_EEPROM=y
  29 +CONFIG_BOOTCOUNT_LIMIT=y
29 30 # CONFIG_MMC is not set
30 31 CONFIG_SPI_FLASH=y
31 32 CONFIG_SPI_FLASH_STMICRO=y
configs/pxm2_defconfig
... ... @@ -54,6 +54,7 @@
54 54 CONFIG_OF_CONTROL=y
55 55 CONFIG_OF_EMBED=y
56 56 CONFIG_ENV_IS_IN_NAND=y
  57 +CONFIG_BOOTCOUNT_LIMIT=y
57 58 CONFIG_DFU_NAND=y
58 59 CONFIG_MMC_OMAP_HS=y
59 60 CONFIG_NAND=y
configs/rastaban_defconfig
... ... @@ -51,6 +51,7 @@
51 51 CONFIG_OF_CONTROL=y
52 52 CONFIG_OF_EMBED=y
53 53 CONFIG_ENV_IS_IN_NAND=y
  54 +CONFIG_BOOTCOUNT_LIMIT=y
54 55 CONFIG_DFU_NAND=y
55 56 CONFIG_MMC_OMAP_HS=y
56 57 CONFIG_NAND=y
configs/rut_defconfig
... ... @@ -55,6 +55,7 @@
55 55 CONFIG_OF_CONTROL=y
56 56 CONFIG_OF_EMBED=y
57 57 CONFIG_ENV_IS_IN_NAND=y
  58 +CONFIG_BOOTCOUNT_LIMIT=y
58 59 CONFIG_DFU_NAND=y
59 60 CONFIG_MMC_OMAP_HS=y
60 61 CONFIG_NAND=y
configs/socfpga_is1_defconfig
... ... @@ -41,6 +41,7 @@
41 41 CONFIG_ENV_IS_IN_SPI_FLASH=y
42 42 CONFIG_SPL_DM=y
43 43 CONFIG_SPL_DM_SEQ_ALIAS=y
  44 +CONFIG_BOOTCOUNT_LIMIT=y
44 45 CONFIG_FPGA_SOCFPGA=y
45 46 CONFIG_DM_GPIO=y
46 47 CONFIG_DWAPB_GPIO=y
configs/socfpga_sr1500_defconfig
... ... @@ -45,6 +45,7 @@
45 45 CONFIG_ENV_IS_IN_SPI_FLASH=y
46 46 CONFIG_SPL_DM=y
47 47 CONFIG_SPL_DM_SEQ_ALIAS=y
  48 +CONFIG_BOOTCOUNT_LIMIT=y
48 49 CONFIG_FPGA_SOCFPGA=y
49 50 CONFIG_DM_GPIO=y
50 51 CONFIG_DWAPB_GPIO=y
configs/suvd3_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/theadorable_debug_defconfig
... ... @@ -44,6 +44,7 @@
44 44 CONFIG_NET_RANDOM_ETHADDR=y
45 45 CONFIG_SPL_OF_TRANSLATE=y
46 46 CONFIG_SATA_MV=y
  47 +CONFIG_BOOTCOUNT_LIMIT=y
47 48 CONFIG_FPGA_ALTERA=y
48 49 CONFIG_DM_GPIO=y
49 50 # CONFIG_MMC is not set
configs/thuban_defconfig
... ... @@ -51,6 +51,7 @@
51 51 CONFIG_OF_CONTROL=y
52 52 CONFIG_OF_EMBED=y
53 53 CONFIG_ENV_IS_IN_NAND=y
  54 +CONFIG_BOOTCOUNT_LIMIT=y
54 55 CONFIG_DFU_NAND=y
55 56 CONFIG_MMC_OMAP_HS=y
56 57 CONFIG_NAND=y
configs/tqma6s_wru4_mmc_defconfig
... ... @@ -32,6 +32,7 @@
32 32 CONFIG_CMD_FAT=y
33 33 CONFIG_CMD_FS_GENERIC=y
34 34 CONFIG_ENV_IS_IN_MMC=y
  35 +CONFIG_BOOTCOUNT_LIMIT=y
35 36 CONFIG_LED_STATUS=y
36 37 CONFIG_LED_STATUS0=y
37 38 CONFIG_LED_STATUS_BIT=0
configs/tuge1_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/tuxx1_defconfig
... ... @@ -23,6 +23,7 @@
23 23 CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
24 24 CONFIG_CMD_UBI=y
25 25 # CONFIG_CMD_UBIFS is not set
  26 +CONFIG_BOOTCOUNT_LIMIT=y
26 27 # CONFIG_MMC is not set
27 28 CONFIG_MTD_NOR_FLASH=y
28 29 # CONFIG_PCI is not set
configs/x600_defconfig
... ... @@ -37,6 +37,7 @@
37 37 CONFIG_MTDPARTS_DEFAULT="mtdparts=nand:64M(ubi0),64M(ubi1)"
38 38 CONFIG_CMD_UBI=y
39 39 CONFIG_ENV_IS_IN_FLASH=y
  40 +CONFIG_BOOTCOUNT_LIMIT=y
40 41 CONFIG_FPGA_XILINX=y
41 42 CONFIG_SYS_I2C_DW=y
42 43 # CONFIG_MMC is not set
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
... ... @@ -180,7 +180,6 @@
180 180 /* SPL */
181 181 #ifndef CONFIG_NOR_BOOT
182 182 /* Bootcount using the RTC block */
183   -#define CONFIG_BOOTCOUNT_LIMIT
184 183 #define CONFIG_BOOTCOUNT_AM33XX
185 184 #define CONFIG_SYS_BOOTCOUNT_BE
186 185  
include/configs/am335x_sl50.h
... ... @@ -74,7 +74,6 @@
74 74 /* SPL */
75 75  
76 76 /* Bootcount using the RTC block */
77   -#define CONFIG_BOOTCOUNT_LIMIT
78 77 #define CONFIG_BOOTCOUNT_AM33XX
79 78 #define CONFIG_SYS_BOOTCOUNT_BE
80 79  
include/configs/baltos.h
... ... @@ -231,7 +231,6 @@
231 231 /* SPL */
232 232 #ifndef CONFIG_NOR_BOOT
233 233 /* Bootcount using the RTC block */
234   -#define CONFIG_BOOTCOUNT_LIMIT
235 234 #define CONFIG_BOOTCOUNT_AM33XX
236 235  
237 236 /* USB gadget RNDIS */
include/configs/bav335x.h
... ... @@ -339,7 +339,6 @@
339 339 /* SPL */
340 340 #ifndef CONFIG_NOR_BOOT
341 341 /* Bootcount using the RTC block */
342   -#define CONFIG_BOOTCOUNT_LIMIT
343 342 #define CONFIG_BOOTCOUNT_AM33XX
344 343 #define CONFIG_SYS_BOOTCOUNT_BE
345 344  
include/configs/brppt1.h
... ... @@ -22,7 +22,6 @@
22 22  
23 23 /* Bootcount using the RTC block */
24 24 #define CONFIG_SYS_BOOTCOUNT_ADDR 0x44E3E000
25   -#define CONFIG_BOOTCOUNT_LIMIT
26 25 #define CONFIG_BOOTCOUNT_AM33XX
27 26  
28 27 /* memory */
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
... ... @@ -123,7 +123,6 @@
123 123  
124 124 /* SPL */
125 125 /* Bootcount using the RTC block */
126   -#define CONFIG_BOOTCOUNT_LIMIT
127 126 #define CONFIG_BOOTCOUNT_AM33XX
128 127 #define CONFIG_SYS_BOOTCOUNT_BE
129 128  
include/configs/cm_t335.h
... ... @@ -16,7 +16,6 @@
16 16 #include <configs/ti_am335x_common.h>
17 17  
18 18 #undef CONFIG_SPI
19   -#undef CONFIG_BOOTCOUNT_LIMIT
20 19 #undef CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC
21 20  
22 21 #undef CONFIG_MAX_RAM_BANK_SIZE
include/configs/dh_imx6.h
... ... @@ -47,7 +47,6 @@
47 47 #define CONFIG_SYS_MALLOC_LEN (4 * SZ_1M)
48 48  
49 49 /* Bootcounter */
50   -#define CONFIG_BOOTCOUNT_LIMIT
51 50 #define CONFIG_SYS_BOOTCOUNT_ADDR IRAM_BASE_ADDR
52 51 #define CONFIG_SYS_BOOTCOUNT_BE
53 52  
include/configs/ge_bx50v3.h
... ... @@ -267,7 +267,6 @@
267 267  
268 268 #define CONFIG_BCH
269 269  
270   -#define CONFIG_BOOTCOUNT_LIMIT
271 270 #define CONFIG_BOOTCOUNT_EXT
272 271 #define CONFIG_SYS_BOOTCOUNT_EXT_INTERFACE "mmc"
273 272 #define CONFIG_SYS_BOOTCOUNT_EXT_DEVPART "1:5"
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
... ... @@ -515,7 +515,6 @@
515 515 #define CONFIG_MTD_PARTITIONS
516 516  
517 517 /* bootcount support */
518   -#define CONFIG_BOOTCOUNT_LIMIT
519 518 #define CONFIG_BOOTCOUNT_I2C
520 519 #define CONFIG_BOOTCOUNT_ALEN 1
521 520 #define CONFIG_SYS_BOOTCOUNT_ADDR 0x9
include/configs/km/keymile-common.h
... ... @@ -8,8 +8,6 @@
8 8 #ifndef __CONFIG_KEYMILE_H
9 9 #define __CONFIG_KEYMILE_H
10 10  
11   -#define CONFIG_BOOTCOUNT_LIMIT
12   -
13 11 #undef CONFIG_WATCHDOG /* disable platform specific watchdog */
14 12  
15 13 /*
include/configs/km/km-powerpc.h
... ... @@ -12,8 +12,6 @@
12 12 #define CONFIG_BOARD_EARLY_INIT_R
13 13 #define CONFIG_LAST_STAGE_INIT
14 14  
15   -#define CONFIG_BOOTCOUNT_LIMIT
16   -
17 15 #define CONFIG_JFFS2_CMDLINE
18 16  
19 17 /* standard km ethernet_present for piggy */
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
... ... @@ -232,8 +232,6 @@
232 232  
233 233 #define CONFIG_BCH
234 234  
235   -#define CONFIG_BOOTCOUNT_LIMIT
236   -
237 235 /* Backlight Control */
238 236 #define CONFIG_PWM_IMX
239 237 #define CONFIG_IMX6_PWM_PER_CLK 66666000
include/configs/siemens-am33x-common.h
... ... @@ -498,7 +498,6 @@
498 498 #define CONFIG_RESET_TO_RETRY
499 499 #define CONFIG_BOOT_RETRY_TIME 60
500 500  
501   -#define CONFIG_BOOTCOUNT_LIMIT
502 501 #define CONFIG_BOOTCOUNT_ENV
503 502  
504 503 #endif /* ! __CONFIG_SIEMENS_AM33X_COMMON_H */
include/configs/socfpga_is1.h
... ... @@ -32,7 +32,6 @@
32 32 /*
33 33 * Bootcounter
34 34 */
35   -#define CONFIG_BOOTCOUNT_LIMIT
36 35 /* last 2 lwords in OCRAM */
37 36 #define CONFIG_SYS_BOOTCOUNT_ADDR 0xfffffff8
38 37 #define CONFIG_SYS_BOOTCOUNT_BE
include/configs/socfpga_sr1500.h
... ... @@ -31,7 +31,6 @@
31 31 /*
32 32 * Bootcounter
33 33 */
34   -#define CONFIG_BOOTCOUNT_LIMIT
35 34 /* last 2 lwords in OCRAM */
36 35 #define CONFIG_SYS_BOOTCOUNT_ADDR 0xfffffff8
37 36 #define CONFIG_SYS_BOOTCOUNT_BE
include/configs/theadorable.h
... ... @@ -82,7 +82,6 @@
82 82 /*
83 83 * Bootcounter
84 84 */
85   -#define CONFIG_BOOTCOUNT_LIMIT
86 85 #define CONFIG_BOOTCOUNT_RAM
87 86 /* Max size of RAM minus BOOTCOUNT_ADDR is the bootcounter address */
88 87 #define BOOTCOUNT_ADDR 0x1000
include/configs/tqma6_wru4.h
... ... @@ -34,7 +34,6 @@
34 34 /* LED */
35 35  
36 36 /* Bootcounter */
37   -#define CONFIG_BOOTCOUNT_LIMIT
38 37 #define CONFIG_SYS_BOOTCOUNT_ADDR IRAM_BASE_ADDR
39 38 #define CONFIG_SYS_BOOTCOUNT_BE
40 39  
include/configs/x600.h
... ... @@ -120,7 +120,6 @@
120 120 #define CONFIG_SYS_LOAD_ADDR 0x00800000
121 121  
122 122 /* Use last 2 lwords in internal SRAM for bootcounter */
123   -#define CONFIG_BOOTCOUNT_LIMIT
124 123 #define CONFIG_SYS_BOOTCOUNT_ADDR (CONFIG_SRAM_BASE + \
125 124 CONFIG_SRAM_SIZE)
126 125