blob: 67ce93061b7d8c485d6ccfd69686b620a8489006 [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
Michal Simek07661782020-08-19 10:44:23 +020075 select FS_EXT4
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +010076 select EXT4_WRITE
77 help
78 Define this if you want to use the EXT4 file system for the environment.
79
Simon Glass0649cd02017-08-03 12:21:49 -060080config ENV_IS_IN_FLASH
81 bool "Environment in flash memory"
82 depends on !CHAIN_OF_TRUST
Maxime Ripardfb694642018-01-23 21:17:01 +010083 default y if ARCH_CINTEGRATOR
84 default y if ARCH_INTEGRATOR_CP
85 default y if M548x || M547x || M5282 || MCF547x_8x
86 default y if MCF532x || MCF52x2
87 default y if MPC86xx || MPC83xx
88 default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
89 default y if SH && !CPU_SH4
Simon Glass0649cd02017-08-03 12:21:49 -060090 help
91 Define this if you have a flash device which you want to use for the
92 environment.
93
94 a) The environment occupies one whole flash sector, which is
95 "embedded" in the text segment with the U-Boot code. This
96 happens usually with "bottom boot sector" or "top boot
97 sector" type flash chips, which have several smaller
98 sectors at the start or the end. For instance, such a
99 layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
100 such a case you would place the environment in one of the
101 4 kB sectors - with U-Boot code before and after it. With
102 "top boot sector" type flash chips, you would put the
103 environment in one of the last sectors, leaving a gap
104 between U-Boot and the environment.
105
106 CONFIG_ENV_OFFSET:
107
108 Offset of environment data (variable area) to the
109 beginning of flash memory; for instance, with bottom boot
110 type flash chips the second sector can be used: the offset
111 for this sector is given here.
112
113 CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
114
115 CONFIG_ENV_ADDR:
116
117 This is just another way to specify the start address of
118 the flash sector containing the environment (instead of
119 CONFIG_ENV_OFFSET).
120
121 CONFIG_ENV_SECT_SIZE:
122
123 Size of the sector containing the environment.
124
125
126 b) Sometimes flash chips have few, equal sized, BIG sectors.
127 In such a case you don't want to spend a whole sector for
128 the environment.
129
130 CONFIG_ENV_SIZE:
131
132 If you use this in combination with CONFIG_ENV_IS_IN_FLASH
133 and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
134 of this flash sector for the environment. This saves
135 memory for the RAM copy of the environment.
136
137 It may also save flash memory if you decide to use this
138 when your environment is "embedded" within U-Boot code,
139 since then the remainder of the flash sector could be used
140 for U-Boot code. It should be pointed out that this is
141 STRONGLY DISCOURAGED from a robustness point of view:
142 updating the environment in flash makes it always
143 necessary to erase the WHOLE sector. If something goes
144 wrong before the contents has been restored from a copy in
145 RAM, your target system will be dead.
146
147 CONFIG_ENV_ADDR_REDUND
Simon Glass0649cd02017-08-03 12:21:49 -0600148
149 These settings describe a second storage area used to hold
150 a redundant copy of the environment data, so that there is
151 a valid backup copy in case there is a power failure during
152 a "saveenv" operation.
153
154 BE CAREFUL! Any changes to the flash layout, and some changes to the
155 source code will make it necessary to adapt <board>/u-boot.lds*
156 accordingly!
157
158config ENV_IS_IN_MMC
159 bool "Environment in an MMC device"
160 depends on !CHAIN_OF_TRUST
Maxime Ripardd282a1d2018-01-23 21:17:00 +0100161 depends on MMC
Maxime Ripardfb694642018-01-23 21:17:01 +0100162 default y if ARCH_EXYNOS4
163 default y if MX6SX || MX7D
164 default y if TEGRA30 || TEGRA124
165 default y if TEGRA_ARMV8_COMMON
Simon Glass0649cd02017-08-03 12:21:49 -0600166 help
167 Define this if you have an MMC device which you want to use for the
168 environment.
169
170 CONFIG_SYS_MMC_ENV_DEV:
171
172 Specifies which MMC device the environment is stored in.
173
174 CONFIG_SYS_MMC_ENV_PART (optional):
175
176 Specifies which MMC partition the environment is stored in. If not
177 set, defaults to partition 0, the user area. Common values might be
178 1 (first MMC boot partition), 2 (second MMC boot partition).
179
180 CONFIG_ENV_OFFSET:
181 CONFIG_ENV_SIZE:
182
183 These two #defines specify the offset and size of the environment
184 area within the specified MMC device.
185
186 If offset is positive (the usual case), it is treated as relative to
187 the start of the MMC partition. If offset is negative, it is treated
188 as relative to the end of the MMC partition. This can be useful if
189 your board may be fitted with different MMC devices, which have
190 different sizes for the MMC partitions, and you always want the
191 environment placed at the very end of the partition, to leave the
192 maximum possible space before it, to store other data.
193
194 These two values are in units of bytes, but must be aligned to an
195 MMC sector boundary.
196
197 CONFIG_ENV_OFFSET_REDUND (optional):
198
199 Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
200 hold a redundant copy of the environment data. This provides a
201 valid backup copy in case the other copy is corrupted, e.g. due
202 to a power failure during a "saveenv" operation.
203
204 This value may also be positive or negative; this is handled in the
205 same way as CONFIG_ENV_OFFSET.
206
207 This value is also in units of bytes, but must also be aligned to
208 an MMC sector boundary.
209
Simon Glass0649cd02017-08-03 12:21:49 -0600210config ENV_IS_IN_NAND
211 bool "Environment in a NAND device"
212 depends on !CHAIN_OF_TRUST
213 help
214 Define this if you have a NAND device which you want to use for the
215 environment.
216
217 - CONFIG_ENV_OFFSET:
218 - CONFIG_ENV_SIZE:
219
220 These two #defines specify the offset and size of the environment
221 area within the first NAND device. CONFIG_ENV_OFFSET must be
222 aligned to an erase block boundary.
223
224 - CONFIG_ENV_OFFSET_REDUND (optional):
225
226 This setting describes a second storage area of CONFIG_ENV_SIZE
227 size used to hold a redundant copy of the environment data, so
228 that there is a valid backup copy in case there is a power failure
229 during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
230 aligned to an erase block boundary.
231
232 - CONFIG_ENV_RANGE (optional):
233
234 Specifies the length of the region in which the environment
235 can be written. This should be a multiple of the NAND device's
236 block size. Specifying a range with more erase blocks than
237 are needed to hold CONFIG_ENV_SIZE allows bad blocks within
238 the range to be avoided.
239
240 - CONFIG_ENV_OFFSET_OOB (optional):
241
242 Enables support for dynamically retrieving the offset of the
243 environment from block zero's out-of-band data. The
244 "nand env.oob" command can be used to record this offset.
245 Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
246 using CONFIG_ENV_OFFSET_OOB.
247
248config ENV_IS_IN_NVRAM
249 bool "Environment in a non-volatile RAM"
250 depends on !CHAIN_OF_TRUST
251 help
252 Define this if you have some non-volatile memory device
253 (NVRAM, battery buffered SRAM) which you want to use for the
254 environment.
255
256 - CONFIG_ENV_ADDR:
257 - CONFIG_ENV_SIZE:
258
259 These two #defines are used to determine the memory area you
260 want to use for environment. It is assumed that this memory
261 can just be read and written to, without any special
262 provision.
263
264config ENV_IS_IN_ONENAND
265 bool "Environment is in OneNAND"
266 depends on !CHAIN_OF_TRUST
267 help
268 Define this if you want to put your local device's environment in
269 OneNAND.
270
271 - CONFIG_ENV_ADDR:
272 - CONFIG_ENV_SIZE:
273
274 These two #defines are used to determine the device range you
275 want to use for environment. It is assumed that this memory
276 can just be read and written to, without any special
277 provision.
278
279config ENV_IS_IN_REMOTE
Heinrich Schuchardt646f1ab2018-03-17 22:53:11 +0000280 bool "Environment is in remote memory space"
Simon Glass0649cd02017-08-03 12:21:49 -0600281 depends on !CHAIN_OF_TRUST
282 help
283 Define this if you have a remote memory space which you
284 want to use for the local device's environment.
285
286 - CONFIG_ENV_ADDR:
287 - CONFIG_ENV_SIZE:
288
289 These two #defines specify the address and size of the
290 environment area within the remote memory space. The
291 local device can get the environment from remote memory
292 space by SRIO or PCIE links.
293
294config ENV_IS_IN_SPI_FLASH
295 bool "Environment is in SPI flash"
Tom Rinia4298dd2019-05-29 17:01:28 -0400296 depends on !CHAIN_OF_TRUST && SPI
Maxime Ripardfb694642018-01-23 21:17:01 +0100297 default y if ARMADA_XP
298 default y if INTEL_BAYTRAIL
299 default y if INTEL_BRASWELL
300 default y if INTEL_BROADWELL
301 default y if NORTHBRIDGE_INTEL_IVYBRIDGE
302 default y if INTEL_QUARK
303 default y if INTEL_QUEENSBAY
Simon Glass0649cd02017-08-03 12:21:49 -0600304 help
305 Define this if you have a SPI Flash memory device which you
306 want to use for the environment.
307
308 - CONFIG_ENV_OFFSET:
309 - CONFIG_ENV_SIZE:
310
311 These two #defines specify the offset and size of the
312 environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
313 aligned to an erase sector boundary.
314
315 - CONFIG_ENV_SECT_SIZE:
316
317 Define the SPI flash's sector size.
318
319 - CONFIG_ENV_OFFSET_REDUND (optional):
320
321 This setting describes a second storage area of CONFIG_ENV_SIZE
322 size used to hold a redundant copy of the environment data, so
323 that there is a valid backup copy in case there is a power failure
324 during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
325 aligned to an erase sector boundary.
326
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100327config USE_ENV_SPI_BUS
328 bool "SPI flash bus for environment"
329 depends on ENV_IS_IN_SPI_FLASH
330 help
331 Force the SPI bus for environment.
332 If not defined, use CONFIG_SF_DEFAULT_BUS.
Simon Glass0649cd02017-08-03 12:21:49 -0600333
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100334config ENV_SPI_BUS
335 int "Value of SPI flash bus for environment"
336 depends on USE_ENV_SPI_BUS
337 help
338 Value the SPI bus and chip select for environment.
Simon Glass0649cd02017-08-03 12:21:49 -0600339
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100340config USE_ENV_SPI_CS
341 bool "SPI flash chip select for environment"
342 depends on ENV_IS_IN_SPI_FLASH
343 help
344 Force the SPI chip select for environment.
345 If not defined, use CONFIG_SF_DEFAULT_CS.
Simon Glass0649cd02017-08-03 12:21:49 -0600346
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100347config ENV_SPI_CS
348 int "Value of SPI flash chip select for environment"
349 depends on USE_ENV_SPI_CS
350 help
351 Value of the SPI chip select for environment.
Simon Glass0649cd02017-08-03 12:21:49 -0600352
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100353config USE_ENV_SPI_MAX_HZ
Marek Vasutdd309612019-05-04 19:10:05 +0200354 bool "SPI flash max frequency for environment"
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100355 depends on ENV_IS_IN_SPI_FLASH
356 help
357 Force the SPI max work clock for environment.
358 If not defined, use CONFIG_SF_DEFAULT_SPEED.
Simon Glass0649cd02017-08-03 12:21:49 -0600359
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100360config ENV_SPI_MAX_HZ
Marek Vasutdd309612019-05-04 19:10:05 +0200361 int "Value of SPI flash max frequency for environment"
Patrick Delaunayabe66b12019-02-27 15:20:38 +0100362 depends on USE_ENV_SPI_MAX_HZ
363 help
364 Value of the SPI max work clock for environment.
365
366config USE_ENV_SPI_MODE
367 bool "SPI flash mode for environment"
368 depends on ENV_IS_IN_SPI_FLASH
369 help
370 Force the SPI work mode for environment.
371
372config ENV_SPI_MODE
373 hex "Value of SPI flash work mode for environment"
374 depends on USE_ENV_SPI_MODE
375 help
376 Value of the SPI work mode for environment.
377 See include/spi.h for value.
Simon Glass0649cd02017-08-03 12:21:49 -0600378
Heiko Schocher92765f452020-10-10 10:28:05 +0200379config ENV_SPI_EARLY
380 bool "Access Environment in SPI flashes before relocation"
381 depends on ENV_IS_IN_SPI_FLASH
382 help
383 Enable this if you want to use Environment in SPI flash
384 before relocation. Call env_init() and than you can use
385 env_get_f() for accessing Environment variables.
386
Simon Glass0649cd02017-08-03 12:21:49 -0600387config ENV_IS_IN_UBI
388 bool "Environment in a UBI volume"
389 depends on !CHAIN_OF_TRUST
Miquel Raynal00e27042019-10-03 19:50:12 +0200390 depends on MTD_UBI
391 depends on CMD_UBI
Simon Glass0649cd02017-08-03 12:21:49 -0600392 help
393 Define this if you have an UBI volume that you want to use for the
394 environment. This has the benefit of wear-leveling the environment
395 accesses, which is important on NAND.
396
397 - CONFIG_ENV_UBI_PART:
398
399 Define this to a string that is the mtd partition containing the UBI.
400
401 - CONFIG_ENV_UBI_VOLUME:
402
403 Define this to the name of the volume that you want to store the
404 environment in.
405
406 - CONFIG_ENV_UBI_VOLUME_REDUND:
407
408 Define this to the name of another volume to store a second copy of
409 the environment in. This will enable redundant environments in UBI.
410 It is assumed that both volumes are in the same MTD partition.
411
Tom Rinicb6617a2019-11-10 11:28:03 -0500412config SYS_REDUNDAND_ENVIRONMENT
413 bool "Enable redundant environment support"
414 depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
415 ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
416 help
417 Normally, the environemt is stored in a single location. By
418 selecting this option, you can then define where to hold a redundant
419 copy of the environment data, so that there is a valid backup copy in
420 case there is a power failure during a "saveenv" operation.
421
Simon Glass0649cd02017-08-03 12:21:49 -0600422config ENV_FAT_INTERFACE
423 string "Name of the block device for the environment"
424 depends on ENV_IS_IN_FAT
Michal Simek8d782112020-02-25 15:50:33 +0100425 default "mmc"
Simon Glass0649cd02017-08-03 12:21:49 -0600426 help
427 Define this to a string that is the name of the block device.
428
429config ENV_FAT_DEVICE_AND_PART
430 string "Device and partition for where to store the environemt in FAT"
431 depends on ENV_IS_IN_FAT
432 default "0:1" if TI_COMMON_CMD_OPTIONS
Michal Simek7fa8d5e2020-08-24 13:35:53 +0200433 default "0:auto" if ARCH_ZYNQ || ARCH_ZYNQMP
Maxime Ripard0163c912018-01-23 21:17:04 +0100434 default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
435 default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
Simon Glass0649cd02017-08-03 12:21:49 -0600436 default "0" if ARCH_AT91
437 help
438 Define this to a string to specify the partition of the device. It can
439 be as following:
440
441 "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
442 - "D:P": device D partition P. Error occurs if device D has no
443 partition table.
444 - "D:0": device D.
445 - "D" or "D:": device D partition 1 if device D has partition
446 table, or the whole device D if has no partition
447 table.
448 - "D:auto": first partition in device D with bootable flag set.
449 If none, first valid partition in device D. If no
450 partition table then means device D.
451
David Woodhouse6731bef2020-06-19 23:07:17 +0100452 If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted,
453 leaving the string starting with a colon, and the boot device will
454 be used.
455
Simon Glass0649cd02017-08-03 12:21:49 -0600456config ENV_FAT_FILE
Shyam Saini919d25c2018-06-07 19:47:19 +0530457 string "Name of the FAT file to use for the environment"
Simon Glass0649cd02017-08-03 12:21:49 -0600458 depends on ENV_IS_IN_FAT
459 default "uboot.env"
460 help
461 It's a string of the FAT file name. This file use to store the
462 environment.
463
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100464config ENV_EXT4_INTERFACE
465 string "Name of the block device for the environment"
466 depends on ENV_IS_IN_EXT4
467 help
468 Define this to a string that is the name of the block device.
469
470config ENV_EXT4_DEVICE_AND_PART
471 string "Device and partition for where to store the environemt in EXT4"
472 depends on ENV_IS_IN_EXT4
473 help
474 Define this to a string to specify the partition of the device. It can
475 be as following:
476
477 "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
478 - "D:P": device D partition P. Error occurs if device D has no
479 partition table.
480 - "D:0": device D.
481 - "D" or "D:": device D partition 1 if device D has partition
482 table, or the whole device D if has no partition
483 table.
484 - "D:auto": first partition in device D with bootable flag set.
485 If none, first valid partition in device D. If no
486 partition table then means device D.
487
David Woodhouseb0493bb2020-08-04 10:05:47 +0100488 If ENV_EXT4_INTERFACE is set to "mmc" then device 'D' can be omitted,
489 leaving the string starting with a colon, and the boot device will
490 be used.
491
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100492config ENV_EXT4_FILE
Shyam Saini919d25c2018-06-07 19:47:19 +0530493 string "Name of the EXT4 file to use for the environment"
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100494 depends on ENV_IS_IN_EXT4
Patrick Delaunay87dac742020-07-28 11:51:14 +0200495 default "/uboot.env"
Jorge Ramirez-Ortiz1087a792018-01-10 11:33:48 +0100496 help
497 It's a string of the EXT4 file name. This file use to store the
498 environment (explicit path to the file)
499
Tom Rinia09fea12019-11-18 20:02:10 -0500500config ENV_ADDR
501 hex "Environment address"
502 depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \
503 ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH
504 default 0x0 if ENV_IS_IN_SPI_FLASH
505 help
506 Offset from the start of the device (or partition)
507
508config ENV_ADDR_REDUND
509 hex "Redundant environment address"
510 depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT
511 help
512 Offset from the start of the device (or partition) of the redundant
513 environment location.
Simon Glass0649cd02017-08-03 12:21:49 -0600514
515config ENV_OFFSET
Tom Rinia09fea12019-11-18 20:02:10 -0500516 hex "Environment offset"
517 depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
518 ENV_IS_IN_SPI_FLASH
Jagan Tekid7b433e2019-12-21 13:24:35 +0530519 default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
Jagan Teki54b85a92019-12-21 13:24:36 +0530520 default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
Simon Glass0649cd02017-08-03 12:21:49 -0600521 default 0x88000 if ARCH_SUNXI
Michal Simek4aee6242018-07-19 08:45:45 +0200522 default 0xE0000 if ARCH_ZYNQ
523 default 0x1E00000 if ARCH_ZYNQMP
T Karthik Reddyf8c0f9f2019-08-05 16:18:57 +0530524 default 0x7F40000 if ARCH_VERSAL
Alexey Brodkin70b5ea72019-01-15 11:42:48 +0300525 default 0 if ARC
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200526 default 0x140000 if ARCH_AT91
527 default 0x260000 if ARCH_OMAP2PLUS
Varalaxmi Bingi63e988e2020-02-05 03:58:20 -0700528 default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
Simon Glass0649cd02017-08-03 12:21:49 -0600529 help
530 Offset from the start of the device (or partition)
531
Tom Rinia09fea12019-11-18 20:02:10 -0500532config ENV_OFFSET_REDUND
533 hex "Redundant environment offset"
534 depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
535 ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
536 help
537 Offset from the start of the device (or partition) of the redundant
538 environment location.
539
Simon Glass0649cd02017-08-03 12:21:49 -0600540config ENV_SIZE
541 hex "Environment Size"
Michal Simek4aee6242018-07-19 08:45:45 +0200542 default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200543 default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
Jagan Tekid7b433e2019-12-21 13:24:35 +0530544 default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
Jagan Teki54b85a92019-12-21 13:24:36 +0530545 default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
Jagan Tekid7b433e2019-12-21 13:24:35 +0530546 default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
Alexey Brodkin70b5ea72019-01-15 11:42:48 +0300547 default 0x4000 if ARC
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200548 default 0x1f000
Simon Glass0649cd02017-08-03 12:21:49 -0600549 help
550 Size of the environment storage area
551
Michal Simek4aee6242018-07-19 08:45:45 +0200552config ENV_SECT_SIZE
553 hex "Environment Sector-Size"
Tom Rinia09fea12019-11-18 20:02:10 -0500554 depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
Jagan Teki54b85a92019-12-21 13:24:36 +0530555 default 0x2000 if ARCH_ROCKCHIP
T Karthik Reddyf8c0f9f2019-08-05 16:18:57 +0530556 default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
Markus Klotzbuechera9221f32019-05-15 15:15:54 +0200557 default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
Varalaxmi Bingi63e988e2020-02-05 03:58:20 -0700558 default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
Michal Simek4aee6242018-07-19 08:45:45 +0200559 help
560 Size of the sector containing the environment.
561
Simon Glass0649cd02017-08-03 12:21:49 -0600562config ENV_UBI_PART
563 string "UBI partition name"
564 depends on ENV_IS_IN_UBI
565 help
566 MTD partition containing the UBI device
567
568config ENV_UBI_VOLUME
569 string "UBI volume name"
570 depends on ENV_IS_IN_UBI
571 help
572 Name of the volume that you want to store the environment in.
573
Markus Klotzbuecherff4818c2019-05-15 15:15:53 +0200574config ENV_UBI_VOLUME_REDUND
575 string "UBI redundant volume name"
Tom Rinicb6617a2019-11-10 11:28:03 -0500576 depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
Markus Klotzbuecherff4818c2019-05-15 15:15:53 +0200577 help
578 Name of the redundant volume that you want to store the environment in.
579
Hamish Guthrie985186d2019-05-15 15:15:55 +0200580config ENV_UBI_VID_OFFSET
581 int "ubi environment VID offset"
582 depends on ENV_IS_IN_UBI
583 default 0
584 help
585 UBI VID offset for environment. If 0, no custom VID offset is used.
586
Tom Rini8d8ee472019-11-12 22:46:36 -0500587config SYS_RELOC_GD_ENV_ADDR
Patrick Delaunay35c26832020-06-10 19:28:42 +0200588 bool "Relocate gd->env_addr"
Tom Rini8d8ee472019-11-12 22:46:36 -0500589 help
590 Relocate the early env_addr pointer so we know it is not inside
591 the binary. Some systems need this and for the rest, it doesn't hurt.
592
Tom Rini7d080772020-07-24 17:14:47 -0400593config SYS_MMC_ENV_DEV
594 int "mmc device number"
595 depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || SYS_LS_PPA_FW_IN_MMC || \
596 CMD_MVEBU_BUBT || FMAN_ENET || QE
597 default 0
598 help
599 MMC device number on the platform where the environment is stored.
600
601config SYS_MMC_ENV_PART
602 int "mmc partition number"
603 depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT
604 default 0
605 help
606 MMC hardware partition device number on the platform where the
607 environment is stored. Note that this is not related to any software
608 defined partition table but instead if we are in the user area, which is
609 partition 0 or the first boot partition, which is 1 or some other defined
610 partition.
611
Rasmus Villemoesf3d8f7d2018-03-20 11:38:45 +0100612config USE_DEFAULT_ENV_FILE
613 bool "Create default environment from file"
614 help
615 Normally, the default environment is automatically generated
616 based on the settings of various CONFIG_* options, as well
617 as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
618 you can instead define the entire default environment in an
619 external file.
620
621config DEFAULT_ENV_FILE
622 string "Path to default environment file"
623 depends on USE_DEFAULT_ENV_FILE
624 help
625 The path containing the default environment. The format is
626 the same as accepted by the mkenvimage tool: lines
627 containing key=value pairs, blank lines and lines beginning
628 with # are ignored.
629
Alex Kiernand9101302018-04-01 16:37:53 +0000630config ENV_VARS_UBOOT_RUNTIME_CONFIG
631 bool "Add run-time information to the environment"
632 help
633 Enable this in order to add variables describing certain
634 run-time determined information about the hardware to the
635 environment. These will be named board_name, board_rev.
636
Ovidiu Panaitb8879f22020-05-06 20:38:42 +0300637config DELAY_ENVIRONMENT
638 bool "Delay environment loading"
639 depends on !OF_CONTROL
640 help
641 Enable this to inhibit loading the environment during board
642 initialization. This can address the security risk of untrusted data
643 being used during boot. Normally the environment is loaded when the
644 board is initialised so that it is available to U-Boot. This inhibits
645 that so that the environment is not available until explicitly loaded
646 later by U-Boot code. With CONFIG_OF_CONTROL this is instead
647 controlled by the value of /config/load-environment.
648
Marek Vasut47f3b1f2020-07-07 20:51:38 +0200649config ENV_APPEND
650 bool "Always append the environment with new data"
651 default n
652 help
653 If defined, the environment hash table is only ever appended with new
654 data, but the existing hash table can never be dropped and reloaded
655 with newly imported data. This may be used in combination with static
656 flags to e.g. to protect variables which must not be modified.
657
Marek Vasutd045cba2020-07-07 20:51:39 +0200658config ENV_WRITEABLE_LIST
659 bool "Permit write access only to listed variables"
660 default n
661 help
662 If defined, only environment variables which explicitly set the 'w'
663 writeable flag can be written and modified at runtime. No variables
664 can be otherwise created, written or imported into the environment.
665
Marek Vasut3ec46992020-05-22 01:10:14 +0200666config ENV_ACCESS_IGNORE_FORCE
667 bool "Block forced environment operations"
668 default n
669 help
670 If defined, don't allow the -f switch to env set override variable
671 access flags.
672
York Sun474ecd22018-06-26 10:03:22 -0700673if SPL_ENV_SUPPORT
674config SPL_ENV_IS_NOWHERE
675 bool "SPL Environment is not stored"
676 default y if ENV_IS_NOWHERE
677 help
678 Similar to ENV_IS_NOWHERE, used for SPL environment.
679
680config SPL_ENV_IS_IN_MMC
681 bool "SPL Environment in an MMC device"
682 depends on !SPL_ENV_IS_NOWHERE
683 depends on ENV_IS_IN_MMC
684 default y
685 help
686 Similar to ENV_IS_IN_MMC, used for SPL environment.
687
688config SPL_ENV_IS_IN_FAT
689 bool "SPL Environment is in a FAT filesystem"
690 depends on !SPL_ENV_IS_NOWHERE
691 depends on ENV_IS_IN_FAT
692 default y
693 help
694 Similar to ENV_IS_IN_FAT, used for SPL environment.
695
696config SPL_ENV_IS_IN_EXT4
697 bool "SPL Environment is in a EXT4 filesystem"
698 depends on !SPL_ENV_IS_NOWHERE
699 depends on ENV_IS_IN_EXT4
700 default y
701 help
702 Similar to ENV_IS_IN_EXT4, used for SPL environment.
703
704config SPL_ENV_IS_IN_NAND
705 bool "SPL Environment in a NAND device"
706 depends on !SPL_ENV_IS_NOWHERE
707 depends on ENV_IS_IN_NAND
708 default y
709 help
710 Similar to ENV_IS_IN_NAND, used for SPL environment.
711
712config SPL_ENV_IS_IN_SPI_FLASH
713 bool "SPL Environment is in SPI flash"
714 depends on !SPL_ENV_IS_NOWHERE
715 depends on ENV_IS_IN_SPI_FLASH
716 default y
717 help
718 Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
719
720config SPL_ENV_IS_IN_FLASH
721 bool "SPL Environment in flash memory"
722 depends on !SPL_ENV_IS_NOWHERE
723 depends on ENV_IS_IN_FLASH
724 default y
725 help
726 Similar to ENV_IS_IN_FLASH, used for SPL environment.
727
728endif
729
730if TPL_ENV_SUPPORT
731
732config TPL_ENV_IS_NOWHERE
733 bool "TPL Environment is not stored"
734 default y if ENV_IS_NOWHERE
735 help
736 Similar to ENV_IS_NOWHERE, used for TPL environment.
737
738config TPL_ENV_IS_IN_MMC
739 bool "TPL Environment in an MMC device"
740 depends on !TPL_ENV_IS_NOWHERE
741 depends on ENV_IS_IN_MMC
742 default y
743 help
744 Similar to ENV_IS_IN_MMC, used for TPL environment.
745
746config TPL_ENV_IS_IN_FAT
747 bool "TPL Environment is in a FAT filesystem"
748 depends on !TPL_ENV_IS_NOWHERE
749 depends on ENV_IS_IN_FAT
750 default y
751 help
752 Similar to ENV_IS_IN_FAT, used for TPL environment.
753
754config TPL_ENV_IS_IN_EXT4
755 bool "TPL Environment is in a EXT4 filesystem"
756 depends on !TPL_ENV_IS_NOWHERE
757 depends on ENV_IS_IN_EXT4
758 default y
759 help
760 Similar to ENV_IS_IN_EXT4, used for TPL environment.
761
762config TPL_ENV_IS_IN_NAND
763 bool "TPL Environment in a NAND device"
764 depends on !TPL_ENV_IS_NOWHERE
765 depends on ENV_IS_IN_NAND
766 default y
767 help
768 Similar to ENV_IS_IN_NAND, used for TPL environment.
769
770config TPL_ENV_IS_IN_SPI_FLASH
771 bool "TPL Environment is in SPI flash"
772 depends on !TPL_ENV_IS_NOWHERE
773 depends on ENV_IS_IN_SPI_FLASH
774 default y
775 help
776 Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
777
778config TPL_ENV_IS_IN_FLASH
779 bool "TPL Environment in flash memory"
780 depends on !TPL_ENV_IS_NOWHERE
781 depends on ENV_IS_IN_FLASH
782 default y
783 help
784 Similar to ENV_IS_IN_FLASH, used for TPL environment.
785
786endif
787
Simon Glassbc438b62020-09-10 20:21:24 -0600788config VERSION_VARIABLE
789 bool "Add a 'ver' environment variable with the U-Boot version"
790 help
791 If this variable is defined, an environment variable
792 named "ver" is created by U-Boot showing the U-Boot
793 version as printed by the "version" command.
794 Any change to this variable will be reverted at the
795 next reset.
796
Simon Glass0649cd02017-08-03 12:21:49 -0600797endmenu