Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 1 | menu "Environment" |
| 2 | |
Rasmus Villemoes | ecdf074 | 2019-12-15 22:29:39 +0000 | [diff] [blame] | 3 | config ENV_SUPPORT |
| 4 | def_bool y |
| 5 | |
Rasmus Villemoes | 2129475 | 2020-02-19 09:47:39 +0000 | [diff] [blame] | 6 | config SAVEENV |
| 7 | def_bool y if CMD_SAVEENV |
| 8 | |
Simon Glass | 87551f1 | 2017-08-03 12:21:59 -0600 | [diff] [blame] | 9 | config ENV_IS_NOWHERE |
| 10 | bool "Environment is not stored" |
Patrice Chotard | af75581 | 2019-05-07 11:24:02 +0200 | [diff] [blame] | 11 | default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \ |
| 12 | !ENV_IS_IN_FAT && !ENV_IS_IN_FLASH && \ |
| 13 | !ENV_IS_IN_MMC && !ENV_IS_IN_NAND && \ |
| 14 | !ENV_IS_IN_NVRAM && !ENV_IS_IN_ONENAND && \ |
| 15 | !ENV_IS_IN_REMOTE && !ENV_IS_IN_SPI_FLASH && \ |
| 16 | !ENV_IS_IN_UBI |
Simon Glass | 87551f1 | 2017-08-03 12:21:59 -0600 | [diff] [blame] | 17 | help |
| 18 | Define this if you don't want to or can't have an environment stored |
Shyam Saini | efe757c | 2018-06-07 19:47:19 +0530 | [diff] [blame] | 19 | on a storage medium. In this case the environment will still exist |
Simon Glass | 87551f1 | 2017-08-03 12:21:59 -0600 | [diff] [blame] | 20 | while U-Boot is running, but once U-Boot exits it will not be |
| 21 | stored. U-Boot will therefore always start up with a default |
| 22 | environment. |
| 23 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 24 | config ENV_IS_IN_EEPROM |
| 25 | bool "Environment in EEPROM" |
| 26 | depends on !CHAIN_OF_TRUST |
| 27 | help |
| 28 | Use this if you have an EEPROM or similar serial access |
| 29 | device and a driver for it. |
| 30 | |
| 31 | - CONFIG_ENV_OFFSET: |
| 32 | - CONFIG_ENV_SIZE: |
| 33 | |
| 34 | These two #defines specify the offset and size of the |
| 35 | environment area within the total memory of your EEPROM. |
| 36 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 37 | Note that we consider the length of the address field to |
| 38 | still be one byte because the extra address bits are hidden |
| 39 | in the chip address. |
| 40 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 41 | - CONFIG_ENV_EEPROM_IS_ON_I2C |
| 42 | define this, if you have I2C and SPI activated, and your |
| 43 | EEPROM, which holds the environment, is on the I2C bus. |
| 44 | |
| 45 | - CONFIG_I2C_ENV_EEPROM_BUS |
| 46 | if you have an Environment on an EEPROM reached over |
| 47 | I2C muxes, you can define here, how to reach this |
| 48 | EEPROM. For example: |
| 49 | |
| 50 | #define CONFIG_I2C_ENV_EEPROM_BUS 1 |
| 51 | |
| 52 | EEPROM which holds the environment, is reached over |
| 53 | a pca9547 i2c mux with address 0x70, channel 3. |
| 54 | |
| 55 | config ENV_IS_IN_FAT |
| 56 | bool "Environment is in a FAT filesystem" |
| 57 | depends on !CHAIN_OF_TRUST |
Maxime Ripard | 7569e18 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 58 | default y if ARCH_BCM283X |
Maxime Ripard | 8b7dcd3 | 2018-01-23 21:17:04 +0100 | [diff] [blame] | 59 | default y if ARCH_SUNXI && MMC |
Maxime Ripard | 7569e18 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 60 | default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS |
Tuomas Tynkkynen | dc256cd | 2018-01-05 02:45:19 +0200 | [diff] [blame] | 61 | select FS_FAT |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 62 | select FAT_WRITE |
| 63 | help |
Simon Glass | ea8bf84 | 2017-08-03 12:21:50 -0600 | [diff] [blame] | 64 | Define this if you want to use the FAT file system for the environment. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 65 | |
Jorge Ramirez-Ortiz | 4a4c26d | 2018-01-10 11:33:48 +0100 | [diff] [blame] | 66 | config ENV_IS_IN_EXT4 |
| 67 | bool "Environment is in a EXT4 filesystem" |
| 68 | depends on !CHAIN_OF_TRUST |
| 69 | select EXT4_WRITE |
| 70 | help |
| 71 | Define this if you want to use the EXT4 file system for the environment. |
| 72 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 73 | config ENV_IS_IN_FLASH |
| 74 | bool "Environment in flash memory" |
| 75 | depends on !CHAIN_OF_TRUST |
Maxime Ripard | 7569e18 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 76 | default y if ARCH_CINTEGRATOR |
| 77 | default y if ARCH_INTEGRATOR_CP |
| 78 | default y if M548x || M547x || M5282 || MCF547x_8x |
| 79 | default y if MCF532x || MCF52x2 |
| 80 | default y if MPC86xx || MPC83xx |
| 81 | default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641 |
| 82 | default y if SH && !CPU_SH4 |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 83 | help |
| 84 | Define this if you have a flash device which you want to use for the |
| 85 | environment. |
| 86 | |
| 87 | a) The environment occupies one whole flash sector, which is |
| 88 | "embedded" in the text segment with the U-Boot code. This |
| 89 | happens usually with "bottom boot sector" or "top boot |
| 90 | sector" type flash chips, which have several smaller |
| 91 | sectors at the start or the end. For instance, such a |
| 92 | layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In |
| 93 | such a case you would place the environment in one of the |
| 94 | 4 kB sectors - with U-Boot code before and after it. With |
| 95 | "top boot sector" type flash chips, you would put the |
| 96 | environment in one of the last sectors, leaving a gap |
| 97 | between U-Boot and the environment. |
| 98 | |
| 99 | CONFIG_ENV_OFFSET: |
| 100 | |
| 101 | Offset of environment data (variable area) to the |
| 102 | beginning of flash memory; for instance, with bottom boot |
| 103 | type flash chips the second sector can be used: the offset |
| 104 | for this sector is given here. |
| 105 | |
| 106 | CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE. |
| 107 | |
| 108 | CONFIG_ENV_ADDR: |
| 109 | |
| 110 | This is just another way to specify the start address of |
| 111 | the flash sector containing the environment (instead of |
| 112 | CONFIG_ENV_OFFSET). |
| 113 | |
| 114 | CONFIG_ENV_SECT_SIZE: |
| 115 | |
| 116 | Size of the sector containing the environment. |
| 117 | |
| 118 | |
| 119 | b) Sometimes flash chips have few, equal sized, BIG sectors. |
| 120 | In such a case you don't want to spend a whole sector for |
| 121 | the environment. |
| 122 | |
| 123 | CONFIG_ENV_SIZE: |
| 124 | |
| 125 | If you use this in combination with CONFIG_ENV_IS_IN_FLASH |
| 126 | and CONFIG_ENV_SECT_SIZE, you can specify to use only a part |
| 127 | of this flash sector for the environment. This saves |
| 128 | memory for the RAM copy of the environment. |
| 129 | |
| 130 | It may also save flash memory if you decide to use this |
| 131 | when your environment is "embedded" within U-Boot code, |
| 132 | since then the remainder of the flash sector could be used |
| 133 | for U-Boot code. It should be pointed out that this is |
| 134 | STRONGLY DISCOURAGED from a robustness point of view: |
| 135 | updating the environment in flash makes it always |
| 136 | necessary to erase the WHOLE sector. If something goes |
| 137 | wrong before the contents has been restored from a copy in |
| 138 | RAM, your target system will be dead. |
| 139 | |
| 140 | CONFIG_ENV_ADDR_REDUND |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 141 | |
| 142 | These settings describe a second storage area used to hold |
| 143 | a redundant copy of the environment data, so that there is |
| 144 | a valid backup copy in case there is a power failure during |
| 145 | a "saveenv" operation. |
| 146 | |
| 147 | BE CAREFUL! Any changes to the flash layout, and some changes to the |
| 148 | source code will make it necessary to adapt <board>/u-boot.lds* |
| 149 | accordingly! |
| 150 | |
| 151 | config ENV_IS_IN_MMC |
| 152 | bool "Environment in an MMC device" |
| 153 | depends on !CHAIN_OF_TRUST |
Maxime Ripard | 662a1ec | 2018-01-23 21:17:00 +0100 | [diff] [blame] | 154 | depends on MMC |
Maxime Ripard | 7569e18 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 155 | default y if ARCH_EXYNOS4 |
| 156 | default y if MX6SX || MX7D |
| 157 | default y if TEGRA30 || TEGRA124 |
| 158 | default y if TEGRA_ARMV8_COMMON |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 159 | help |
| 160 | Define this if you have an MMC device which you want to use for the |
| 161 | environment. |
| 162 | |
| 163 | CONFIG_SYS_MMC_ENV_DEV: |
| 164 | |
| 165 | Specifies which MMC device the environment is stored in. |
| 166 | |
| 167 | CONFIG_SYS_MMC_ENV_PART (optional): |
| 168 | |
| 169 | Specifies which MMC partition the environment is stored in. If not |
| 170 | set, defaults to partition 0, the user area. Common values might be |
| 171 | 1 (first MMC boot partition), 2 (second MMC boot partition). |
| 172 | |
| 173 | CONFIG_ENV_OFFSET: |
| 174 | CONFIG_ENV_SIZE: |
| 175 | |
| 176 | These two #defines specify the offset and size of the environment |
| 177 | area within the specified MMC device. |
| 178 | |
| 179 | If offset is positive (the usual case), it is treated as relative to |
| 180 | the start of the MMC partition. If offset is negative, it is treated |
| 181 | as relative to the end of the MMC partition. This can be useful if |
| 182 | your board may be fitted with different MMC devices, which have |
| 183 | different sizes for the MMC partitions, and you always want the |
| 184 | environment placed at the very end of the partition, to leave the |
| 185 | maximum possible space before it, to store other data. |
| 186 | |
| 187 | These two values are in units of bytes, but must be aligned to an |
| 188 | MMC sector boundary. |
| 189 | |
| 190 | CONFIG_ENV_OFFSET_REDUND (optional): |
| 191 | |
| 192 | Specifies a second storage area, of CONFIG_ENV_SIZE size, used to |
| 193 | hold a redundant copy of the environment data. This provides a |
| 194 | valid backup copy in case the other copy is corrupted, e.g. due |
| 195 | to a power failure during a "saveenv" operation. |
| 196 | |
| 197 | This value may also be positive or negative; this is handled in the |
| 198 | same way as CONFIG_ENV_OFFSET. |
| 199 | |
| 200 | This value is also in units of bytes, but must also be aligned to |
| 201 | an MMC sector boundary. |
| 202 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 203 | config ENV_IS_IN_NAND |
| 204 | bool "Environment in a NAND device" |
| 205 | depends on !CHAIN_OF_TRUST |
| 206 | help |
| 207 | Define this if you have a NAND device which you want to use for the |
| 208 | environment. |
| 209 | |
| 210 | - CONFIG_ENV_OFFSET: |
| 211 | - CONFIG_ENV_SIZE: |
| 212 | |
| 213 | These two #defines specify the offset and size of the environment |
| 214 | area within the first NAND device. CONFIG_ENV_OFFSET must be |
| 215 | aligned to an erase block boundary. |
| 216 | |
| 217 | - CONFIG_ENV_OFFSET_REDUND (optional): |
| 218 | |
| 219 | This setting describes a second storage area of CONFIG_ENV_SIZE |
| 220 | size used to hold a redundant copy of the environment data, so |
| 221 | that there is a valid backup copy in case there is a power failure |
| 222 | during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be |
| 223 | aligned to an erase block boundary. |
| 224 | |
| 225 | - CONFIG_ENV_RANGE (optional): |
| 226 | |
| 227 | Specifies the length of the region in which the environment |
| 228 | can be written. This should be a multiple of the NAND device's |
| 229 | block size. Specifying a range with more erase blocks than |
| 230 | are needed to hold CONFIG_ENV_SIZE allows bad blocks within |
| 231 | the range to be avoided. |
| 232 | |
| 233 | - CONFIG_ENV_OFFSET_OOB (optional): |
| 234 | |
| 235 | Enables support for dynamically retrieving the offset of the |
| 236 | environment from block zero's out-of-band data. The |
| 237 | "nand env.oob" command can be used to record this offset. |
| 238 | Currently, CONFIG_ENV_OFFSET_REDUND is not supported when |
| 239 | using CONFIG_ENV_OFFSET_OOB. |
| 240 | |
| 241 | config ENV_IS_IN_NVRAM |
| 242 | bool "Environment in a non-volatile RAM" |
| 243 | depends on !CHAIN_OF_TRUST |
| 244 | help |
| 245 | Define this if you have some non-volatile memory device |
| 246 | (NVRAM, battery buffered SRAM) which you want to use for the |
| 247 | environment. |
| 248 | |
| 249 | - CONFIG_ENV_ADDR: |
| 250 | - CONFIG_ENV_SIZE: |
| 251 | |
| 252 | These two #defines are used to determine the memory area you |
| 253 | want to use for environment. It is assumed that this memory |
| 254 | can just be read and written to, without any special |
| 255 | provision. |
| 256 | |
| 257 | config ENV_IS_IN_ONENAND |
| 258 | bool "Environment is in OneNAND" |
| 259 | depends on !CHAIN_OF_TRUST |
| 260 | help |
| 261 | Define this if you want to put your local device's environment in |
| 262 | OneNAND. |
| 263 | |
| 264 | - CONFIG_ENV_ADDR: |
| 265 | - CONFIG_ENV_SIZE: |
| 266 | |
| 267 | These two #defines are used to determine the device range you |
| 268 | want to use for environment. It is assumed that this memory |
| 269 | can just be read and written to, without any special |
| 270 | provision. |
| 271 | |
| 272 | config ENV_IS_IN_REMOTE |
Heinrich Schuchardt | aefbfe1 | 2018-03-17 22:53:11 +0000 | [diff] [blame] | 273 | bool "Environment is in remote memory space" |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 274 | depends on !CHAIN_OF_TRUST |
| 275 | help |
| 276 | Define this if you have a remote memory space which you |
| 277 | want to use for the local device's environment. |
| 278 | |
| 279 | - CONFIG_ENV_ADDR: |
| 280 | - CONFIG_ENV_SIZE: |
| 281 | |
| 282 | These two #defines specify the address and size of the |
| 283 | environment area within the remote memory space. The |
| 284 | local device can get the environment from remote memory |
| 285 | space by SRIO or PCIE links. |
| 286 | |
| 287 | config ENV_IS_IN_SPI_FLASH |
| 288 | bool "Environment is in SPI flash" |
Tom Rini | e5289a7 | 2019-05-29 17:01:28 -0400 | [diff] [blame] | 289 | depends on !CHAIN_OF_TRUST && SPI |
Maxime Ripard | 7569e18 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 290 | default y if ARMADA_XP |
| 291 | default y if INTEL_BAYTRAIL |
| 292 | default y if INTEL_BRASWELL |
| 293 | default y if INTEL_BROADWELL |
| 294 | default y if NORTHBRIDGE_INTEL_IVYBRIDGE |
| 295 | default y if INTEL_QUARK |
| 296 | default y if INTEL_QUEENSBAY |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 297 | help |
| 298 | Define this if you have a SPI Flash memory device which you |
| 299 | want to use for the environment. |
| 300 | |
| 301 | - CONFIG_ENV_OFFSET: |
| 302 | - CONFIG_ENV_SIZE: |
| 303 | |
| 304 | These two #defines specify the offset and size of the |
| 305 | environment area within the SPI Flash. CONFIG_ENV_OFFSET must be |
| 306 | aligned to an erase sector boundary. |
| 307 | |
| 308 | - CONFIG_ENV_SECT_SIZE: |
| 309 | |
| 310 | Define the SPI flash's sector size. |
| 311 | |
| 312 | - CONFIG_ENV_OFFSET_REDUND (optional): |
| 313 | |
| 314 | This setting describes a second storage area of CONFIG_ENV_SIZE |
| 315 | size used to hold a redundant copy of the environment data, so |
| 316 | that there is a valid backup copy in case there is a power failure |
| 317 | during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be |
| 318 | aligned to an erase sector boundary. |
| 319 | |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 320 | config USE_ENV_SPI_BUS |
| 321 | bool "SPI flash bus for environment" |
| 322 | depends on ENV_IS_IN_SPI_FLASH |
| 323 | help |
| 324 | Force the SPI bus for environment. |
| 325 | If not defined, use CONFIG_SF_DEFAULT_BUS. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 326 | |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 327 | config ENV_SPI_BUS |
| 328 | int "Value of SPI flash bus for environment" |
| 329 | depends on USE_ENV_SPI_BUS |
| 330 | help |
| 331 | Value the SPI bus and chip select for environment. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 332 | |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 333 | config USE_ENV_SPI_CS |
| 334 | bool "SPI flash chip select for environment" |
| 335 | depends on ENV_IS_IN_SPI_FLASH |
| 336 | help |
| 337 | Force the SPI chip select for environment. |
| 338 | If not defined, use CONFIG_SF_DEFAULT_CS. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 339 | |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 340 | config ENV_SPI_CS |
| 341 | int "Value of SPI flash chip select for environment" |
| 342 | depends on USE_ENV_SPI_CS |
| 343 | help |
| 344 | Value of the SPI chip select for environment. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 345 | |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 346 | config USE_ENV_SPI_MAX_HZ |
Marek Vasut | dfe7462 | 2019-05-04 19:10:05 +0200 | [diff] [blame] | 347 | bool "SPI flash max frequency for environment" |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 348 | depends on ENV_IS_IN_SPI_FLASH |
| 349 | help |
| 350 | Force the SPI max work clock for environment. |
| 351 | If not defined, use CONFIG_SF_DEFAULT_SPEED. |
| 352 | |
| 353 | config ENV_SPI_MAX_HZ |
Marek Vasut | dfe7462 | 2019-05-04 19:10:05 +0200 | [diff] [blame] | 354 | int "Value of SPI flash max frequency for environment" |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 355 | depends on USE_ENV_SPI_MAX_HZ |
| 356 | help |
| 357 | Value of the SPI max work clock for environment. |
| 358 | |
| 359 | config USE_ENV_SPI_MODE |
| 360 | bool "SPI flash mode for environment" |
| 361 | depends on ENV_IS_IN_SPI_FLASH |
| 362 | help |
| 363 | Force the SPI work mode for environment. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 364 | |
Patrick Delaunay | f8e932e | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 365 | config ENV_SPI_MODE |
| 366 | hex "Value of SPI flash work mode for environment" |
| 367 | depends on USE_ENV_SPI_MODE |
| 368 | help |
| 369 | Value of the SPI work mode for environment. |
| 370 | See include/spi.h for value. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 371 | |
| 372 | config ENV_IS_IN_UBI |
| 373 | bool "Environment in a UBI volume" |
| 374 | depends on !CHAIN_OF_TRUST |
Miquel Raynal | 27271b6 | 2019-10-03 19:50:12 +0200 | [diff] [blame] | 375 | depends on MTD_UBI |
| 376 | depends on CMD_UBI |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 377 | help |
| 378 | Define this if you have an UBI volume that you want to use for the |
| 379 | environment. This has the benefit of wear-leveling the environment |
| 380 | accesses, which is important on NAND. |
| 381 | |
| 382 | - CONFIG_ENV_UBI_PART: |
| 383 | |
| 384 | Define this to a string that is the mtd partition containing the UBI. |
| 385 | |
| 386 | - CONFIG_ENV_UBI_VOLUME: |
| 387 | |
| 388 | Define this to the name of the volume that you want to store the |
| 389 | environment in. |
| 390 | |
| 391 | - CONFIG_ENV_UBI_VOLUME_REDUND: |
| 392 | |
| 393 | Define this to the name of another volume to store a second copy of |
| 394 | the environment in. This will enable redundant environments in UBI. |
| 395 | It is assumed that both volumes are in the same MTD partition. |
| 396 | |
Tom Rini | 4bb26a4 | 2019-11-10 11:28:03 -0500 | [diff] [blame] | 397 | config SYS_REDUNDAND_ENVIRONMENT |
| 398 | bool "Enable redundant environment support" |
| 399 | depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \ |
| 400 | ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI |
| 401 | help |
| 402 | Normally, the environemt is stored in a single location. By |
| 403 | selecting this option, you can then define where to hold a redundant |
| 404 | copy of the environment data, so that there is a valid backup copy in |
| 405 | case there is a power failure during a "saveenv" operation. |
| 406 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 407 | config ENV_FAT_INTERFACE |
| 408 | string "Name of the block device for the environment" |
| 409 | depends on ENV_IS_IN_FAT |
Michal Simek | 5227e1e | 2020-02-25 15:50:33 +0100 | [diff] [blame] | 410 | default "mmc" |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 411 | help |
| 412 | Define this to a string that is the name of the block device. |
| 413 | |
| 414 | config ENV_FAT_DEVICE_AND_PART |
| 415 | string "Device and partition for where to store the environemt in FAT" |
| 416 | depends on ENV_IS_IN_FAT |
| 417 | default "0:1" if TI_COMMON_CMD_OPTIONS |
| 418 | default "0:auto" if ARCH_ZYNQMP |
Maxime Ripard | 8b7dcd3 | 2018-01-23 21:17:04 +0100 | [diff] [blame] | 419 | default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1 |
| 420 | default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1 |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 421 | default "0" if ARCH_AT91 |
| 422 | help |
| 423 | Define this to a string to specify the partition of the device. It can |
| 424 | be as following: |
| 425 | |
| 426 | "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1) |
| 427 | - "D:P": device D partition P. Error occurs if device D has no |
| 428 | partition table. |
| 429 | - "D:0": device D. |
| 430 | - "D" or "D:": device D partition 1 if device D has partition |
| 431 | table, or the whole device D if has no partition |
| 432 | table. |
| 433 | - "D:auto": first partition in device D with bootable flag set. |
| 434 | If none, first valid partition in device D. If no |
| 435 | partition table then means device D. |
| 436 | |
David Woodhouse | 9336539 | 2020-06-19 23:07:17 +0100 | [diff] [blame^] | 437 | If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted, |
| 438 | leaving the string starting with a colon, and the boot device will |
| 439 | be used. |
| 440 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 441 | config ENV_FAT_FILE |
Shyam Saini | efe757c | 2018-06-07 19:47:19 +0530 | [diff] [blame] | 442 | string "Name of the FAT file to use for the environment" |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 443 | depends on ENV_IS_IN_FAT |
| 444 | default "uboot.env" |
| 445 | help |
| 446 | It's a string of the FAT file name. This file use to store the |
| 447 | environment. |
| 448 | |
Jorge Ramirez-Ortiz | 4a4c26d | 2018-01-10 11:33:48 +0100 | [diff] [blame] | 449 | config ENV_EXT4_INTERFACE |
| 450 | string "Name of the block device for the environment" |
| 451 | depends on ENV_IS_IN_EXT4 |
| 452 | help |
| 453 | Define this to a string that is the name of the block device. |
| 454 | |
| 455 | config ENV_EXT4_DEVICE_AND_PART |
| 456 | string "Device and partition for where to store the environemt in EXT4" |
| 457 | depends on ENV_IS_IN_EXT4 |
| 458 | help |
| 459 | Define this to a string to specify the partition of the device. It can |
| 460 | be as following: |
| 461 | |
| 462 | "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1) |
| 463 | - "D:P": device D partition P. Error occurs if device D has no |
| 464 | partition table. |
| 465 | - "D:0": device D. |
| 466 | - "D" or "D:": device D partition 1 if device D has partition |
| 467 | table, or the whole device D if has no partition |
| 468 | table. |
| 469 | - "D:auto": first partition in device D with bootable flag set. |
| 470 | If none, first valid partition in device D. If no |
| 471 | partition table then means device D. |
| 472 | |
| 473 | config ENV_EXT4_FILE |
Shyam Saini | efe757c | 2018-06-07 19:47:19 +0530 | [diff] [blame] | 474 | string "Name of the EXT4 file to use for the environment" |
Jorge Ramirez-Ortiz | 4a4c26d | 2018-01-10 11:33:48 +0100 | [diff] [blame] | 475 | depends on ENV_IS_IN_EXT4 |
| 476 | default "uboot.env" |
| 477 | help |
| 478 | It's a string of the EXT4 file name. This file use to store the |
| 479 | environment (explicit path to the file) |
| 480 | |
Tom Rini | 5cd7ece | 2019-11-18 20:02:10 -0500 | [diff] [blame] | 481 | config ENV_ADDR |
| 482 | hex "Environment address" |
| 483 | depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \ |
| 484 | ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH |
| 485 | default 0x0 if ENV_IS_IN_SPI_FLASH |
| 486 | help |
| 487 | Offset from the start of the device (or partition) |
| 488 | |
| 489 | config ENV_ADDR_REDUND |
| 490 | hex "Redundant environment address" |
| 491 | depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT |
| 492 | help |
| 493 | Offset from the start of the device (or partition) of the redundant |
| 494 | environment location. |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 495 | |
| 496 | config ENV_OFFSET |
Tom Rini | 5cd7ece | 2019-11-18 20:02:10 -0500 | [diff] [blame] | 497 | hex "Environment offset" |
| 498 | depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \ |
| 499 | ENV_IS_IN_SPI_FLASH |
Jagan Teki | c4ec226 | 2019-12-21 13:24:35 +0530 | [diff] [blame] | 500 | default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC |
Jagan Teki | 6839757 | 2019-12-21 13:24:36 +0530 | [diff] [blame] | 501 | default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 502 | default 0x88000 if ARCH_SUNXI |
Michal Simek | e93ef19 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 503 | default 0xE0000 if ARCH_ZYNQ |
| 504 | default 0x1E00000 if ARCH_ZYNQMP |
T Karthik Reddy | 7677030 | 2019-08-05 16:18:57 +0530 | [diff] [blame] | 505 | default 0x7F40000 if ARCH_VERSAL |
Alexey Brodkin | 07dfc09 | 2019-01-15 11:42:48 +0300 | [diff] [blame] | 506 | default 0 if ARC |
Markus Klotzbuecher | 7bd60e6 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 507 | default 0x140000 if ARCH_AT91 |
| 508 | default 0x260000 if ARCH_OMAP2PLUS |
Varalaxmi Bingi | 52e7921 | 2020-02-05 03:58:20 -0700 | [diff] [blame] | 509 | default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 510 | help |
| 511 | Offset from the start of the device (or partition) |
| 512 | |
Tom Rini | 5cd7ece | 2019-11-18 20:02:10 -0500 | [diff] [blame] | 513 | config ENV_OFFSET_REDUND |
| 514 | hex "Redundant environment offset" |
| 515 | depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \ |
| 516 | ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT |
| 517 | help |
| 518 | Offset from the start of the device (or partition) of the redundant |
| 519 | environment location. |
| 520 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 521 | config ENV_SIZE |
| 522 | hex "Environment Size" |
Michal Simek | e93ef19 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 523 | default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP |
Markus Klotzbuecher | 7bd60e6 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 524 | default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 |
Jagan Teki | c4ec226 | 2019-12-21 13:24:35 +0530 | [diff] [blame] | 525 | default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC |
Jagan Teki | 6839757 | 2019-12-21 13:24:36 +0530 | [diff] [blame] | 526 | default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH |
Jagan Teki | c4ec226 | 2019-12-21 13:24:35 +0530 | [diff] [blame] | 527 | default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL |
Alexey Brodkin | 07dfc09 | 2019-01-15 11:42:48 +0300 | [diff] [blame] | 528 | default 0x4000 if ARC |
Markus Klotzbuecher | 7bd60e6 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 529 | default 0x1f000 |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 530 | help |
| 531 | Size of the environment storage area |
| 532 | |
Michal Simek | e93ef19 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 533 | config ENV_SECT_SIZE |
| 534 | hex "Environment Sector-Size" |
Tom Rini | 5cd7ece | 2019-11-18 20:02:10 -0500 | [diff] [blame] | 535 | depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH |
Jagan Teki | 6839757 | 2019-12-21 13:24:36 +0530 | [diff] [blame] | 536 | default 0x2000 if ARCH_ROCKCHIP |
T Karthik Reddy | 7677030 | 2019-08-05 16:18:57 +0530 | [diff] [blame] | 537 | default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL |
Markus Klotzbuecher | 7bd60e6 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 538 | default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 |
Varalaxmi Bingi | 52e7921 | 2020-02-05 03:58:20 -0700 | [diff] [blame] | 539 | default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH |
Michal Simek | e93ef19 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 540 | help |
| 541 | Size of the sector containing the environment. |
| 542 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 543 | config ENV_UBI_PART |
| 544 | string "UBI partition name" |
| 545 | depends on ENV_IS_IN_UBI |
| 546 | help |
| 547 | MTD partition containing the UBI device |
| 548 | |
| 549 | config ENV_UBI_VOLUME |
| 550 | string "UBI volume name" |
| 551 | depends on ENV_IS_IN_UBI |
| 552 | help |
| 553 | Name of the volume that you want to store the environment in. |
| 554 | |
Markus Klotzbuecher | 975bcde | 2019-05-15 15:15:53 +0200 | [diff] [blame] | 555 | config ENV_UBI_VOLUME_REDUND |
| 556 | string "UBI redundant volume name" |
Tom Rini | 4bb26a4 | 2019-11-10 11:28:03 -0500 | [diff] [blame] | 557 | depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT |
Markus Klotzbuecher | 975bcde | 2019-05-15 15:15:53 +0200 | [diff] [blame] | 558 | help |
| 559 | Name of the redundant volume that you want to store the environment in. |
| 560 | |
Hamish Guthrie | 674ab24 | 2019-05-15 15:15:55 +0200 | [diff] [blame] | 561 | config ENV_UBI_VID_OFFSET |
| 562 | int "ubi environment VID offset" |
| 563 | depends on ENV_IS_IN_UBI |
| 564 | default 0 |
| 565 | help |
| 566 | UBI VID offset for environment. If 0, no custom VID offset is used. |
| 567 | |
Tom Rini | ca63e71 | 2019-11-12 22:46:36 -0500 | [diff] [blame] | 568 | config SYS_RELOC_GD_ENV_ADDR |
Patrick Delaunay | 9f75753 | 2020-06-10 19:28:42 +0200 | [diff] [blame] | 569 | bool "Relocate gd->env_addr" |
Tom Rini | ca63e71 | 2019-11-12 22:46:36 -0500 | [diff] [blame] | 570 | help |
| 571 | Relocate the early env_addr pointer so we know it is not inside |
| 572 | the binary. Some systems need this and for the rest, it doesn't hurt. |
| 573 | |
Rasmus Villemoes | 14c7114 | 2018-03-20 11:38:45 +0100 | [diff] [blame] | 574 | config USE_DEFAULT_ENV_FILE |
| 575 | bool "Create default environment from file" |
| 576 | help |
| 577 | Normally, the default environment is automatically generated |
| 578 | based on the settings of various CONFIG_* options, as well |
| 579 | as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option, |
| 580 | you can instead define the entire default environment in an |
| 581 | external file. |
| 582 | |
| 583 | config DEFAULT_ENV_FILE |
| 584 | string "Path to default environment file" |
| 585 | depends on USE_DEFAULT_ENV_FILE |
| 586 | help |
| 587 | The path containing the default environment. The format is |
| 588 | the same as accepted by the mkenvimage tool: lines |
| 589 | containing key=value pairs, blank lines and lines beginning |
| 590 | with # are ignored. |
| 591 | |
Alex Kiernan | a410d6e | 2018-04-01 16:37:53 +0000 | [diff] [blame] | 592 | config ENV_VARS_UBOOT_RUNTIME_CONFIG |
| 593 | bool "Add run-time information to the environment" |
| 594 | help |
| 595 | Enable this in order to add variables describing certain |
| 596 | run-time determined information about the hardware to the |
| 597 | environment. These will be named board_name, board_rev. |
| 598 | |
Ovidiu Panait | 86ccd75 | 2020-05-06 20:38:42 +0300 | [diff] [blame] | 599 | config DELAY_ENVIRONMENT |
| 600 | bool "Delay environment loading" |
| 601 | depends on !OF_CONTROL |
| 602 | help |
| 603 | Enable this to inhibit loading the environment during board |
| 604 | initialization. This can address the security risk of untrusted data |
| 605 | being used during boot. Normally the environment is loaded when the |
| 606 | board is initialised so that it is available to U-Boot. This inhibits |
| 607 | that so that the environment is not available until explicitly loaded |
| 608 | later by U-Boot code. With CONFIG_OF_CONTROL this is instead |
| 609 | controlled by the value of /config/load-environment. |
| 610 | |
Marek Vasut | b7f3f23 | 2020-05-22 01:10:14 +0200 | [diff] [blame] | 611 | config ENV_ACCESS_IGNORE_FORCE |
| 612 | bool "Block forced environment operations" |
| 613 | default n |
| 614 | help |
| 615 | If defined, don't allow the -f switch to env set override variable |
| 616 | access flags. |
| 617 | |
York Sun | 187da8d | 2018-06-26 10:03:22 -0700 | [diff] [blame] | 618 | if SPL_ENV_SUPPORT |
| 619 | config SPL_ENV_IS_NOWHERE |
| 620 | bool "SPL Environment is not stored" |
| 621 | default y if ENV_IS_NOWHERE |
| 622 | help |
| 623 | Similar to ENV_IS_NOWHERE, used for SPL environment. |
| 624 | |
| 625 | config SPL_ENV_IS_IN_MMC |
| 626 | bool "SPL Environment in an MMC device" |
| 627 | depends on !SPL_ENV_IS_NOWHERE |
| 628 | depends on ENV_IS_IN_MMC |
| 629 | default y |
| 630 | help |
| 631 | Similar to ENV_IS_IN_MMC, used for SPL environment. |
| 632 | |
| 633 | config SPL_ENV_IS_IN_FAT |
| 634 | bool "SPL Environment is in a FAT filesystem" |
| 635 | depends on !SPL_ENV_IS_NOWHERE |
| 636 | depends on ENV_IS_IN_FAT |
| 637 | default y |
| 638 | help |
| 639 | Similar to ENV_IS_IN_FAT, used for SPL environment. |
| 640 | |
| 641 | config SPL_ENV_IS_IN_EXT4 |
| 642 | bool "SPL Environment is in a EXT4 filesystem" |
| 643 | depends on !SPL_ENV_IS_NOWHERE |
| 644 | depends on ENV_IS_IN_EXT4 |
| 645 | default y |
| 646 | help |
| 647 | Similar to ENV_IS_IN_EXT4, used for SPL environment. |
| 648 | |
| 649 | config SPL_ENV_IS_IN_NAND |
| 650 | bool "SPL Environment in a NAND device" |
| 651 | depends on !SPL_ENV_IS_NOWHERE |
| 652 | depends on ENV_IS_IN_NAND |
| 653 | default y |
| 654 | help |
| 655 | Similar to ENV_IS_IN_NAND, used for SPL environment. |
| 656 | |
| 657 | config SPL_ENV_IS_IN_SPI_FLASH |
| 658 | bool "SPL Environment is in SPI flash" |
| 659 | depends on !SPL_ENV_IS_NOWHERE |
| 660 | depends on ENV_IS_IN_SPI_FLASH |
| 661 | default y |
| 662 | help |
| 663 | Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment. |
| 664 | |
| 665 | config SPL_ENV_IS_IN_FLASH |
| 666 | bool "SPL Environment in flash memory" |
| 667 | depends on !SPL_ENV_IS_NOWHERE |
| 668 | depends on ENV_IS_IN_FLASH |
| 669 | default y |
| 670 | help |
| 671 | Similar to ENV_IS_IN_FLASH, used for SPL environment. |
| 672 | |
| 673 | endif |
| 674 | |
| 675 | if TPL_ENV_SUPPORT |
| 676 | |
| 677 | config TPL_ENV_IS_NOWHERE |
| 678 | bool "TPL Environment is not stored" |
| 679 | default y if ENV_IS_NOWHERE |
| 680 | help |
| 681 | Similar to ENV_IS_NOWHERE, used for TPL environment. |
| 682 | |
| 683 | config TPL_ENV_IS_IN_MMC |
| 684 | bool "TPL Environment in an MMC device" |
| 685 | depends on !TPL_ENV_IS_NOWHERE |
| 686 | depends on ENV_IS_IN_MMC |
| 687 | default y |
| 688 | help |
| 689 | Similar to ENV_IS_IN_MMC, used for TPL environment. |
| 690 | |
| 691 | config TPL_ENV_IS_IN_FAT |
| 692 | bool "TPL Environment is in a FAT filesystem" |
| 693 | depends on !TPL_ENV_IS_NOWHERE |
| 694 | depends on ENV_IS_IN_FAT |
| 695 | default y |
| 696 | help |
| 697 | Similar to ENV_IS_IN_FAT, used for TPL environment. |
| 698 | |
| 699 | config TPL_ENV_IS_IN_EXT4 |
| 700 | bool "TPL Environment is in a EXT4 filesystem" |
| 701 | depends on !TPL_ENV_IS_NOWHERE |
| 702 | depends on ENV_IS_IN_EXT4 |
| 703 | default y |
| 704 | help |
| 705 | Similar to ENV_IS_IN_EXT4, used for TPL environment. |
| 706 | |
| 707 | config TPL_ENV_IS_IN_NAND |
| 708 | bool "TPL Environment in a NAND device" |
| 709 | depends on !TPL_ENV_IS_NOWHERE |
| 710 | depends on ENV_IS_IN_NAND |
| 711 | default y |
| 712 | help |
| 713 | Similar to ENV_IS_IN_NAND, used for TPL environment. |
| 714 | |
| 715 | config TPL_ENV_IS_IN_SPI_FLASH |
| 716 | bool "TPL Environment is in SPI flash" |
| 717 | depends on !TPL_ENV_IS_NOWHERE |
| 718 | depends on ENV_IS_IN_SPI_FLASH |
| 719 | default y |
| 720 | help |
| 721 | Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment. |
| 722 | |
| 723 | config TPL_ENV_IS_IN_FLASH |
| 724 | bool "TPL Environment in flash memory" |
| 725 | depends on !TPL_ENV_IS_NOWHERE |
| 726 | depends on ENV_IS_IN_FLASH |
| 727 | default y |
| 728 | help |
| 729 | Similar to ENV_IS_IN_FLASH, used for TPL environment. |
| 730 | |
| 731 | endif |
| 732 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 733 | endmenu |