Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 1 | menu "Environment" |
| 2 | |
Simon Glass | c1c3fe2 | 2017-08-03 12:21:59 -0600 | [diff] [blame] | 3 | config ENV_IS_NOWHERE |
| 4 | bool "Environment is not stored" |
Patrice Chotard | 208bd2b | 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 | c1c3fe2 | 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 | 919d25c | 2018-06-07 19:47:19 +0530 | [diff] [blame] | 13 | on a storage medium. In this case the environment will still exist |
Simon Glass | c1c3fe2 | 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 | 0649cd0 | 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 | 0649cd0 | 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 | 0649cd0 | 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 | fb69464 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 52 | default y if ARCH_BCM283X |
Maxime Ripard | 0163c91 | 2018-01-23 21:17:04 +0100 | [diff] [blame] | 53 | default y if ARCH_SUNXI && MMC |
Maxime Ripard | fb69464 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 54 | default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS |
Tuomas Tynkkynen | 3cd084d | 2018-01-05 02:45:19 +0200 | [diff] [blame] | 55 | select FS_FAT |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 56 | select FAT_WRITE |
| 57 | help |
Simon Glass | 91d3aa0 | 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 | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 59 | |
Jorge Ramirez-Ortiz | 1087a79 | 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 | 0649cd0 | 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 | fb69464 | 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 | 0649cd0 | 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 |
| 135 | CONFIG_ENV_SIZE_REDUND |
| 136 | |
| 137 | These settings describe a second storage area used to hold |
| 138 | a redundant copy of the environment data, so that there is |
| 139 | a valid backup copy in case there is a power failure during |
| 140 | a "saveenv" operation. |
| 141 | |
| 142 | BE CAREFUL! Any changes to the flash layout, and some changes to the |
| 143 | source code will make it necessary to adapt <board>/u-boot.lds* |
| 144 | accordingly! |
| 145 | |
| 146 | config ENV_IS_IN_MMC |
| 147 | bool "Environment in an MMC device" |
| 148 | depends on !CHAIN_OF_TRUST |
Maxime Ripard | d282a1d | 2018-01-23 21:17:00 +0100 | [diff] [blame] | 149 | depends on MMC |
Maxime Ripard | fb69464 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 150 | default y if ARCH_EXYNOS4 |
| 151 | default y if MX6SX || MX7D |
| 152 | default y if TEGRA30 || TEGRA124 |
| 153 | default y if TEGRA_ARMV8_COMMON |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 154 | help |
| 155 | Define this if you have an MMC device which you want to use for the |
| 156 | environment. |
| 157 | |
| 158 | CONFIG_SYS_MMC_ENV_DEV: |
| 159 | |
| 160 | Specifies which MMC device the environment is stored in. |
| 161 | |
| 162 | CONFIG_SYS_MMC_ENV_PART (optional): |
| 163 | |
| 164 | Specifies which MMC partition the environment is stored in. If not |
| 165 | set, defaults to partition 0, the user area. Common values might be |
| 166 | 1 (first MMC boot partition), 2 (second MMC boot partition). |
| 167 | |
| 168 | CONFIG_ENV_OFFSET: |
| 169 | CONFIG_ENV_SIZE: |
| 170 | |
| 171 | These two #defines specify the offset and size of the environment |
| 172 | area within the specified MMC device. |
| 173 | |
| 174 | If offset is positive (the usual case), it is treated as relative to |
| 175 | the start of the MMC partition. If offset is negative, it is treated |
| 176 | as relative to the end of the MMC partition. This can be useful if |
| 177 | your board may be fitted with different MMC devices, which have |
| 178 | different sizes for the MMC partitions, and you always want the |
| 179 | environment placed at the very end of the partition, to leave the |
| 180 | maximum possible space before it, to store other data. |
| 181 | |
| 182 | These two values are in units of bytes, but must be aligned to an |
| 183 | MMC sector boundary. |
| 184 | |
| 185 | CONFIG_ENV_OFFSET_REDUND (optional): |
| 186 | |
| 187 | Specifies a second storage area, of CONFIG_ENV_SIZE size, used to |
| 188 | hold a redundant copy of the environment data. This provides a |
| 189 | valid backup copy in case the other copy is corrupted, e.g. due |
| 190 | to a power failure during a "saveenv" operation. |
| 191 | |
| 192 | This value may also be positive or negative; this is handled in the |
| 193 | same way as CONFIG_ENV_OFFSET. |
| 194 | |
| 195 | This value is also in units of bytes, but must also be aligned to |
| 196 | an MMC sector boundary. |
| 197 | |
| 198 | CONFIG_ENV_SIZE_REDUND (optional): |
| 199 | |
| 200 | This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is |
| 201 | set. If this value is set, it must be set to the same value as |
| 202 | CONFIG_ENV_SIZE. |
| 203 | |
| 204 | config ENV_IS_IN_NAND |
| 205 | bool "Environment in a NAND device" |
| 206 | depends on !CHAIN_OF_TRUST |
| 207 | help |
| 208 | Define this if you have a NAND device which you want to use for the |
| 209 | environment. |
| 210 | |
| 211 | - CONFIG_ENV_OFFSET: |
| 212 | - CONFIG_ENV_SIZE: |
| 213 | |
| 214 | These two #defines specify the offset and size of the environment |
| 215 | area within the first NAND device. CONFIG_ENV_OFFSET must be |
| 216 | aligned to an erase block boundary. |
| 217 | |
| 218 | - CONFIG_ENV_OFFSET_REDUND (optional): |
| 219 | |
| 220 | This setting describes a second storage area of CONFIG_ENV_SIZE |
| 221 | size used to hold a redundant copy of the environment data, so |
| 222 | that there is a valid backup copy in case there is a power failure |
| 223 | during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be |
| 224 | aligned to an erase block boundary. |
| 225 | |
| 226 | - CONFIG_ENV_RANGE (optional): |
| 227 | |
| 228 | Specifies the length of the region in which the environment |
| 229 | can be written. This should be a multiple of the NAND device's |
| 230 | block size. Specifying a range with more erase blocks than |
| 231 | are needed to hold CONFIG_ENV_SIZE allows bad blocks within |
| 232 | the range to be avoided. |
| 233 | |
| 234 | - CONFIG_ENV_OFFSET_OOB (optional): |
| 235 | |
| 236 | Enables support for dynamically retrieving the offset of the |
| 237 | environment from block zero's out-of-band data. The |
| 238 | "nand env.oob" command can be used to record this offset. |
| 239 | Currently, CONFIG_ENV_OFFSET_REDUND is not supported when |
| 240 | using CONFIG_ENV_OFFSET_OOB. |
| 241 | |
| 242 | config ENV_IS_IN_NVRAM |
| 243 | bool "Environment in a non-volatile RAM" |
| 244 | depends on !CHAIN_OF_TRUST |
| 245 | help |
| 246 | Define this if you have some non-volatile memory device |
| 247 | (NVRAM, battery buffered SRAM) which you want to use for the |
| 248 | environment. |
| 249 | |
| 250 | - CONFIG_ENV_ADDR: |
| 251 | - CONFIG_ENV_SIZE: |
| 252 | |
| 253 | These two #defines are used to determine the memory area you |
| 254 | want to use for environment. It is assumed that this memory |
| 255 | can just be read and written to, without any special |
| 256 | provision. |
| 257 | |
| 258 | config ENV_IS_IN_ONENAND |
| 259 | bool "Environment is in OneNAND" |
| 260 | depends on !CHAIN_OF_TRUST |
| 261 | help |
| 262 | Define this if you want to put your local device's environment in |
| 263 | OneNAND. |
| 264 | |
| 265 | - CONFIG_ENV_ADDR: |
| 266 | - CONFIG_ENV_SIZE: |
| 267 | |
| 268 | These two #defines are used to determine the device range you |
| 269 | want to use for environment. It is assumed that this memory |
| 270 | can just be read and written to, without any special |
| 271 | provision. |
| 272 | |
| 273 | config ENV_IS_IN_REMOTE |
Heinrich Schuchardt | 646f1ab | 2018-03-17 22:53:11 +0000 | [diff] [blame] | 274 | bool "Environment is in remote memory space" |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 275 | depends on !CHAIN_OF_TRUST |
| 276 | help |
| 277 | Define this if you have a remote memory space which you |
| 278 | want to use for the local device's environment. |
| 279 | |
| 280 | - CONFIG_ENV_ADDR: |
| 281 | - CONFIG_ENV_SIZE: |
| 282 | |
| 283 | These two #defines specify the address and size of the |
| 284 | environment area within the remote memory space. The |
| 285 | local device can get the environment from remote memory |
| 286 | space by SRIO or PCIE links. |
| 287 | |
| 288 | config ENV_IS_IN_SPI_FLASH |
| 289 | bool "Environment is in SPI flash" |
Tom Rini | a4298dd | 2019-05-29 17:01:28 -0400 | [diff] [blame] | 290 | depends on !CHAIN_OF_TRUST && SPI |
Maxime Ripard | fb69464 | 2018-01-23 21:17:01 +0100 | [diff] [blame] | 291 | default y if ARMADA_XP |
| 292 | default y if INTEL_BAYTRAIL |
| 293 | default y if INTEL_BRASWELL |
| 294 | default y if INTEL_BROADWELL |
| 295 | default y if NORTHBRIDGE_INTEL_IVYBRIDGE |
| 296 | default y if INTEL_QUARK |
| 297 | default y if INTEL_QUEENSBAY |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 298 | help |
| 299 | Define this if you have a SPI Flash memory device which you |
| 300 | want to use for the environment. |
| 301 | |
| 302 | - CONFIG_ENV_OFFSET: |
| 303 | - CONFIG_ENV_SIZE: |
| 304 | |
| 305 | These two #defines specify the offset and size of the |
| 306 | environment area within the SPI Flash. CONFIG_ENV_OFFSET must be |
| 307 | aligned to an erase sector boundary. |
| 308 | |
| 309 | - CONFIG_ENV_SECT_SIZE: |
| 310 | |
| 311 | Define the SPI flash's sector size. |
| 312 | |
| 313 | - CONFIG_ENV_OFFSET_REDUND (optional): |
| 314 | |
| 315 | This setting describes a second storage area of CONFIG_ENV_SIZE |
| 316 | size used to hold a redundant copy of the environment data, so |
| 317 | that there is a valid backup copy in case there is a power failure |
| 318 | during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be |
| 319 | aligned to an erase sector boundary. |
| 320 | |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 321 | config USE_ENV_SPI_BUS |
| 322 | bool "SPI flash bus for environment" |
| 323 | depends on ENV_IS_IN_SPI_FLASH |
| 324 | help |
| 325 | Force the SPI bus for environment. |
| 326 | If not defined, use CONFIG_SF_DEFAULT_BUS. |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 327 | |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 328 | config ENV_SPI_BUS |
| 329 | int "Value of SPI flash bus for environment" |
| 330 | depends on USE_ENV_SPI_BUS |
| 331 | help |
| 332 | Value the SPI bus and chip select for environment. |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 333 | |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 334 | config USE_ENV_SPI_CS |
| 335 | bool "SPI flash chip select for environment" |
| 336 | depends on ENV_IS_IN_SPI_FLASH |
| 337 | help |
| 338 | Force the SPI chip select for environment. |
| 339 | If not defined, use CONFIG_SF_DEFAULT_CS. |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 340 | |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 341 | config ENV_SPI_CS |
| 342 | int "Value of SPI flash chip select for environment" |
| 343 | depends on USE_ENV_SPI_CS |
| 344 | help |
| 345 | Value of the SPI chip select for environment. |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 346 | |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 347 | config USE_ENV_SPI_MAX_HZ |
Marek Vasut | dd30961 | 2019-05-04 19:10:05 +0200 | [diff] [blame] | 348 | bool "SPI flash max frequency for environment" |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 349 | depends on ENV_IS_IN_SPI_FLASH |
| 350 | help |
| 351 | Force the SPI max work clock for environment. |
| 352 | If not defined, use CONFIG_SF_DEFAULT_SPEED. |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 353 | |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 354 | config ENV_SPI_MAX_HZ |
Marek Vasut | dd30961 | 2019-05-04 19:10:05 +0200 | [diff] [blame] | 355 | int "Value of SPI flash max frequency for environment" |
Patrick Delaunay | abe66b1 | 2019-02-27 15:20:38 +0100 | [diff] [blame] | 356 | depends on USE_ENV_SPI_MAX_HZ |
| 357 | help |
| 358 | Value of the SPI max work clock for environment. |
| 359 | |
| 360 | config USE_ENV_SPI_MODE |
| 361 | bool "SPI flash mode for environment" |
| 362 | depends on ENV_IS_IN_SPI_FLASH |
| 363 | help |
| 364 | Force the SPI work mode for environment. |
| 365 | |
| 366 | config ENV_SPI_MODE |
| 367 | hex "Value of SPI flash work mode for environment" |
| 368 | depends on USE_ENV_SPI_MODE |
| 369 | help |
| 370 | Value of the SPI work mode for environment. |
| 371 | See include/spi.h for value. |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 372 | |
| 373 | config ENV_IS_IN_UBI |
| 374 | bool "Environment in a UBI volume" |
| 375 | depends on !CHAIN_OF_TRUST |
| 376 | help |
| 377 | Define this if you have an UBI volume that you want to use for the |
| 378 | environment. This has the benefit of wear-leveling the environment |
| 379 | accesses, which is important on NAND. |
| 380 | |
| 381 | - CONFIG_ENV_UBI_PART: |
| 382 | |
| 383 | Define this to a string that is the mtd partition containing the UBI. |
| 384 | |
| 385 | - CONFIG_ENV_UBI_VOLUME: |
| 386 | |
| 387 | Define this to the name of the volume that you want to store the |
| 388 | environment in. |
| 389 | |
| 390 | - CONFIG_ENV_UBI_VOLUME_REDUND: |
| 391 | |
| 392 | Define this to the name of another volume to store a second copy of |
| 393 | the environment in. This will enable redundant environments in UBI. |
| 394 | It is assumed that both volumes are in the same MTD partition. |
| 395 | |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 396 | config ENV_FAT_INTERFACE |
| 397 | string "Name of the block device for the environment" |
| 398 | depends on ENV_IS_IN_FAT |
Maxime Ripard | 0163c91 | 2018-01-23 21:17:04 +0100 | [diff] [blame] | 399 | default "mmc" if ARCH_SUNXI |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 400 | default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91 |
| 401 | help |
| 402 | Define this to a string that is the name of the block device. |
| 403 | |
| 404 | config ENV_FAT_DEVICE_AND_PART |
| 405 | string "Device and partition for where to store the environemt in FAT" |
| 406 | depends on ENV_IS_IN_FAT |
| 407 | default "0:1" if TI_COMMON_CMD_OPTIONS |
| 408 | default "0:auto" if ARCH_ZYNQMP |
Maxime Ripard | 0163c91 | 2018-01-23 21:17:04 +0100 | [diff] [blame] | 409 | default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1 |
| 410 | default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1 |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 411 | default "0" if ARCH_AT91 |
| 412 | help |
| 413 | Define this to a string to specify the partition of the device. It can |
| 414 | be as following: |
| 415 | |
| 416 | "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1) |
| 417 | - "D:P": device D partition P. Error occurs if device D has no |
| 418 | partition table. |
| 419 | - "D:0": device D. |
| 420 | - "D" or "D:": device D partition 1 if device D has partition |
| 421 | table, or the whole device D if has no partition |
| 422 | table. |
| 423 | - "D:auto": first partition in device D with bootable flag set. |
| 424 | If none, first valid partition in device D. If no |
| 425 | partition table then means device D. |
| 426 | |
| 427 | config ENV_FAT_FILE |
Shyam Saini | 919d25c | 2018-06-07 19:47:19 +0530 | [diff] [blame] | 428 | string "Name of the FAT file to use for the environment" |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 429 | depends on ENV_IS_IN_FAT |
| 430 | default "uboot.env" |
| 431 | help |
| 432 | It's a string of the FAT file name. This file use to store the |
| 433 | environment. |
| 434 | |
Jorge Ramirez-Ortiz | 1087a79 | 2018-01-10 11:33:48 +0100 | [diff] [blame] | 435 | config ENV_EXT4_INTERFACE |
| 436 | string "Name of the block device for the environment" |
| 437 | depends on ENV_IS_IN_EXT4 |
| 438 | help |
| 439 | Define this to a string that is the name of the block device. |
| 440 | |
| 441 | config ENV_EXT4_DEVICE_AND_PART |
| 442 | string "Device and partition for where to store the environemt in EXT4" |
| 443 | depends on ENV_IS_IN_EXT4 |
| 444 | help |
| 445 | Define this to a string to specify the partition of the device. It can |
| 446 | be as following: |
| 447 | |
| 448 | "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1) |
| 449 | - "D:P": device D partition P. Error occurs if device D has no |
| 450 | partition table. |
| 451 | - "D:0": device D. |
| 452 | - "D" or "D:": device D partition 1 if device D has partition |
| 453 | table, or the whole device D if has no partition |
| 454 | table. |
| 455 | - "D:auto": first partition in device D with bootable flag set. |
| 456 | If none, first valid partition in device D. If no |
| 457 | partition table then means device D. |
| 458 | |
| 459 | config ENV_EXT4_FILE |
Shyam Saini | 919d25c | 2018-06-07 19:47:19 +0530 | [diff] [blame] | 460 | string "Name of the EXT4 file to use for the environment" |
Jorge Ramirez-Ortiz | 1087a79 | 2018-01-10 11:33:48 +0100 | [diff] [blame] | 461 | depends on ENV_IS_IN_EXT4 |
| 462 | default "uboot.env" |
| 463 | help |
| 464 | It's a string of the EXT4 file name. This file use to store the |
| 465 | environment (explicit path to the file) |
| 466 | |
Markus Klotzbuecher | a9221f3 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 467 | if ARCH_ROCKCHIP || ARCH_SUNXI || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL || ARC || ARCH_STM32MP || ARCH_OMAP2PLUS || ARCH_AT91 |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 468 | |
| 469 | config ENV_OFFSET |
| 470 | hex "Environment Offset" |
Patrick Delaunay | 4048e17 | 2019-06-14 13:05:59 +0200 | [diff] [blame^] | 471 | depends on (!ENV_IS_IN_UBI && !ENV_IS_NOWHERE) || ARCH_STM32MP |
Michal Simek | 4aee624 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 472 | default 0x3f8000 if ARCH_ROCKCHIP |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 473 | default 0x88000 if ARCH_SUNXI |
Michal Simek | 4aee624 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 474 | default 0xE0000 if ARCH_ZYNQ |
| 475 | default 0x1E00000 if ARCH_ZYNQMP |
Alexey Brodkin | 70b5ea7 | 2019-01-15 11:42:48 +0300 | [diff] [blame] | 476 | default 0 if ARC |
Markus Klotzbuecher | a9221f3 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 477 | default 0x140000 if ARCH_AT91 |
| 478 | default 0x260000 if ARCH_OMAP2PLUS |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 479 | help |
| 480 | Offset from the start of the device (or partition) |
| 481 | |
| 482 | config ENV_SIZE |
| 483 | hex "Environment Size" |
Michal Simek | 4aee624 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 484 | default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP |
Markus Klotzbuecher | a9221f3 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 485 | default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 |
Michal Simek | ec48b6c | 2018-08-22 14:55:27 +0200 | [diff] [blame] | 486 | default 0x8000 if ARCH_ROCKCHIP || ARCH_ZYNQMP || ARCH_VERSAL |
Alexey Brodkin | 70b5ea7 | 2019-01-15 11:42:48 +0300 | [diff] [blame] | 487 | default 0x4000 if ARC |
Markus Klotzbuecher | a9221f3 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 488 | default 0x1f000 |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 489 | help |
| 490 | Size of the environment storage area |
| 491 | |
Michal Simek | 4aee624 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 492 | config ENV_SECT_SIZE |
| 493 | hex "Environment Sector-Size" |
Patrick Delaunay | 4048e17 | 2019-06-14 13:05:59 +0200 | [diff] [blame^] | 494 | depends on (!ENV_IS_NOWHERE && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_OMAP2PLUS || ARCH_AT91) )|| ARCH_STM32MP |
Michal Simek | 4aee624 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 495 | default 0x40000 if ARCH_ZYNQMP |
Markus Klotzbuecher | a9221f3 | 2019-05-15 15:15:54 +0200 | [diff] [blame] | 496 | default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 |
Michal Simek | 4aee624 | 2018-07-19 08:45:45 +0200 | [diff] [blame] | 497 | help |
| 498 | Size of the sector containing the environment. |
| 499 | |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 500 | config ENV_UBI_PART |
| 501 | string "UBI partition name" |
| 502 | depends on ENV_IS_IN_UBI |
| 503 | help |
| 504 | MTD partition containing the UBI device |
| 505 | |
| 506 | config ENV_UBI_VOLUME |
| 507 | string "UBI volume name" |
| 508 | depends on ENV_IS_IN_UBI |
| 509 | help |
| 510 | Name of the volume that you want to store the environment in. |
| 511 | |
Markus Klotzbuecher | ff4818c | 2019-05-15 15:15:53 +0200 | [diff] [blame] | 512 | config ENV_UBI_VOLUME_REDUND |
| 513 | string "UBI redundant volume name" |
| 514 | depends on ENV_IS_IN_UBI |
| 515 | help |
| 516 | Name of the redundant volume that you want to store the environment in. |
| 517 | |
Hamish Guthrie | 985186d | 2019-05-15 15:15:55 +0200 | [diff] [blame] | 518 | config ENV_UBI_VID_OFFSET |
| 519 | int "ubi environment VID offset" |
| 520 | depends on ENV_IS_IN_UBI |
| 521 | default 0 |
| 522 | help |
| 523 | UBI VID offset for environment. If 0, no custom VID offset is used. |
| 524 | |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 525 | endif |
| 526 | |
Rasmus Villemoes | f3d8f7d | 2018-03-20 11:38:45 +0100 | [diff] [blame] | 527 | config USE_DEFAULT_ENV_FILE |
| 528 | bool "Create default environment from file" |
| 529 | help |
| 530 | Normally, the default environment is automatically generated |
| 531 | based on the settings of various CONFIG_* options, as well |
| 532 | as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option, |
| 533 | you can instead define the entire default environment in an |
| 534 | external file. |
| 535 | |
| 536 | config DEFAULT_ENV_FILE |
| 537 | string "Path to default environment file" |
| 538 | depends on USE_DEFAULT_ENV_FILE |
| 539 | help |
| 540 | The path containing the default environment. The format is |
| 541 | the same as accepted by the mkenvimage tool: lines |
| 542 | containing key=value pairs, blank lines and lines beginning |
| 543 | with # are ignored. |
| 544 | |
Alex Kiernan | d910130 | 2018-04-01 16:37:53 +0000 | [diff] [blame] | 545 | config ENV_VARS_UBOOT_RUNTIME_CONFIG |
| 546 | bool "Add run-time information to the environment" |
| 547 | help |
| 548 | Enable this in order to add variables describing certain |
| 549 | run-time determined information about the hardware to the |
| 550 | environment. These will be named board_name, board_rev. |
| 551 | |
York Sun | 474ecd2 | 2018-06-26 10:03:22 -0700 | [diff] [blame] | 552 | if SPL_ENV_SUPPORT |
| 553 | config SPL_ENV_IS_NOWHERE |
| 554 | bool "SPL Environment is not stored" |
| 555 | default y if ENV_IS_NOWHERE |
| 556 | help |
| 557 | Similar to ENV_IS_NOWHERE, used for SPL environment. |
| 558 | |
| 559 | config SPL_ENV_IS_IN_MMC |
| 560 | bool "SPL Environment in an MMC device" |
| 561 | depends on !SPL_ENV_IS_NOWHERE |
| 562 | depends on ENV_IS_IN_MMC |
| 563 | default y |
| 564 | help |
| 565 | Similar to ENV_IS_IN_MMC, used for SPL environment. |
| 566 | |
| 567 | config SPL_ENV_IS_IN_FAT |
| 568 | bool "SPL Environment is in a FAT filesystem" |
| 569 | depends on !SPL_ENV_IS_NOWHERE |
| 570 | depends on ENV_IS_IN_FAT |
| 571 | default y |
| 572 | help |
| 573 | Similar to ENV_IS_IN_FAT, used for SPL environment. |
| 574 | |
| 575 | config SPL_ENV_IS_IN_EXT4 |
| 576 | bool "SPL Environment is in a EXT4 filesystem" |
| 577 | depends on !SPL_ENV_IS_NOWHERE |
| 578 | depends on ENV_IS_IN_EXT4 |
| 579 | default y |
| 580 | help |
| 581 | Similar to ENV_IS_IN_EXT4, used for SPL environment. |
| 582 | |
| 583 | config SPL_ENV_IS_IN_NAND |
| 584 | bool "SPL Environment in a NAND device" |
| 585 | depends on !SPL_ENV_IS_NOWHERE |
| 586 | depends on ENV_IS_IN_NAND |
| 587 | default y |
| 588 | help |
| 589 | Similar to ENV_IS_IN_NAND, used for SPL environment. |
| 590 | |
| 591 | config SPL_ENV_IS_IN_SPI_FLASH |
| 592 | bool "SPL Environment is in SPI flash" |
| 593 | depends on !SPL_ENV_IS_NOWHERE |
| 594 | depends on ENV_IS_IN_SPI_FLASH |
| 595 | default y |
| 596 | help |
| 597 | Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment. |
| 598 | |
| 599 | config SPL_ENV_IS_IN_FLASH |
| 600 | bool "SPL Environment in flash memory" |
| 601 | depends on !SPL_ENV_IS_NOWHERE |
| 602 | depends on ENV_IS_IN_FLASH |
| 603 | default y |
| 604 | help |
| 605 | Similar to ENV_IS_IN_FLASH, used for SPL environment. |
| 606 | |
| 607 | endif |
| 608 | |
| 609 | if TPL_ENV_SUPPORT |
| 610 | |
| 611 | config TPL_ENV_IS_NOWHERE |
| 612 | bool "TPL Environment is not stored" |
| 613 | default y if ENV_IS_NOWHERE |
| 614 | help |
| 615 | Similar to ENV_IS_NOWHERE, used for TPL environment. |
| 616 | |
| 617 | config TPL_ENV_IS_IN_MMC |
| 618 | bool "TPL Environment in an MMC device" |
| 619 | depends on !TPL_ENV_IS_NOWHERE |
| 620 | depends on ENV_IS_IN_MMC |
| 621 | default y |
| 622 | help |
| 623 | Similar to ENV_IS_IN_MMC, used for TPL environment. |
| 624 | |
| 625 | config TPL_ENV_IS_IN_FAT |
| 626 | bool "TPL Environment is in a FAT filesystem" |
| 627 | depends on !TPL_ENV_IS_NOWHERE |
| 628 | depends on ENV_IS_IN_FAT |
| 629 | default y |
| 630 | help |
| 631 | Similar to ENV_IS_IN_FAT, used for TPL environment. |
| 632 | |
| 633 | config TPL_ENV_IS_IN_EXT4 |
| 634 | bool "TPL Environment is in a EXT4 filesystem" |
| 635 | depends on !TPL_ENV_IS_NOWHERE |
| 636 | depends on ENV_IS_IN_EXT4 |
| 637 | default y |
| 638 | help |
| 639 | Similar to ENV_IS_IN_EXT4, used for TPL environment. |
| 640 | |
| 641 | config TPL_ENV_IS_IN_NAND |
| 642 | bool "TPL Environment in a NAND device" |
| 643 | depends on !TPL_ENV_IS_NOWHERE |
| 644 | depends on ENV_IS_IN_NAND |
| 645 | default y |
| 646 | help |
| 647 | Similar to ENV_IS_IN_NAND, used for TPL environment. |
| 648 | |
| 649 | config TPL_ENV_IS_IN_SPI_FLASH |
| 650 | bool "TPL Environment is in SPI flash" |
| 651 | depends on !TPL_ENV_IS_NOWHERE |
| 652 | depends on ENV_IS_IN_SPI_FLASH |
| 653 | default y |
| 654 | help |
| 655 | Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment. |
| 656 | |
| 657 | config TPL_ENV_IS_IN_FLASH |
| 658 | bool "TPL Environment in flash memory" |
| 659 | depends on !TPL_ENV_IS_NOWHERE |
| 660 | depends on ENV_IS_IN_FLASH |
| 661 | default y |
| 662 | help |
| 663 | Similar to ENV_IS_IN_FLASH, used for TPL environment. |
| 664 | |
| 665 | endif |
| 666 | |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 667 | endmenu |