blob: dcc525d4edef5d832decd6af499fc92bad8fe549 [file] [log] [blame]
Simon Glass547cb402017-08-03 12:21:49 -06001menu "Environment"
2
Rasmus Villemoesecdf0742019-12-15 22:29:39 +00003config ENV_SUPPORT
4 def_bool y
5
Rasmus Villemoes21294752020-02-19 09:47:39 +00006config SAVEENV
7 def_bool y if CMD_SAVEENV
8
Adam Ford710966e2020-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 Glass87551f12017-08-03 12:21:59 -060015config ENV_IS_NOWHERE
16 bool "Environment is not stored"
Patrice Chotardaf755812019-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 Glass87551f12017-08-03 12:21:59 -060023 help
24 Define this if you don't want to or can't have an environment stored
Shyam Sainiefe757c2018-06-07 19:47:19 +053025 on a storage medium. In this case the environment will still exist
Simon Glass87551f12017-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 Glass547cb402017-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 Glass547cb402017-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 Glass547cb402017-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 Ripard7569e182018-01-23 21:17:01 +010064 default y if ARCH_BCM283X
Maxime Ripard8b7dcd32018-01-23 21:17:04 +010065 default y if ARCH_SUNXI && MMC
Maxime Ripard7569e182018-01-23 21:17:01 +010066 default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
Tuomas Tynkkynendc256cd2018-01-05 02:45:19 +020067 select FS_FAT
Simon Glass547cb402017-08-03 12:21:49 -060068 select FAT_WRITE
69 help
Simon Glassea8bf842017-08-03 12:21:50 -060070 Define this if you want to use the FAT file system for the environment.
Simon Glass547cb402017-08-03 12:21:49 -060071
Jorge Ramirez-Ortiz4a4c26d2018-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 Glass547cb402017-08-03 12:21:49 -060079config ENV_IS_IN_FLASH
80 bool "Environment in flash memory"
81 depends on !CHAIN_OF_TRUST
Maxime Ripard7569e182018-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 Glass547cb402017-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 Glass547cb402017-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 Ripard662a1ec2018-01-23 21:17:00 +0100160 depends on MMC
Maxime Ripard7569e182018-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 Glass547cb402017-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 Glass547cb402017-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 Schuchardtaefbfe12018-03-17 22:53:11 +0000279 bool "Environment is in remote memory space"
Simon Glass547cb402017-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 Rinie5289a72019-05-29 17:01:28 -0400295 depends on !CHAIN_OF_TRUST && SPI
Maxime Ripard7569e182018-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 Glass547cb402017-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 Delaunayf8e932e2019-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 Glass547cb402017-08-03 12:21:49 -0600332
Patrick Delaunayf8e932e2019-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 Glass547cb402017-08-03 12:21:49 -0600338
Patrick Delaunayf8e932e2019-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 Glass547cb402017-08-03 12:21:49 -0600345
Patrick Delaunayf8e932e2019-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 Glass547cb402017-08-03 12:21:49 -0600351
Patrick Delaunayf8e932e2019-02-27 15:20:38 +0100352config USE_ENV_SPI_MAX_HZ
Marek Vasutdfe74622019-05-04 19:10:05 +0200353 bool "SPI flash max frequency for environment"
Patrick Delaunayf8e932e2019-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.
358
359config ENV_SPI_MAX_HZ
Marek Vasutdfe74622019-05-04 19:10:05 +0200360 int "Value of SPI flash max frequency for environment"
Patrick Delaunayf8e932e2019-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.
Simon Glass547cb402017-08-03 12:21:49 -0600370
Patrick Delaunayf8e932e2019-02-27 15:20:38 +0100371config 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 Glass547cb402017-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 Raynal27271b62019-10-03 19:50:12 +0200381 depends on MTD_UBI
382 depends on CMD_UBI
Simon Glass547cb402017-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 Rini4bb26a42019-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 Glass547cb402017-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 Simek5227e1e2020-02-25 15:50:33 +0100416 default "mmc"
Simon Glass547cb402017-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 Ripard8b7dcd32018-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 Glass547cb402017-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 Woodhouse93365392020-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 Glass547cb402017-08-03 12:21:49 -0600447config ENV_FAT_FILE
Shyam Sainiefe757c2018-06-07 19:47:19 +0530448 string "Name of the FAT file to use for the environment"
Simon Glass547cb402017-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-Ortiz4a4c26d2018-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 Sainiefe757c2018-06-07 19:47:19 +0530480 string "Name of the EXT4 file to use for the environment"
Jorge Ramirez-Ortiz4a4c26d2018-01-10 11:33:48 +0100481 depends on ENV_IS_IN_EXT4
Patrick Delaunay955b6712020-07-28 11:51:14 +0200482 default "/uboot.env"
Jorge Ramirez-Ortiz4a4c26d2018-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 Rini5cd7ece2019-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 Glass547cb402017-08-03 12:21:49 -0600501
502config ENV_OFFSET
Tom Rini5cd7ece2019-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 Tekic4ec2262019-12-21 13:24:35 +0530506 default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
Jagan Teki68397572019-12-21 13:24:36 +0530507 default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
Simon Glass547cb402017-08-03 12:21:49 -0600508 default 0x88000 if ARCH_SUNXI
Michal Simeke93ef192018-07-19 08:45:45 +0200509 default 0xE0000 if ARCH_ZYNQ
510 default 0x1E00000 if ARCH_ZYNQMP
T Karthik Reddy76770302019-08-05 16:18:57 +0530511 default 0x7F40000 if ARCH_VERSAL
Alexey Brodkin07dfc092019-01-15 11:42:48 +0300512 default 0 if ARC
Markus Klotzbuecher7bd60e62019-05-15 15:15:54 +0200513 default 0x140000 if ARCH_AT91
514 default 0x260000 if ARCH_OMAP2PLUS
Varalaxmi Bingi52e79212020-02-05 03:58:20 -0700515 default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
Simon Glass547cb402017-08-03 12:21:49 -0600516 help
517 Offset from the start of the device (or partition)
518
Tom Rini5cd7ece2019-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 Glass547cb402017-08-03 12:21:49 -0600527config ENV_SIZE
528 hex "Environment Size"
Michal Simeke93ef192018-07-19 08:45:45 +0200529 default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
Markus Klotzbuecher7bd60e62019-05-15 15:15:54 +0200530 default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
Jagan Tekic4ec2262019-12-21 13:24:35 +0530531 default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
Jagan Teki68397572019-12-21 13:24:36 +0530532 default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
Jagan Tekic4ec2262019-12-21 13:24:35 +0530533 default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
Alexey Brodkin07dfc092019-01-15 11:42:48 +0300534 default 0x4000 if ARC
Markus Klotzbuecher7bd60e62019-05-15 15:15:54 +0200535 default 0x1f000
Simon Glass547cb402017-08-03 12:21:49 -0600536 help
537 Size of the environment storage area
538
Michal Simeke93ef192018-07-19 08:45:45 +0200539config ENV_SECT_SIZE
540 hex "Environment Sector-Size"
Tom Rini5cd7ece2019-11-18 20:02:10 -0500541 depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
Jagan Teki68397572019-12-21 13:24:36 +0530542 default 0x2000 if ARCH_ROCKCHIP
T Karthik Reddy76770302019-08-05 16:18:57 +0530543 default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
Markus Klotzbuecher7bd60e62019-05-15 15:15:54 +0200544 default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
Varalaxmi Bingi52e79212020-02-05 03:58:20 -0700545 default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
Michal Simeke93ef192018-07-19 08:45:45 +0200546 help
547 Size of the sector containing the environment.
548
Simon Glass547cb402017-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 Klotzbuecher975bcde2019-05-15 15:15:53 +0200561config ENV_UBI_VOLUME_REDUND
562 string "UBI redundant volume name"
Tom Rini4bb26a42019-11-10 11:28:03 -0500563 depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
Markus Klotzbuecher975bcde2019-05-15 15:15:53 +0200564 help
565 Name of the redundant volume that you want to store the environment in.
566
Hamish Guthrie674ab242019-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 Rinica63e712019-11-12 22:46:36 -0500574config SYS_RELOC_GD_ENV_ADDR
Patrick Delaunay9f757532020-06-10 19:28:42 +0200575 bool "Relocate gd->env_addr"
Tom Rinica63e712019-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 Villemoes14c71142018-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 Kiernana410d6e2018-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 Panait86ccd752020-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 Vasutb7f3f232020-05-22 01:10:14 +0200617config ENV_ACCESS_IGNORE_FORCE
618 bool "Block forced environment operations"
619 default n
620 help
621 If defined, don't allow the -f switch to env set override variable
622 access flags.
623
York Sun187da8d2018-06-26 10:03:22 -0700624if SPL_ENV_SUPPORT
625config SPL_ENV_IS_NOWHERE
626 bool "SPL Environment is not stored"
627 default y if ENV_IS_NOWHERE
628 help
629 Similar to ENV_IS_NOWHERE, used for SPL environment.
630
631config SPL_ENV_IS_IN_MMC
632 bool "SPL Environment in an MMC device"
633 depends on !SPL_ENV_IS_NOWHERE
634 depends on ENV_IS_IN_MMC
635 default y
636 help
637 Similar to ENV_IS_IN_MMC, used for SPL environment.
638
639config SPL_ENV_IS_IN_FAT
640 bool "SPL Environment is in a FAT filesystem"
641 depends on !SPL_ENV_IS_NOWHERE
642 depends on ENV_IS_IN_FAT
643 default y
644 help
645 Similar to ENV_IS_IN_FAT, used for SPL environment.
646
647config SPL_ENV_IS_IN_EXT4
648 bool "SPL Environment is in a EXT4 filesystem"
649 depends on !SPL_ENV_IS_NOWHERE
650 depends on ENV_IS_IN_EXT4
651 default y
652 help
653 Similar to ENV_IS_IN_EXT4, used for SPL environment.
654
655config SPL_ENV_IS_IN_NAND
656 bool "SPL Environment in a NAND device"
657 depends on !SPL_ENV_IS_NOWHERE
658 depends on ENV_IS_IN_NAND
659 default y
660 help
661 Similar to ENV_IS_IN_NAND, used for SPL environment.
662
663config SPL_ENV_IS_IN_SPI_FLASH
664 bool "SPL Environment is in SPI flash"
665 depends on !SPL_ENV_IS_NOWHERE
666 depends on ENV_IS_IN_SPI_FLASH
667 default y
668 help
669 Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
670
671config SPL_ENV_IS_IN_FLASH
672 bool "SPL Environment in flash memory"
673 depends on !SPL_ENV_IS_NOWHERE
674 depends on ENV_IS_IN_FLASH
675 default y
676 help
677 Similar to ENV_IS_IN_FLASH, used for SPL environment.
678
679endif
680
681if TPL_ENV_SUPPORT
682
683config TPL_ENV_IS_NOWHERE
684 bool "TPL Environment is not stored"
685 default y if ENV_IS_NOWHERE
686 help
687 Similar to ENV_IS_NOWHERE, used for TPL environment.
688
689config TPL_ENV_IS_IN_MMC
690 bool "TPL Environment in an MMC device"
691 depends on !TPL_ENV_IS_NOWHERE
692 depends on ENV_IS_IN_MMC
693 default y
694 help
695 Similar to ENV_IS_IN_MMC, used for TPL environment.
696
697config TPL_ENV_IS_IN_FAT
698 bool "TPL Environment is in a FAT filesystem"
699 depends on !TPL_ENV_IS_NOWHERE
700 depends on ENV_IS_IN_FAT
701 default y
702 help
703 Similar to ENV_IS_IN_FAT, used for TPL environment.
704
705config TPL_ENV_IS_IN_EXT4
706 bool "TPL Environment is in a EXT4 filesystem"
707 depends on !TPL_ENV_IS_NOWHERE
708 depends on ENV_IS_IN_EXT4
709 default y
710 help
711 Similar to ENV_IS_IN_EXT4, used for TPL environment.
712
713config TPL_ENV_IS_IN_NAND
714 bool "TPL Environment in a NAND device"
715 depends on !TPL_ENV_IS_NOWHERE
716 depends on ENV_IS_IN_NAND
717 default y
718 help
719 Similar to ENV_IS_IN_NAND, used for TPL environment.
720
721config TPL_ENV_IS_IN_SPI_FLASH
722 bool "TPL Environment is in SPI flash"
723 depends on !TPL_ENV_IS_NOWHERE
724 depends on ENV_IS_IN_SPI_FLASH
725 default y
726 help
727 Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
728
729config TPL_ENV_IS_IN_FLASH
730 bool "TPL Environment in flash memory"
731 depends on !TPL_ENV_IS_NOWHERE
732 depends on ENV_IS_IN_FLASH
733 default y
734 help
735 Similar to ENV_IS_IN_FLASH, used for TPL environment.
736
737endif
738
Simon Glass547cb402017-08-03 12:21:49 -0600739endmenu