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