Commit | Line | Data |
---|---|---|
0649cd0d SG |
1 | menu "Environment" |
2 | ||
c8221680 RV |
3 | config ENV_SUPPORT |
4 | def_bool y | |
5 | ||
1d0adee4 RV |
6 | config SAVEENV |
7 | def_bool y if CMD_SAVEENV | |
8 | ||
e91907a1 AF |
9 | config 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 | ||
c1c3fe23 SG |
15 | config ENV_IS_NOWHERE |
16 | bool "Environment is not stored" | |
208bd2b8 PC |
17 | 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 | |
c1c3fe23 SG |
23 | help |
24 | Define this if you don't want to or can't have an environment stored | |
919d25c9 | 25 | on a storage medium. In this case the environment will still exist |
c1c3fe23 SG |
26 | 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 | ||
0649cd0d SG |
30 | config 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 | ||
0649cd0d SG |
43 | 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 | ||
0649cd0d SG |
47 | - 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 | ||
61 | config ENV_IS_IN_FAT | |
62 | bool "Environment is in a FAT filesystem" | |
63 | depends on !CHAIN_OF_TRUST | |
fb69464e | 64 | default y if ARCH_BCM283X |
0163c918 | 65 | default y if ARCH_SUNXI && MMC |
fb69464e | 66 | default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS |
3cd084d3 | 67 | select FS_FAT |
0649cd0d SG |
68 | select FAT_WRITE |
69 | help | |
91d3aa05 | 70 | Define this if you want to use the FAT file system for the environment. |
0649cd0d | 71 | |
1087a794 JRO |
72 | config 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 | ||
0649cd0d SG |
79 | config ENV_IS_IN_FLASH |
80 | bool "Environment in flash memory" | |
81 | depends on !CHAIN_OF_TRUST | |
fb69464e MR |
82 | 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 | |
0649cd0d SG |
89 | 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 | |
0649cd0d SG |
147 | |
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 | ||
157 | config ENV_IS_IN_MMC | |
158 | bool "Environment in an MMC device" | |
159 | depends on !CHAIN_OF_TRUST | |
d282a1db | 160 | depends on MMC |
fb69464e MR |
161 | default y if ARCH_EXYNOS4 |
162 | default y if MX6SX || MX7D | |
163 | default y if TEGRA30 || TEGRA124 | |
164 | default y if TEGRA_ARMV8_COMMON | |
0649cd0d SG |
165 | 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 | ||
0649cd0d SG |
209 | config 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 | ||
247 | config 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 | ||
263 | config 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 | ||
278 | config ENV_IS_IN_REMOTE | |
646f1ab4 | 279 | bool "Environment is in remote memory space" |
0649cd0d SG |
280 | 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 | ||
293 | config ENV_IS_IN_SPI_FLASH | |
294 | bool "Environment is in SPI flash" | |
a4298dda | 295 | depends on !CHAIN_OF_TRUST && SPI |
fb69464e MR |
296 | 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 | |
0649cd0d SG |
303 | 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 | ||
abe66b1b PD |
326 | config 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. | |
332 | ||
333 | config 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. | |
338 | ||
339 | config 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. | |
0649cd0d | 345 | |
abe66b1b PD |
346 | config 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. | |
0649cd0d | 351 | |
abe66b1b | 352 | config USE_ENV_SPI_MAX_HZ |
dd30961c | 353 | bool "SPI flash max frequency for environment" |
abe66b1b PD |
354 | 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. | |
0649cd0d | 358 | |
abe66b1b | 359 | config ENV_SPI_MAX_HZ |
dd30961c | 360 | int "Value of SPI flash max frequency for environment" |
abe66b1b PD |
361 | depends on USE_ENV_SPI_MAX_HZ |
362 | help | |
363 | Value of the SPI max work clock for environment. | |
0649cd0d | 364 | |
abe66b1b PD |
365 | config 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. | |
0649cd0d | 370 | |
abe66b1b PD |
371 | config 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. | |
0649cd0d SG |
377 | |
378 | config ENV_IS_IN_UBI | |
379 | bool "Environment in a UBI volume" | |
380 | depends on !CHAIN_OF_TRUST | |
00e27047 MR |
381 | depends on MTD_UBI |
382 | depends on CMD_UBI | |
0649cd0d SG |
383 | 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 | ||
cb6617a7 TR |
403 | config 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 | ||
0649cd0d SG |
413 | config ENV_FAT_INTERFACE |
414 | string "Name of the block device for the environment" | |
415 | depends on ENV_IS_IN_FAT | |
8d782118 | 416 | default "mmc" |
0649cd0d SG |
417 | help |
418 | Define this to a string that is the name of the block device. | |
419 | ||
420 | config 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 | |
0163c918 MR |
425 | default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1 |
426 | default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1 | |
0649cd0d SG |
427 | 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 | ||
6731bef6 DW |
443 | 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 | ||
0649cd0d | 447 | config ENV_FAT_FILE |
919d25c9 | 448 | string "Name of the FAT file to use for the environment" |
0649cd0d SG |
449 | 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 | ||
1087a794 JRO |
455 | config 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 | ||
461 | config 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 | ||
479 | config ENV_EXT4_FILE | |
919d25c9 | 480 | string "Name of the EXT4 file to use for the environment" |
1087a794 | 481 | depends on ENV_IS_IN_EXT4 |
87dac740 | 482 | default "/uboot.env" |
1087a794 JRO |
483 | 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 | ||
a09fea1d TR |
487 | config 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 | ||
495 | config 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. | |
0649cd0d SG |
501 | |
502 | config ENV_OFFSET | |
a09fea1d TR |
503 | hex "Environment offset" |
504 | depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \ | |
505 | ENV_IS_IN_SPI_FLASH | |
d7b433e4 | 506 | default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC |
54b85a94 | 507 | default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH |
0649cd0d | 508 | default 0x88000 if ARCH_SUNXI |
4aee624c MS |
509 | default 0xE0000 if ARCH_ZYNQ |
510 | default 0x1E00000 if ARCH_ZYNQMP | |
f8c0f9fa | 511 | default 0x7F40000 if ARCH_VERSAL |
70b5ea74 | 512 | default 0 if ARC |
a9221f3e MK |
513 | default 0x140000 if ARCH_AT91 |
514 | default 0x260000 if ARCH_OMAP2PLUS | |
63e988ed | 515 | default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH |
0649cd0d SG |
516 | help |
517 | Offset from the start of the device (or partition) | |
518 | ||
a09fea1d TR |
519 | config 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 | ||
0649cd0d SG |
527 | config ENV_SIZE |
528 | hex "Environment Size" | |
4aee624c | 529 | default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP |
a9221f3e | 530 | default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 |
d7b433e4 | 531 | default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC |
54b85a94 | 532 | default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH |
d7b433e4 | 533 | default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL |
70b5ea74 | 534 | default 0x4000 if ARC |
a9221f3e | 535 | default 0x1f000 |
0649cd0d SG |
536 | help |
537 | Size of the environment storage area | |
538 | ||
4aee624c MS |
539 | config ENV_SECT_SIZE |
540 | hex "Environment Sector-Size" | |
a09fea1d | 541 | depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH |
54b85a94 | 542 | default 0x2000 if ARCH_ROCKCHIP |
f8c0f9fa | 543 | default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL |
a9221f3e | 544 | default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 |
63e988ed | 545 | default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH |
4aee624c MS |
546 | help |
547 | Size of the sector containing the environment. | |
548 | ||
0649cd0d SG |
549 | config 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 | ||
555 | config 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 | ||
ff4818cc MK |
561 | config ENV_UBI_VOLUME_REDUND |
562 | string "UBI redundant volume name" | |
cb6617a7 | 563 | depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT |
ff4818cc MK |
564 | help |
565 | Name of the redundant volume that you want to store the environment in. | |
566 | ||
985186d1 HG |
567 | config 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 | ||
8d8ee47e | 574 | config SYS_RELOC_GD_ENV_ADDR |
35c2683f | 575 | bool "Relocate gd->env_addr" |
8d8ee47e TR |
576 | 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 | ||
7d080773 TR |
580 | config SYS_MMC_ENV_DEV |
581 | int "mmc device number" | |
582 | depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || SYS_LS_PPA_FW_IN_MMC || \ | |
583 | CMD_MVEBU_BUBT || FMAN_ENET || QE | |
584 | default 0 | |
585 | help | |
586 | MMC device number on the platform where the environment is stored. | |
587 | ||
588 | config SYS_MMC_ENV_PART | |
589 | int "mmc partition number" | |
590 | depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT | |
591 | default 0 | |
592 | help | |
593 | MMC hardware partition device number on the platform where the | |
594 | environment is stored. Note that this is not related to any software | |
595 | defined partition table but instead if we are in the user area, which is | |
596 | partition 0 or the first boot partition, which is 1 or some other defined | |
597 | partition. | |
598 | ||
f3d8f7dd RV |
599 | config USE_DEFAULT_ENV_FILE |
600 | bool "Create default environment from file" | |
601 | help | |
602 | Normally, the default environment is automatically generated | |
603 | based on the settings of various CONFIG_* options, as well | |
604 | as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option, | |
605 | you can instead define the entire default environment in an | |
606 | external file. | |
607 | ||
608 | config DEFAULT_ENV_FILE | |
609 | string "Path to default environment file" | |
610 | depends on USE_DEFAULT_ENV_FILE | |
611 | help | |
612 | The path containing the default environment. The format is | |
613 | the same as accepted by the mkenvimage tool: lines | |
614 | containing key=value pairs, blank lines and lines beginning | |
615 | with # are ignored. | |
616 | ||
d9101303 AK |
617 | config ENV_VARS_UBOOT_RUNTIME_CONFIG |
618 | bool "Add run-time information to the environment" | |
619 | help | |
620 | Enable this in order to add variables describing certain | |
621 | run-time determined information about the hardware to the | |
622 | environment. These will be named board_name, board_rev. | |
623 | ||
b8879f20 OP |
624 | config DELAY_ENVIRONMENT |
625 | bool "Delay environment loading" | |
626 | depends on !OF_CONTROL | |
627 | help | |
628 | Enable this to inhibit loading the environment during board | |
629 | initialization. This can address the security risk of untrusted data | |
630 | being used during boot. Normally the environment is loaded when the | |
631 | board is initialised so that it is available to U-Boot. This inhibits | |
632 | that so that the environment is not available until explicitly loaded | |
633 | later by U-Boot code. With CONFIG_OF_CONTROL this is instead | |
634 | controlled by the value of /config/load-environment. | |
635 | ||
47f3b1f2 MV |
636 | config ENV_APPEND |
637 | bool "Always append the environment with new data" | |
638 | default n | |
639 | help | |
640 | If defined, the environment hash table is only ever appended with new | |
641 | data, but the existing hash table can never be dropped and reloaded | |
642 | with newly imported data. This may be used in combination with static | |
643 | flags to e.g. to protect variables which must not be modified. | |
644 | ||
d045cbac MV |
645 | config ENV_WRITEABLE_LIST |
646 | bool "Permit write access only to listed variables" | |
647 | default n | |
648 | help | |
649 | If defined, only environment variables which explicitly set the 'w' | |
650 | writeable flag can be written and modified at runtime. No variables | |
651 | can be otherwise created, written or imported into the environment. | |
652 | ||
3ec46991 MV |
653 | config ENV_ACCESS_IGNORE_FORCE |
654 | bool "Block forced environment operations" | |
655 | default n | |
656 | help | |
657 | If defined, don't allow the -f switch to env set override variable | |
658 | access flags. | |
659 | ||
474ecd2c YS |
660 | if SPL_ENV_SUPPORT |
661 | config SPL_ENV_IS_NOWHERE | |
662 | bool "SPL Environment is not stored" | |
663 | default y if ENV_IS_NOWHERE | |
664 | help | |
665 | Similar to ENV_IS_NOWHERE, used for SPL environment. | |
666 | ||
667 | config SPL_ENV_IS_IN_MMC | |
668 | bool "SPL Environment in an MMC device" | |
669 | depends on !SPL_ENV_IS_NOWHERE | |
670 | depends on ENV_IS_IN_MMC | |
671 | default y | |
672 | help | |
673 | Similar to ENV_IS_IN_MMC, used for SPL environment. | |
674 | ||
675 | config SPL_ENV_IS_IN_FAT | |
676 | bool "SPL Environment is in a FAT filesystem" | |
677 | depends on !SPL_ENV_IS_NOWHERE | |
678 | depends on ENV_IS_IN_FAT | |
679 | default y | |
680 | help | |
681 | Similar to ENV_IS_IN_FAT, used for SPL environment. | |
682 | ||
683 | config SPL_ENV_IS_IN_EXT4 | |
684 | bool "SPL Environment is in a EXT4 filesystem" | |
685 | depends on !SPL_ENV_IS_NOWHERE | |
686 | depends on ENV_IS_IN_EXT4 | |
687 | default y | |
688 | help | |
689 | Similar to ENV_IS_IN_EXT4, used for SPL environment. | |
690 | ||
691 | config SPL_ENV_IS_IN_NAND | |
692 | bool "SPL Environment in a NAND device" | |
693 | depends on !SPL_ENV_IS_NOWHERE | |
694 | depends on ENV_IS_IN_NAND | |
695 | default y | |
696 | help | |
697 | Similar to ENV_IS_IN_NAND, used for SPL environment. | |
698 | ||
699 | config SPL_ENV_IS_IN_SPI_FLASH | |
700 | bool "SPL Environment is in SPI flash" | |
701 | depends on !SPL_ENV_IS_NOWHERE | |
702 | depends on ENV_IS_IN_SPI_FLASH | |
703 | default y | |
704 | help | |
705 | Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment. | |
706 | ||
707 | config SPL_ENV_IS_IN_FLASH | |
708 | bool "SPL Environment in flash memory" | |
709 | depends on !SPL_ENV_IS_NOWHERE | |
710 | depends on ENV_IS_IN_FLASH | |
711 | default y | |
712 | help | |
713 | Similar to ENV_IS_IN_FLASH, used for SPL environment. | |
714 | ||
715 | endif | |
716 | ||
717 | if TPL_ENV_SUPPORT | |
718 | ||
719 | config TPL_ENV_IS_NOWHERE | |
720 | bool "TPL Environment is not stored" | |
721 | default y if ENV_IS_NOWHERE | |
722 | help | |
723 | Similar to ENV_IS_NOWHERE, used for TPL environment. | |
724 | ||
725 | config TPL_ENV_IS_IN_MMC | |
726 | bool "TPL Environment in an MMC device" | |
727 | depends on !TPL_ENV_IS_NOWHERE | |
728 | depends on ENV_IS_IN_MMC | |
729 | default y | |
730 | help | |
731 | Similar to ENV_IS_IN_MMC, used for TPL environment. | |
732 | ||
733 | config TPL_ENV_IS_IN_FAT | |
734 | bool "TPL Environment is in a FAT filesystem" | |
735 | depends on !TPL_ENV_IS_NOWHERE | |
736 | depends on ENV_IS_IN_FAT | |
737 | default y | |
738 | help | |
739 | Similar to ENV_IS_IN_FAT, used for TPL environment. | |
740 | ||
741 | config TPL_ENV_IS_IN_EXT4 | |
742 | bool "TPL Environment is in a EXT4 filesystem" | |
743 | depends on !TPL_ENV_IS_NOWHERE | |
744 | depends on ENV_IS_IN_EXT4 | |
745 | default y | |
746 | help | |
747 | Similar to ENV_IS_IN_EXT4, used for TPL environment. | |
748 | ||
749 | config TPL_ENV_IS_IN_NAND | |
750 | bool "TPL Environment in a NAND device" | |
751 | depends on !TPL_ENV_IS_NOWHERE | |
752 | depends on ENV_IS_IN_NAND | |
753 | default y | |
754 | help | |
755 | Similar to ENV_IS_IN_NAND, used for TPL environment. | |
756 | ||
757 | config TPL_ENV_IS_IN_SPI_FLASH | |
758 | bool "TPL Environment is in SPI flash" | |
759 | depends on !TPL_ENV_IS_NOWHERE | |
760 | depends on ENV_IS_IN_SPI_FLASH | |
761 | default y | |
762 | help | |
763 | Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment. | |
764 | ||
765 | config TPL_ENV_IS_IN_FLASH | |
766 | bool "TPL Environment in flash memory" | |
767 | depends on !TPL_ENV_IS_NOWHERE | |
768 | depends on ENV_IS_IN_FLASH | |
769 | default y | |
770 | help | |
771 | Similar to ENV_IS_IN_FLASH, used for TPL environment. | |
772 | ||
773 | endif | |
774 | ||
0649cd0d | 775 | endmenu |