blob: 1cae1edf6a9054936872c38bdf6079fcfec298f5 [file] [log] [blame]
Simon Glass0649cd02017-08-03 12:21:49 -06001menu "Environment"
2
Rasmus Villemoesc8221682019-12-15 22:29:39 +00003config ENV_SUPPORT
4 def_bool y
5
Rasmus Villemoes1d0adee2020-02-19 09:47:39 +00006config SAVEENV
7 def_bool y if CMD_SAVEENV
8
Adam Forde91907a2020-07-03 06:48:56 -05009config ENV_OVERWRITE
10 bool "Enable overwriting environment"
11 help
12 Use this to permit overriding of certain environmental variables
13 like Ethernet and Serial
14
Simon Glassc1c3fe22017-08-03 12:21:59 -060015config ENV_IS_NOWHERE
16 bool "Environment is not stored"
Patrice Chotard208bd2b2019-05-07 11:24:02 +020017 default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \
18 !ENV_IS_IN_FAT && !ENV_IS_IN_FLASH && \
19 !ENV_IS_IN_MMC && !ENV_IS_IN_NAND && \
20 !ENV_IS_IN_NVRAM && !ENV_IS_IN_ONENAND && \
21 !ENV_IS_IN_REMOTE && !ENV_IS_IN_SPI_FLASH && \
22 !ENV_IS_IN_UBI
Simon Glassc1c3fe22017-08-03 12:21:59 -060023 help
24 Define this if you don't want to or can't have an environment stored
Shyam Saini919d25c2018-06-07 19:47:19 +053025 on a storage medium. In this case the environment will still exist
Simon Glassc1c3fe22017-08-03 12:21:59 -060026 while U-Boot is running, but once U-Boot exits it will not be
27 stored. U-Boot will therefore always start up with a default
28 environment.
29
Simon Glass0649cd02017-08-03 12:21:49 -060030config ENV_IS_IN_EEPROM
31 bool "Environment in EEPROM"
32 depends on !CHAIN_OF_TRUST
33 help
34 Use this if you have an EEPROM or similar serial access
35 device and a driver for it.
36
37 - CONFIG_ENV_OFFSET:
38 - CONFIG_ENV_SIZE:
39
40 These two #defines specify the offset and size of the
41 environment area within the total memory of your EEPROM.
42
Simon Glass0649cd02017-08-03 12:21:49 -060043 Note that we consider the length of the address field to
44 still be one byte because the extra address bits are hidden
45 in the chip address.
46
Simon Glass0649cd02017-08-03 12:21:49 -060047 - CONFIG_ENV_EEPROM_IS_ON_I2C
48 define this, if you have I2C and SPI activated, and your
49 EEPROM, which holds the environment, is on the I2C bus.
50
51 - CONFIG_I2C_ENV_EEPROM_BUS
52 if you have an Environment on an EEPROM reached over
53 I2C muxes, you can define here, how to reach this
54 EEPROM. For example:
55
56 #define CONFIG_I2C_ENV_EEPROM_BUS 1
57
58 EEPROM which holds the environment, is reached over
59 a pca9547 i2c mux with address 0x70, channel 3.
60
61config ENV_IS_IN_FAT
62 bool "Environment is in a FAT filesystem"
63 depends on !CHAIN_OF_TRUST
Maxime Ripardfb694642018-01-23 21:17:01 +010064 default y if ARCH_BCM283X
Maxime Ripard0163c912018-01-23 21:17:04 +010065 default y if ARCH_SUNXI && MMC
Maxime Ripardfb694642018-01-23 21:17:01 +010066 default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
Tuomas Tynkkynen3cd084d2018-01-05 02:45:19 +020067 select FS_FAT
Simon Glass0649cd02017-08-03 12:21:49 -060068 select FAT_WRITE
69 help
Simon Glass91d3aa02017-08-03 12:21:50 -060070 Define this if you want to use the FAT file system for the environment.
Simon Glass0649cd02017-08-03 12:21:49 -060071
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +010072config ENV_IS_IN_EXT4
73 bool "Environment is in a EXT4 filesystem"
74 depends on !CHAIN_OF_TRUST
75 select EXT4_WRITE
76 help
77 Define this if you want to use the EXT4 file system for the environment.
78
Simon Glass0649cd02017-08-03 12:21:49 -060079config ENV_IS_IN_FLASH
80 bool "Environment in flash memory"
81 depends on !CHAIN_OF_TRUST
Maxime Ripardfb694642018-01-23 21:17:01 +010082 default y if ARCH_CINTEGRATOR
83 default y if ARCH_INTEGRATOR_CP
84 default y if M548x || M547x || M5282 || MCF547x_8x
85 default y if MCF532x || MCF52x2
86 default y if MPC86xx || MPC83xx
87 default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
88 default y if SH && !CPU_SH4
Simon Glass0649cd02017-08-03 12:21:49 -060089 help
90 Define this if you have a flash device which you want to use for the
91 environment.
92
93 a) The environment occupies one whole flash sector, which is
94 "embedded" in the text segment with the U-Boot code. This
95 happens usually with "bottom boot sector" or "top boot
96 sector" type flash chips, which have several smaller
97 sectors at the start or the end. For instance, such a
98 layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
99 such a case you would place the environment in one of the
100 4 kB sectors - with U-Boot code before and after it. With
101 "top boot sector" type flash chips, you would put the
102 environment in one of the last sectors, leaving a gap
103 between U-Boot and the environment.
104
105 CONFIG_ENV_OFFSET:
106
107 Offset of environment data (variable area) to the
108 beginning of flash memory; for instance, with bottom boot
109 type flash chips the second sector can be used: the offset
110 for this sector is given here.
111
112 CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
113
114 CONFIG_ENV_ADDR:
115
116 This is just another way to specify the start address of
117 the flash sector containing the environment (instead of
118 CONFIG_ENV_OFFSET).
119
120 CONFIG_ENV_SECT_SIZE:
121
122 Size of the sector containing the environment.
123
124
125 b) Sometimes flash chips have few, equal sized, BIG sectors.
126 In such a case you don't want to spend a whole sector for
127 the environment.
128
129 CONFIG_ENV_SIZE:
130
131 If you use this in combination with CONFIG_ENV_IS_IN_FLASH
132 and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
133 of this flash sector for the environment. This saves
134 memory for the RAM copy of the environment.
135
136 It may also save flash memory if you decide to use this
137 when your environment is "embedded" within U-Boot code,
138 since then the remainder of the flash sector could be used
139 for U-Boot code. It should be pointed out that this is
140 STRONGLY DISCOURAGED from a robustness point of view:
141 updating the environment in flash makes it always
142 necessary to erase the WHOLE sector. If something goes
143 wrong before the contents has been restored from a copy in
144 RAM, your target system will be dead.
145
146 CONFIG_ENV_ADDR_REDUND
Simon Glass0649cd02017-08-03 12:21:49 -0600147
148 These settings describe a second storage area used to hold
149 a redundant copy of the environment data, so that there is
150 a valid backup copy in case there is a power failure during
151 a "saveenv" operation.
152
153 BE CAREFUL! Any changes to the flash layout, and some changes to the
154 source code will make it necessary to adapt <board>/u-boot.lds*
155 accordingly!
156
157config ENV_IS_IN_MMC
158 bool "Environment in an MMC device"
159 depends on !CHAIN_OF_TRUST
Maxime Ripardd282a1d2018-01-23 21:17:00 +0100160 depends on MMC
Maxime Ripardfb694642018-01-23 21:17:01 +0100161 default y if ARCH_EXYNOS4
162 default y if MX6SX || MX7D
163 default y if TEGRA30 || TEGRA124
164 default y if TEGRA_ARMV8_COMMON
Simon Glass0649cd02017-08-03 12:21:49 -0600165 help
166 Define this if you have an MMC device which you want to use for the
167 environment.
168
169 CONFIG_SYS_MMC_ENV_DEV:
170
171 Specifies which MMC device the environment is stored in.
172
173 CONFIG_SYS_MMC_ENV_PART (optional):
174
175 Specifies which MMC partition the environment is stored in. If not
176 set, defaults to partition 0, the user area. Common values might be
177 1 (first MMC boot partition), 2 (second MMC boot partition).
178
179 CONFIG_ENV_OFFSET:
180 CONFIG_ENV_SIZE:
181
182 These two #defines specify the offset and size of the environment
183 area within the specified MMC device.
184
185 If offset is positive (the usual case), it is treated as relative to
186 the start of the MMC partition. If offset is negative, it is treated
187 as relative to the end of the MMC partition. This can be useful if
188 your board may be fitted with different MMC devices, which have
189 different sizes for the MMC partitions, and you always want the
190 environment placed at the very end of the partition, to leave the
191 maximum possible space before it, to store other data.
192
193 These two values are in units of bytes, but must be aligned to an
194 MMC sector boundary.
195
196 CONFIG_ENV_OFFSET_REDUND (optional):
197
198 Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
199 hold a redundant copy of the environment data. This provides a
200 valid backup copy in case the other copy is corrupted, e.g. due
201 to a power failure during a "saveenv" operation.
202
203 This value may also be positive or negative; this is handled in the
204 same way as CONFIG_ENV_OFFSET.
205
206 This value is also in units of bytes, but must also be aligned to
207 an MMC sector boundary.
208
Simon Glass0649cd02017-08-03 12:21:49 -0600209config ENV_IS_IN_NAND
210 bool "Environment in a NAND device"
211 depends on !CHAIN_OF_TRUST
212 help
213 Define this if you have a NAND device which you want to use for the
214 environment.
215
216 - CONFIG_ENV_OFFSET:
217 - CONFIG_ENV_SIZE:
218
219 These two #defines specify the offset and size of the environment
220 area within the first NAND device. CONFIG_ENV_OFFSET must be
221 aligned to an erase block boundary.
222
223 - CONFIG_ENV_OFFSET_REDUND (optional):
224
225 This setting describes a second storage area of CONFIG_ENV_SIZE
226 size used to hold a redundant copy of the environment data, so
227 that there is a valid backup copy in case there is a power failure
228 during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
229 aligned to an erase block boundary.
230
231 - CONFIG_ENV_RANGE (optional):
232
233 Specifies the length of the region in which the environment
234 can be written. This should be a multiple of the NAND device's
235 block size. Specifying a range with more erase blocks than
236 are needed to hold CONFIG_ENV_SIZE allows bad blocks within
237 the range to be avoided.
238
239 - CONFIG_ENV_OFFSET_OOB (optional):
240
241 Enables support for dynamically retrieving the offset of the
242 environment from block zero's out-of-band data. The
243 "nand env.oob" command can be used to record this offset.
244 Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
245 using CONFIG_ENV_OFFSET_OOB.
246
247config ENV_IS_IN_NVRAM
248 bool "Environment in a non-volatile RAM"
249 depends on !CHAIN_OF_TRUST
250 help
251 Define this if you have some non-volatile memory device
252 (NVRAM, battery buffered SRAM) which you want to use for the
253 environment.
254
255 - CONFIG_ENV_ADDR:
256 - CONFIG_ENV_SIZE:
257
258 These two #defines are used to determine the memory area you
259 want to use for environment. It is assumed that this memory
260 can just be read and written to, without any special
261 provision.
262
263config ENV_IS_IN_ONENAND
264 bool "Environment is in OneNAND"
265 depends on !CHAIN_OF_TRUST
266 help
267 Define this if you want to put your local device's environment in
268 OneNAND.
269
270 - CONFIG_ENV_ADDR:
271 - CONFIG_ENV_SIZE:
272
273 These two #defines are used to determine the device range you
274 want to use for environment. It is assumed that this memory
275 can just be read and written to, without any special
276 provision.
277
278config ENV_IS_IN_REMOTE
Heinrich Schuchardt646f1ab2018-03-17 22:53:11 +0000279 bool "Environment is in remote memory space"
Simon Glass0649cd02017-08-03 12:21:49 -0600280 depends on !CHAIN_OF_TRUST
281 help
282 Define this if you have a remote memory space which you
283 want to use for the local device's environment.
284
285 - CONFIG_ENV_ADDR:
286 - CONFIG_ENV_SIZE:
287
288 These two #defines specify the address and size of the
289 environment area within the remote memory space. The
290 local device can get the environment from remote memory
291 space by SRIO or PCIE links.
292
293config ENV_IS_IN_SPI_FLASH
294 bool "Environment is in SPI flash"
Tom Rinia4298dd2019-05-29 17:01:28 -0400295 depends on !CHAIN_OF_TRUST && SPI
Maxime Ripardfb694642018-01-23 21:17:01 +0100296 default y if ARMADA_XP
297 default y if INTEL_BAYTRAIL
298 default y if INTEL_BRASWELL
299 default y if INTEL_BROADWELL
300 default y if NORTHBRIDGE_INTEL_IVYBRIDGE
301 default y if INTEL_QUARK
302 default y if INTEL_QUEENSBAY
Simon Glass0649cd02017-08-03 12:21:49 -0600303 help
304 Define this if you have a SPI Flash memory device which you
305 want to use for the environment.
306
307 - CONFIG_ENV_OFFSET:
308 - CONFIG_ENV_SIZE:
309
310 These two #defines specify the offset and size of the
311 environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
312 aligned to an erase sector boundary.
313
314 - CONFIG_ENV_SECT_SIZE:
315
316 Define the SPI flash's sector size.
317
318 - CONFIG_ENV_OFFSET_REDUND (optional):
319
320 This setting describes a second storage area of CONFIG_ENV_SIZE
321 size used to hold a redundant copy of the environment data, so
322 that there is a valid backup copy in case there is a power failure
323 during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
324 aligned to an erase sector boundary.
325
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100326config USE_ENV_SPI_BUS
327 bool "SPI flash bus for environment"
328 depends on ENV_IS_IN_SPI_FLASH
329 help
330 Force the SPI bus for environment.
331 If not defined, use CONFIG_SF_DEFAULT_BUS.
Simon Glass0649cd02017-08-03 12:21:49 -0600332
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100333config ENV_SPI_BUS
334 int "Value of SPI flash bus for environment"
335 depends on USE_ENV_SPI_BUS
336 help
337 Value the SPI bus and chip select for environment.
Simon Glass0649cd02017-08-03 12:21:49 -0600338
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100339config USE_ENV_SPI_CS
340 bool "SPI flash chip select for environment"
341 depends on ENV_IS_IN_SPI_FLASH
342 help
343 Force the SPI chip select for environment.
344 If not defined, use CONFIG_SF_DEFAULT_CS.
Simon Glass0649cd02017-08-03 12:21:49 -0600345
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100346config ENV_SPI_CS
347 int "Value of SPI flash chip select for environment"
348 depends on USE_ENV_SPI_CS
349 help
350 Value of the SPI chip select for environment.
Simon Glass0649cd02017-08-03 12:21:49 -0600351
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100352config USE_ENV_SPI_MAX_HZ
Marek Vasutdd309612019-05-04 19:10:05 +0200353 bool "SPI flash max frequency for environment"
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100354 depends on ENV_IS_IN_SPI_FLASH
355 help
356 Force the SPI max work clock for environment.
357 If not defined, use CONFIG_SF_DEFAULT_SPEED.
Simon Glass0649cd02017-08-03 12:21:49 -0600358
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100359config ENV_SPI_MAX_HZ
Marek Vasutdd309612019-05-04 19:10:05 +0200360 int "Value of SPI flash max frequency for environment"
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100361 depends on USE_ENV_SPI_MAX_HZ
362 help
363 Value of the SPI max work clock for environment.
364
365config USE_ENV_SPI_MODE
366 bool "SPI flash mode for environment"
367 depends on ENV_IS_IN_SPI_FLASH
368 help
369 Force the SPI work mode for environment.
370
371config ENV_SPI_MODE
372 hex "Value of SPI flash work mode for environment"
373 depends on USE_ENV_SPI_MODE
374 help
375 Value of the SPI work mode for environment.
376 See include/spi.h for value.
Simon Glass0649cd02017-08-03 12:21:49 -0600377
378config ENV_IS_IN_UBI
379 bool "Environment in a UBI volume"
380 depends on !CHAIN_OF_TRUST
Miquel Raynal00e27042019-10-03 19:50:12 +0200381 depends on MTD_UBI
382 depends on CMD_UBI
Simon Glass0649cd02017-08-03 12:21:49 -0600383 help
384 Define this if you have an UBI volume that you want to use for the
385 environment. This has the benefit of wear-leveling the environment
386 accesses, which is important on NAND.
387
388 - CONFIG_ENV_UBI_PART:
389
390 Define this to a string that is the mtd partition containing the UBI.
391
392 - CONFIG_ENV_UBI_VOLUME:
393
394 Define this to the name of the volume that you want to store the
395 environment in.
396
397 - CONFIG_ENV_UBI_VOLUME_REDUND:
398
399 Define this to the name of another volume to store a second copy of
400 the environment in. This will enable redundant environments in UBI.
401 It is assumed that both volumes are in the same MTD partition.
402
Tom Rinicb6617a2019-11-10 11:28:03 -0500403config SYS_REDUNDAND_ENVIRONMENT
404 bool "Enable redundant environment support"
405 depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
406 ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
407 help
408 Normally, the environemt is stored in a single location. By
409 selecting this option, you can then define where to hold a redundant
410 copy of the environment data, so that there is a valid backup copy in
411 case there is a power failure during a "saveenv" operation.
412
Simon Glass0649cd02017-08-03 12:21:49 -0600413config ENV_FAT_INTERFACE
414 string "Name of the block device for the environment"
415 depends on ENV_IS_IN_FAT
Michal Simek8d782112020-02-25 15:50:33 +0100416 default "mmc"
Simon Glass0649cd02017-08-03 12:21:49 -0600417 help
418 Define this to a string that is the name of the block device.
419
420config ENV_FAT_DEVICE_AND_PART
421 string "Device and partition for where to store the environemt in FAT"
422 depends on ENV_IS_IN_FAT
423 default "0:1" if TI_COMMON_CMD_OPTIONS
424 default "0:auto" if ARCH_ZYNQMP
Maxime Ripard0163c912018-01-23 21:17:04 +0100425 default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
426 default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
Simon Glass0649cd02017-08-03 12:21:49 -0600427 default "0" if ARCH_AT91
428 help
429 Define this to a string to specify the partition of the device. It can
430 be as following:
431
432 "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
433 - "D:P": device D partition P. Error occurs if device D has no
434 partition table.
435 - "D:0": device D.
436 - "D" or "D:": device D partition 1 if device D has partition
437 table, or the whole device D if has no partition
438 table.
439 - "D:auto": first partition in device D with bootable flag set.
440 If none, first valid partition in device D. If no
441 partition table then means device D.
442
David Woodhouse6731bef2020-06-19 23:07:17 +0100443 If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted,
444 leaving the string starting with a colon, and the boot device will
445 be used.
446
Simon Glass0649cd02017-08-03 12:21:49 -0600447config ENV_FAT_FILE
Shyam Saini919d25c2018-06-07 19:47:19 +0530448 string "Name of the FAT file to use for the environment"
Simon Glass0649cd02017-08-03 12:21:49 -0600449 depends on ENV_IS_IN_FAT
450 default "uboot.env"
451 help
452 It's a string of the FAT file name. This file use to store the
453 environment.
454
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100455config ENV_EXT4_INTERFACE
456 string "Name of the block device for the environment"
457 depends on ENV_IS_IN_EXT4
458 help
459 Define this to a string that is the name of the block device.
460
461config ENV_EXT4_DEVICE_AND_PART
462 string "Device and partition for where to store the environemt in EXT4"
463 depends on ENV_IS_IN_EXT4
464 help
465 Define this to a string to specify the partition of the device. It can
466 be as following:
467
468 "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
469 - "D:P": device D partition P. Error occurs if device D has no
470 partition table.
471 - "D:0": device D.
472 - "D" or "D:": device D partition 1 if device D has partition
473 table, or the whole device D if has no partition
474 table.
475 - "D:auto": first partition in device D with bootable flag set.
476 If none, first valid partition in device D. If no
477 partition table then means device D.
478
479config ENV_EXT4_FILE
Shyam Saini919d25c2018-06-07 19:47:19 +0530480 string "Name of the EXT4 file to use for the environment"
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100481 depends on ENV_IS_IN_EXT4
Patrick Delaunay87dac742020-07-28 11:51:14 +0200482 default "/uboot.env"
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100483 help
484 It's a string of the EXT4 file name. This file use to store the
485 environment (explicit path to the file)
486
Tom Rinia09fea12019-11-18 20:02:10 -0500487config ENV_ADDR
488 hex "Environment address"
489 depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \
490 ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH
491 default 0x0 if ENV_IS_IN_SPI_FLASH
492 help
493 Offset from the start of the device (or partition)
494
495config ENV_ADDR_REDUND
496 hex "Redundant environment address"
497 depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT
498 help
499 Offset from the start of the device (or partition) of the redundant
500 environment location.
Simon Glass0649cd02017-08-03 12:21:49 -0600501
502config ENV_OFFSET
Tom Rinia09fea12019-11-18 20:02:10 -0500503 hex "Environment offset"
504 depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
505 ENV_IS_IN_SPI_FLASH
Jagan Tekid7b433e2019-12-21 13:24:35 +0530506 default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
Jagan Teki54b85a92019-12-21 13:24:36 +0530507 default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
Simon Glass0649cd02017-08-03 12:21:49 -0600508 default 0x88000 if ARCH_SUNXI
Michal Simek4aee6242018-07-19 08:45:45 +0200509 default 0xE0000 if ARCH_ZYNQ
510 default 0x1E00000 if ARCH_ZYNQMP
T Karthik Reddyf8c0f9f2019-08-05 16:18:57 +0530511 default 0x7F40000 if ARCH_VERSAL
Alexey Brodkin70b5ea72019-01-15 11:42:48 +0300512 default 0 if ARC
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200513 default 0x140000 if ARCH_AT91
514 default 0x260000 if ARCH_OMAP2PLUS
Varalaxmi Bingi63e988e2020-02-05 03:58:20 -0700515 default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
Simon Glass0649cd02017-08-03 12:21:49 -0600516 help
517 Offset from the start of the device (or partition)
518
Tom Rinia09fea12019-11-18 20:02:10 -0500519config ENV_OFFSET_REDUND
520 hex "Redundant environment offset"
521 depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
522 ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
523 help
524 Offset from the start of the device (or partition) of the redundant
525 environment location.
526
Simon Glass0649cd02017-08-03 12:21:49 -0600527config ENV_SIZE
528 hex "Environment Size"
Michal Simek4aee6242018-07-19 08:45:45 +0200529 default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200530 default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
Jagan Tekid7b433e2019-12-21 13:24:35 +0530531 default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
Jagan Teki54b85a92019-12-21 13:24:36 +0530532 default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
Jagan Tekid7b433e2019-12-21 13:24:35 +0530533 default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
Alexey Brodkin70b5ea72019-01-15 11:42:48 +0300534 default 0x4000 if ARC
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200535 default 0x1f000
Simon Glass0649cd02017-08-03 12:21:49 -0600536 help
537 Size of the environment storage area
538
Michal Simek4aee6242018-07-19 08:45:45 +0200539config ENV_SECT_SIZE
540 hex "Environment Sector-Size"
Tom Rinia09fea12019-11-18 20:02:10 -0500541 depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
Jagan Teki54b85a92019-12-21 13:24:36 +0530542 default 0x2000 if ARCH_ROCKCHIP
T Karthik Reddyf8c0f9f2019-08-05 16:18:57 +0530543 default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200544 default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
Varalaxmi Bingi63e988e2020-02-05 03:58:20 -0700545 default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
Michal Simek4aee6242018-07-19 08:45:45 +0200546 help
547 Size of the sector containing the environment.
548
Simon Glass0649cd02017-08-03 12:21:49 -0600549config ENV_UBI_PART
550 string "UBI partition name"
551 depends on ENV_IS_IN_UBI
552 help
553 MTD partition containing the UBI device
554
555config ENV_UBI_VOLUME
556 string "UBI volume name"
557 depends on ENV_IS_IN_UBI
558 help
559 Name of the volume that you want to store the environment in.
560
Markus Klotzbuecherff4818c2019-05-15 15:15:53 +0200561config ENV_UBI_VOLUME_REDUND
562 string "UBI redundant volume name"
Tom Rinicb6617a2019-11-10 11:28:03 -0500563 depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
Markus Klotzbuecherff4818c2019-05-15 15:15:53 +0200564 help
565 Name of the redundant volume that you want to store the environment in.
566
Hamish Guthrie985186d2019-05-15 15:15:55 +0200567config ENV_UBI_VID_OFFSET
568 int "ubi environment VID offset"
569 depends on ENV_IS_IN_UBI
570 default 0
571 help
572 UBI VID offset for environment. If 0, no custom VID offset is used.
573
Tom Rini8d8ee472019-11-12 22:46:36 -0500574config SYS_RELOC_GD_ENV_ADDR
Patrick Delaunay35c26832020-06-10 19:28:42 +0200575 bool "Relocate gd->env_addr"
Tom Rini8d8ee472019-11-12 22:46:36 -0500576 help
577 Relocate the early env_addr pointer so we know it is not inside
578 the binary. Some systems need this and for the rest, it doesn't hurt.
579
Rasmus Villemoesf3d8f7d2018-03-20 11:38:45 +0100580config USE_DEFAULT_ENV_FILE
581 bool "Create default environment from file"
582 help
583 Normally, the default environment is automatically generated
584 based on the settings of various CONFIG_* options, as well
585 as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
586 you can instead define the entire default environment in an
587 external file.
588
589config DEFAULT_ENV_FILE
590 string "Path to default environment file"
591 depends on USE_DEFAULT_ENV_FILE
592 help
593 The path containing the default environment. The format is
594 the same as accepted by the mkenvimage tool: lines
595 containing key=value pairs, blank lines and lines beginning
596 with # are ignored.
597
Alex Kiernand9101302018-04-01 16:37:53 +0000598config ENV_VARS_UBOOT_RUNTIME_CONFIG
599 bool "Add run-time information to the environment"
600 help
601 Enable this in order to add variables describing certain
602 run-time determined information about the hardware to the
603 environment. These will be named board_name, board_rev.
604
Ovidiu Panaitb8879f22020-05-06 20:38:42 +0300605config DELAY_ENVIRONMENT
606 bool "Delay environment loading"
607 depends on !OF_CONTROL
608 help
609 Enable this to inhibit loading the environment during board
610 initialization. This can address the security risk of untrusted data
611 being used during boot. Normally the environment is loaded when the
612 board is initialised so that it is available to U-Boot. This inhibits
613 that so that the environment is not available until explicitly loaded
614 later by U-Boot code. With CONFIG_OF_CONTROL this is instead
615 controlled by the value of /config/load-environment.
616
Marek Vasut47f3b1f2020-07-07 20:51:38 +0200617config ENV_APPEND
618 bool "Always append the environment with new data"
619 default n
620 help
621 If defined, the environment hash table is only ever appended with new
622 data, but the existing hash table can never be dropped and reloaded
623 with newly imported data. This may be used in combination with static
624 flags to e.g. to protect variables which must not be modified.
625
Marek Vasut3ec46992020-05-22 01:10:14 +0200626config ENV_ACCESS_IGNORE_FORCE
627 bool "Block forced environment operations"
628 default n
629 help
630 If defined, don't allow the -f switch to env set override variable
631 access flags.
632
York Sun474ecd22018-06-26 10:03:22 -0700633if SPL_ENV_SUPPORT
634config SPL_ENV_IS_NOWHERE
635 bool "SPL Environment is not stored"
636 default y if ENV_IS_NOWHERE
637 help
638 Similar to ENV_IS_NOWHERE, used for SPL environment.
639
640config SPL_ENV_IS_IN_MMC
641 bool "SPL Environment in an MMC device"
642 depends on !SPL_ENV_IS_NOWHERE
643 depends on ENV_IS_IN_MMC
644 default y
645 help
646 Similar to ENV_IS_IN_MMC, used for SPL environment.
647
648config SPL_ENV_IS_IN_FAT
649 bool "SPL Environment is in a FAT filesystem"
650 depends on !SPL_ENV_IS_NOWHERE
651 depends on ENV_IS_IN_FAT
652 default y
653 help
654 Similar to ENV_IS_IN_FAT, used for SPL environment.
655
656config SPL_ENV_IS_IN_EXT4
657 bool "SPL Environment is in a EXT4 filesystem"
658 depends on !SPL_ENV_IS_NOWHERE
659 depends on ENV_IS_IN_EXT4
660 default y
661 help
662 Similar to ENV_IS_IN_EXT4, used for SPL environment.
663
664config SPL_ENV_IS_IN_NAND
665 bool "SPL Environment in a NAND device"
666 depends on !SPL_ENV_IS_NOWHERE
667 depends on ENV_IS_IN_NAND
668 default y
669 help
670 Similar to ENV_IS_IN_NAND, used for SPL environment.
671
672config SPL_ENV_IS_IN_SPI_FLASH
673 bool "SPL Environment is in SPI flash"
674 depends on !SPL_ENV_IS_NOWHERE
675 depends on ENV_IS_IN_SPI_FLASH
676 default y
677 help
678 Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
679
680config SPL_ENV_IS_IN_FLASH
681 bool "SPL Environment in flash memory"
682 depends on !SPL_ENV_IS_NOWHERE
683 depends on ENV_IS_IN_FLASH
684 default y
685 help
686 Similar to ENV_IS_IN_FLASH, used for SPL environment.
687
688endif
689
690if TPL_ENV_SUPPORT
691
692config TPL_ENV_IS_NOWHERE
693 bool "TPL Environment is not stored"
694 default y if ENV_IS_NOWHERE
695 help
696 Similar to ENV_IS_NOWHERE, used for TPL environment.
697
698config TPL_ENV_IS_IN_MMC
699 bool "TPL Environment in an MMC device"
700 depends on !TPL_ENV_IS_NOWHERE
701 depends on ENV_IS_IN_MMC
702 default y
703 help
704 Similar to ENV_IS_IN_MMC, used for TPL environment.
705
706config TPL_ENV_IS_IN_FAT
707 bool "TPL Environment is in a FAT filesystem"
708 depends on !TPL_ENV_IS_NOWHERE
709 depends on ENV_IS_IN_FAT
710 default y
711 help
712 Similar to ENV_IS_IN_FAT, used for TPL environment.
713
714config TPL_ENV_IS_IN_EXT4
715 bool "TPL Environment is in a EXT4 filesystem"
716 depends on !TPL_ENV_IS_NOWHERE
717 depends on ENV_IS_IN_EXT4
718 default y
719 help
720 Similar to ENV_IS_IN_EXT4, used for TPL environment.
721
722config TPL_ENV_IS_IN_NAND
723 bool "TPL Environment in a NAND device"
724 depends on !TPL_ENV_IS_NOWHERE
725 depends on ENV_IS_IN_NAND
726 default y
727 help
728 Similar to ENV_IS_IN_NAND, used for TPL environment.
729
730config TPL_ENV_IS_IN_SPI_FLASH
731 bool "TPL Environment is in SPI flash"
732 depends on !TPL_ENV_IS_NOWHERE
733 depends on ENV_IS_IN_SPI_FLASH
734 default y
735 help
736 Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
737
738config TPL_ENV_IS_IN_FLASH
739 bool "TPL Environment in flash memory"
740 depends on !TPL_ENV_IS_NOWHERE
741 depends on ENV_IS_IN_FLASH
742 default y
743 help
744 Similar to ENV_IS_IN_FLASH, used for TPL environment.
745
746endif
747
Simon Glass0649cd02017-08-03 12:21:49 -0600748endmenu