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