xref: /openbmc/u-boot/env/Kconfig (revision 474ecd2c84d97314b8145fbe3a57887f41b2edb3)
10649cd0dSSimon Glassmenu "Environment"
20649cd0dSSimon Glass
3c1c3fe23SSimon Glassconfig ENV_IS_NOWHERE
4c1c3fe23SSimon Glass	bool "Environment is not stored"
5fb69464eSMaxime Ripard	depends on !ENV_IS_IN_EEPROM
68df430d0SAlex Kiernan	depends on !ENV_IS_IN_EXT4
7fb69464eSMaxime Ripard	depends on !ENV_IS_IN_FAT
8fb69464eSMaxime Ripard	depends on !ENV_IS_IN_FLASH
9fb69464eSMaxime Ripard	depends on !ENV_IS_IN_MMC
10fb69464eSMaxime Ripard	depends on !ENV_IS_IN_NAND
11fb69464eSMaxime Ripard	depends on !ENV_IS_IN_NVRAM
12fb69464eSMaxime Ripard	depends on !ENV_IS_IN_ONENAND
13fb69464eSMaxime Ripard	depends on !ENV_IS_IN_REMOTE
14fb69464eSMaxime Ripard	depends on !ENV_IS_IN_SPI_FLASH
15fb69464eSMaxime Ripard	depends on !ENV_IS_IN_UBI
16fb69464eSMaxime Ripard	default y
17c1c3fe23SSimon Glass	help
18c1c3fe23SSimon Glass	  Define this if you don't want to or can't have an environment stored
19919d25c9SShyam Saini	  on a storage medium. In this case the environment will still exist
20c1c3fe23SSimon Glass	  while U-Boot is running, but once U-Boot exits it will not be
21c1c3fe23SSimon Glass	  stored. U-Boot will therefore always start up with a default
22c1c3fe23SSimon Glass	  environment.
23c1c3fe23SSimon Glass
240649cd0dSSimon Glassconfig ENV_IS_IN_EEPROM
250649cd0dSSimon Glass	bool "Environment in EEPROM"
260649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
270649cd0dSSimon Glass	help
280649cd0dSSimon Glass	  Use this if you have an EEPROM or similar serial access
290649cd0dSSimon Glass	  device and a driver for it.
300649cd0dSSimon Glass
310649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET:
320649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
330649cd0dSSimon Glass
340649cd0dSSimon Glass	  These two #defines specify the offset and size of the
350649cd0dSSimon Glass	  environment area within the total memory of your EEPROM.
360649cd0dSSimon Glass
370649cd0dSSimon Glass	  Note that we consider the length of the address field to
380649cd0dSSimon Glass	  still be one byte because the extra address bits are hidden
390649cd0dSSimon Glass	  in the chip address.
400649cd0dSSimon Glass
410649cd0dSSimon Glass	  - CONFIG_ENV_EEPROM_IS_ON_I2C
420649cd0dSSimon Glass	  define this, if you have I2C and SPI activated, and your
430649cd0dSSimon Glass	  EEPROM, which holds the environment, is on the I2C bus.
440649cd0dSSimon Glass
450649cd0dSSimon Glass	  - CONFIG_I2C_ENV_EEPROM_BUS
460649cd0dSSimon Glass	  if you have an Environment on an EEPROM reached over
470649cd0dSSimon Glass	  I2C muxes, you can define here, how to reach this
480649cd0dSSimon Glass	  EEPROM. For example:
490649cd0dSSimon Glass
500649cd0dSSimon Glass	  #define CONFIG_I2C_ENV_EEPROM_BUS	  1
510649cd0dSSimon Glass
520649cd0dSSimon Glass	  EEPROM which holds the environment, is reached over
530649cd0dSSimon Glass	  a pca9547 i2c mux with address 0x70, channel 3.
540649cd0dSSimon Glass
550649cd0dSSimon Glassconfig ENV_IS_IN_FAT
560649cd0dSSimon Glass	bool "Environment is in a FAT filesystem"
570649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
58fb69464eSMaxime Ripard	default y if ARCH_BCM283X
590163c918SMaxime Ripard	default y if ARCH_SUNXI && MMC
60fb69464eSMaxime Ripard	default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
613cd084d3STuomas Tynkkynen	select FS_FAT
620649cd0dSSimon Glass	select FAT_WRITE
630649cd0dSSimon Glass	help
640649cd0dSSimon Glass	  Define this if you want to use the FAT file system for the environment.
650649cd0dSSimon Glass
661087a794SJorge Ramirez-Ortizconfig ENV_IS_IN_EXT4
671087a794SJorge Ramirez-Ortiz	bool "Environment is in a EXT4 filesystem"
681087a794SJorge Ramirez-Ortiz	depends on !CHAIN_OF_TRUST
691087a794SJorge Ramirez-Ortiz	select EXT4_WRITE
701087a794SJorge Ramirez-Ortiz	help
711087a794SJorge Ramirez-Ortiz	  Define this if you want to use the EXT4 file system for the environment.
721087a794SJorge Ramirez-Ortiz
730649cd0dSSimon Glassconfig ENV_IS_IN_FLASH
740649cd0dSSimon Glass	bool "Environment in flash memory"
750649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
76fb69464eSMaxime Ripard	default y if ARCH_CINTEGRATOR
77fb69464eSMaxime Ripard	default y if ARCH_INTEGRATOR_CP
78fb69464eSMaxime Ripard	default y if M548x || M547x || M5282 || MCF547x_8x
79fb69464eSMaxime Ripard	default y if MCF532x || MCF52x2
80fb69464eSMaxime Ripard	default y if MPC86xx || MPC83xx
81fb69464eSMaxime Ripard	default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
82fb69464eSMaxime Ripard	default y if SH && !CPU_SH4
830649cd0dSSimon Glass	help
840649cd0dSSimon Glass	  Define this if you have a flash device which you want to use for the
850649cd0dSSimon Glass	  environment.
860649cd0dSSimon Glass
870649cd0dSSimon Glass	  a) The environment occupies one whole flash sector, which is
880649cd0dSSimon Glass	   "embedded" in the text segment with the U-Boot code. This
890649cd0dSSimon Glass	   happens usually with "bottom boot sector" or "top boot
900649cd0dSSimon Glass	   sector" type flash chips, which have several smaller
910649cd0dSSimon Glass	   sectors at the start or the end. For instance, such a
920649cd0dSSimon Glass	   layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
930649cd0dSSimon Glass	   such a case you would place the environment in one of the
940649cd0dSSimon Glass	   4 kB sectors - with U-Boot code before and after it. With
950649cd0dSSimon Glass	   "top boot sector" type flash chips, you would put the
960649cd0dSSimon Glass	   environment in one of the last sectors, leaving a gap
970649cd0dSSimon Glass	   between U-Boot and the environment.
980649cd0dSSimon Glass
990649cd0dSSimon Glass	  CONFIG_ENV_OFFSET:
1000649cd0dSSimon Glass
1010649cd0dSSimon Glass	   Offset of environment data (variable area) to the
1020649cd0dSSimon Glass	   beginning of flash memory; for instance, with bottom boot
1030649cd0dSSimon Glass	   type flash chips the second sector can be used: the offset
1040649cd0dSSimon Glass	   for this sector is given here.
1050649cd0dSSimon Glass
1060649cd0dSSimon Glass	   CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
1070649cd0dSSimon Glass
1080649cd0dSSimon Glass	  CONFIG_ENV_ADDR:
1090649cd0dSSimon Glass
1100649cd0dSSimon Glass	   This is just another way to specify the start address of
1110649cd0dSSimon Glass	   the flash sector containing the environment (instead of
1120649cd0dSSimon Glass	   CONFIG_ENV_OFFSET).
1130649cd0dSSimon Glass
1140649cd0dSSimon Glass	  CONFIG_ENV_SECT_SIZE:
1150649cd0dSSimon Glass
1160649cd0dSSimon Glass	   Size of the sector containing the environment.
1170649cd0dSSimon Glass
1180649cd0dSSimon Glass
1190649cd0dSSimon Glass	  b) Sometimes flash chips have few, equal sized, BIG sectors.
1200649cd0dSSimon Glass	   In such a case you don't want to spend a whole sector for
1210649cd0dSSimon Glass	   the environment.
1220649cd0dSSimon Glass
1230649cd0dSSimon Glass	  CONFIG_ENV_SIZE:
1240649cd0dSSimon Glass
1250649cd0dSSimon Glass	   If you use this in combination with CONFIG_ENV_IS_IN_FLASH
1260649cd0dSSimon Glass	   and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
1270649cd0dSSimon Glass	   of this flash sector for the environment. This saves
1280649cd0dSSimon Glass	   memory for the RAM copy of the environment.
1290649cd0dSSimon Glass
1300649cd0dSSimon Glass	   It may also save flash memory if you decide to use this
1310649cd0dSSimon Glass	   when your environment is "embedded" within U-Boot code,
1320649cd0dSSimon Glass	   since then the remainder of the flash sector could be used
1330649cd0dSSimon Glass	   for U-Boot code. It should be pointed out that this is
1340649cd0dSSimon Glass	   STRONGLY DISCOURAGED from a robustness point of view:
1350649cd0dSSimon Glass	   updating the environment in flash makes it always
1360649cd0dSSimon Glass	   necessary to erase the WHOLE sector. If something goes
1370649cd0dSSimon Glass	   wrong before the contents has been restored from a copy in
1380649cd0dSSimon Glass	   RAM, your target system will be dead.
1390649cd0dSSimon Glass
1400649cd0dSSimon Glass	  CONFIG_ENV_ADDR_REDUND
1410649cd0dSSimon Glass	  CONFIG_ENV_SIZE_REDUND
1420649cd0dSSimon Glass
1430649cd0dSSimon Glass	   These settings describe a second storage area used to hold
1440649cd0dSSimon Glass	   a redundant copy of the environment data, so that there is
1450649cd0dSSimon Glass	   a valid backup copy in case there is a power failure during
1460649cd0dSSimon Glass	   a "saveenv" operation.
1470649cd0dSSimon Glass
1480649cd0dSSimon Glass	  BE CAREFUL! Any changes to the flash layout, and some changes to the
1490649cd0dSSimon Glass	  source code will make it necessary to adapt <board>/u-boot.lds*
1500649cd0dSSimon Glass	  accordingly!
1510649cd0dSSimon Glass
1520649cd0dSSimon Glassconfig ENV_IS_IN_MMC
1530649cd0dSSimon Glass	bool "Environment in an MMC device"
1540649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
155d282a1dbSMaxime Ripard	depends on MMC
156fb69464eSMaxime Ripard	default y if ARCH_EXYNOS4
157fb69464eSMaxime Ripard	default y if MX6SX || MX7D
158fb69464eSMaxime Ripard	default y if TEGRA30 || TEGRA124
159fb69464eSMaxime Ripard	default y if TEGRA_ARMV8_COMMON
1600649cd0dSSimon Glass	help
1610649cd0dSSimon Glass	  Define this if you have an MMC device which you want to use for the
1620649cd0dSSimon Glass	  environment.
1630649cd0dSSimon Glass
1640649cd0dSSimon Glass	  CONFIG_SYS_MMC_ENV_DEV:
1650649cd0dSSimon Glass
1660649cd0dSSimon Glass	  Specifies which MMC device the environment is stored in.
1670649cd0dSSimon Glass
1680649cd0dSSimon Glass	  CONFIG_SYS_MMC_ENV_PART (optional):
1690649cd0dSSimon Glass
1700649cd0dSSimon Glass	  Specifies which MMC partition the environment is stored in. If not
1710649cd0dSSimon Glass	  set, defaults to partition 0, the user area. Common values might be
1720649cd0dSSimon Glass	  1 (first MMC boot partition), 2 (second MMC boot partition).
1730649cd0dSSimon Glass
1740649cd0dSSimon Glass	  CONFIG_ENV_OFFSET:
1750649cd0dSSimon Glass	  CONFIG_ENV_SIZE:
1760649cd0dSSimon Glass
1770649cd0dSSimon Glass	  These two #defines specify the offset and size of the environment
1780649cd0dSSimon Glass	  area within the specified MMC device.
1790649cd0dSSimon Glass
1800649cd0dSSimon Glass	  If offset is positive (the usual case), it is treated as relative to
1810649cd0dSSimon Glass	  the start of the MMC partition. If offset is negative, it is treated
1820649cd0dSSimon Glass	  as relative to the end of the MMC partition. This can be useful if
1830649cd0dSSimon Glass	  your board may be fitted with different MMC devices, which have
1840649cd0dSSimon Glass	  different sizes for the MMC partitions, and you always want the
1850649cd0dSSimon Glass	  environment placed at the very end of the partition, to leave the
1860649cd0dSSimon Glass	  maximum possible space before it, to store other data.
1870649cd0dSSimon Glass
1880649cd0dSSimon Glass	  These two values are in units of bytes, but must be aligned to an
1890649cd0dSSimon Glass	  MMC sector boundary.
1900649cd0dSSimon Glass
1910649cd0dSSimon Glass	  CONFIG_ENV_OFFSET_REDUND (optional):
1920649cd0dSSimon Glass
1930649cd0dSSimon Glass	  Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
1940649cd0dSSimon Glass	  hold a redundant copy of the environment data. This provides a
1950649cd0dSSimon Glass	  valid backup copy in case the other copy is corrupted, e.g. due
1960649cd0dSSimon Glass	  to a power failure during a "saveenv" operation.
1970649cd0dSSimon Glass
1980649cd0dSSimon Glass	  This value may also be positive or negative; this is handled in the
1990649cd0dSSimon Glass	  same way as CONFIG_ENV_OFFSET.
2000649cd0dSSimon Glass
2010649cd0dSSimon Glass	  This value is also in units of bytes, but must also be aligned to
2020649cd0dSSimon Glass	  an MMC sector boundary.
2030649cd0dSSimon Glass
2040649cd0dSSimon Glass	  CONFIG_ENV_SIZE_REDUND (optional):
2050649cd0dSSimon Glass
2060649cd0dSSimon Glass	  This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is
2070649cd0dSSimon Glass	  set. If this value is set, it must be set to the same value as
2080649cd0dSSimon Glass	  CONFIG_ENV_SIZE.
2090649cd0dSSimon Glass
2100649cd0dSSimon Glassconfig ENV_IS_IN_NAND
2110649cd0dSSimon Glass	bool "Environment in a NAND device"
2120649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2130649cd0dSSimon Glass	help
2140649cd0dSSimon Glass	  Define this if you have a NAND device which you want to use for the
2150649cd0dSSimon Glass	  environment.
2160649cd0dSSimon Glass
2170649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET:
2180649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2190649cd0dSSimon Glass
2200649cd0dSSimon Glass	  These two #defines specify the offset and size of the environment
2210649cd0dSSimon Glass	  area within the first NAND device.  CONFIG_ENV_OFFSET must be
2220649cd0dSSimon Glass	  aligned to an erase block boundary.
2230649cd0dSSimon Glass
2240649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET_REDUND (optional):
2250649cd0dSSimon Glass
2260649cd0dSSimon Glass	  This setting describes a second storage area of CONFIG_ENV_SIZE
2270649cd0dSSimon Glass	  size used to hold a redundant copy of the environment data, so
2280649cd0dSSimon Glass	  that there is a valid backup copy in case there is a power failure
2290649cd0dSSimon Glass	  during a "saveenv" operation.	 CONFIG_ENV_OFFSET_REDUND must be
2300649cd0dSSimon Glass	  aligned to an erase block boundary.
2310649cd0dSSimon Glass
2320649cd0dSSimon Glass	  - CONFIG_ENV_RANGE (optional):
2330649cd0dSSimon Glass
2340649cd0dSSimon Glass	  Specifies the length of the region in which the environment
2350649cd0dSSimon Glass	  can be written.  This should be a multiple of the NAND device's
2360649cd0dSSimon Glass	  block size.  Specifying a range with more erase blocks than
2370649cd0dSSimon Glass	  are needed to hold CONFIG_ENV_SIZE allows bad blocks within
2380649cd0dSSimon Glass	  the range to be avoided.
2390649cd0dSSimon Glass
2400649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET_OOB (optional):
2410649cd0dSSimon Glass
2420649cd0dSSimon Glass	  Enables support for dynamically retrieving the offset of the
2430649cd0dSSimon Glass	  environment from block zero's out-of-band data.  The
2440649cd0dSSimon Glass	  "nand env.oob" command can be used to record this offset.
2450649cd0dSSimon Glass	  Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
2460649cd0dSSimon Glass	  using CONFIG_ENV_OFFSET_OOB.
2470649cd0dSSimon Glass
2480649cd0dSSimon Glassconfig ENV_IS_IN_NVRAM
2490649cd0dSSimon Glass	bool "Environment in a non-volatile RAM"
2500649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2510649cd0dSSimon Glass	help
2520649cd0dSSimon Glass	  Define this if you have some non-volatile memory device
2530649cd0dSSimon Glass	  (NVRAM, battery buffered SRAM) which you want to use for the
2540649cd0dSSimon Glass	  environment.
2550649cd0dSSimon Glass
2560649cd0dSSimon Glass	  - CONFIG_ENV_ADDR:
2570649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2580649cd0dSSimon Glass
2590649cd0dSSimon Glass	  These two #defines are used to determine the memory area you
2600649cd0dSSimon Glass	  want to use for environment. It is assumed that this memory
2610649cd0dSSimon Glass	  can just be read and written to, without any special
2620649cd0dSSimon Glass	  provision.
2630649cd0dSSimon Glass
2640649cd0dSSimon Glassconfig ENV_IS_IN_ONENAND
2650649cd0dSSimon Glass	bool "Environment is in OneNAND"
2660649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2670649cd0dSSimon Glass	help
2680649cd0dSSimon Glass	  Define this if you want to put your local device's environment in
2690649cd0dSSimon Glass	  OneNAND.
2700649cd0dSSimon Glass
2710649cd0dSSimon Glass	  - CONFIG_ENV_ADDR:
2720649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2730649cd0dSSimon Glass
2740649cd0dSSimon Glass	  These two #defines are used to determine the device range you
2750649cd0dSSimon Glass	  want to use for environment. It is assumed that this memory
2760649cd0dSSimon Glass	  can just be read and written to, without any special
2770649cd0dSSimon Glass	  provision.
2780649cd0dSSimon Glass
2790649cd0dSSimon Glassconfig ENV_IS_IN_REMOTE
280646f1ab4SHeinrich Schuchardt	bool "Environment is in remote memory space"
2810649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2820649cd0dSSimon Glass	help
2830649cd0dSSimon Glass	  Define this if you have a remote memory space which you
2840649cd0dSSimon Glass	  want to use for the local device's environment.
2850649cd0dSSimon Glass
2860649cd0dSSimon Glass	  - CONFIG_ENV_ADDR:
2870649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2880649cd0dSSimon Glass
2890649cd0dSSimon Glass	  These two #defines specify the address and size of the
2900649cd0dSSimon Glass	  environment area within the remote memory space. The
2910649cd0dSSimon Glass	  local device can get the environment from remote memory
2920649cd0dSSimon Glass	  space by SRIO or PCIE links.
2930649cd0dSSimon Glass
2940649cd0dSSimon Glassconfig ENV_IS_IN_SPI_FLASH
2950649cd0dSSimon Glass	bool "Environment is in SPI flash"
2960649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
297fb69464eSMaxime Ripard	default y if ARMADA_XP
298fb69464eSMaxime Ripard	default y if INTEL_BAYTRAIL
299fb69464eSMaxime Ripard	default y if INTEL_BRASWELL
300fb69464eSMaxime Ripard	default y if INTEL_BROADWELL
301fb69464eSMaxime Ripard	default y if NORTHBRIDGE_INTEL_IVYBRIDGE
302fb69464eSMaxime Ripard	default y if INTEL_QUARK
303fb69464eSMaxime Ripard	default y if INTEL_QUEENSBAY
3040649cd0dSSimon Glass	help
3050649cd0dSSimon Glass	  Define this if you have a SPI Flash memory device which you
3060649cd0dSSimon Glass	  want to use for the environment.
3070649cd0dSSimon Glass
3080649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET:
3090649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
3100649cd0dSSimon Glass
3110649cd0dSSimon Glass	  These two #defines specify the offset and size of the
3120649cd0dSSimon Glass	  environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
3130649cd0dSSimon Glass	  aligned to an erase sector boundary.
3140649cd0dSSimon Glass
3150649cd0dSSimon Glass	  - CONFIG_ENV_SECT_SIZE:
3160649cd0dSSimon Glass
3170649cd0dSSimon Glass	  Define the SPI flash's sector size.
3180649cd0dSSimon Glass
3190649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET_REDUND (optional):
3200649cd0dSSimon Glass
3210649cd0dSSimon Glass	  This setting describes a second storage area of CONFIG_ENV_SIZE
3220649cd0dSSimon Glass	  size used to hold a redundant copy of the environment data, so
3230649cd0dSSimon Glass	  that there is a valid backup copy in case there is a power failure
3240649cd0dSSimon Glass	  during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
3250649cd0dSSimon Glass	  aligned to an erase sector boundary.
3260649cd0dSSimon Glass
3270649cd0dSSimon Glass	  - CONFIG_ENV_SPI_BUS (optional):
3280649cd0dSSimon Glass	  - CONFIG_ENV_SPI_CS (optional):
3290649cd0dSSimon Glass
3300649cd0dSSimon Glass	  Define the SPI bus and chip select. If not defined they will be 0.
3310649cd0dSSimon Glass
3320649cd0dSSimon Glass	  - CONFIG_ENV_SPI_MAX_HZ (optional):
3330649cd0dSSimon Glass
3340649cd0dSSimon Glass	  Define the SPI max work clock. If not defined then use 1MHz.
3350649cd0dSSimon Glass
3360649cd0dSSimon Glass	  - CONFIG_ENV_SPI_MODE (optional):
3370649cd0dSSimon Glass
3380649cd0dSSimon Glass	  Define the SPI work mode. If not defined then use SPI_MODE_3.
3390649cd0dSSimon Glass
3400649cd0dSSimon Glassconfig ENV_IS_IN_UBI
3410649cd0dSSimon Glass	bool "Environment in a UBI volume"
3420649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
3430649cd0dSSimon Glass	help
3440649cd0dSSimon Glass	  Define this if you have an UBI volume that you want to use for the
3450649cd0dSSimon Glass	  environment.  This has the benefit of wear-leveling the environment
3460649cd0dSSimon Glass	  accesses, which is important on NAND.
3470649cd0dSSimon Glass
3480649cd0dSSimon Glass	  - CONFIG_ENV_UBI_PART:
3490649cd0dSSimon Glass
3500649cd0dSSimon Glass	  Define this to a string that is the mtd partition containing the UBI.
3510649cd0dSSimon Glass
3520649cd0dSSimon Glass	  - CONFIG_ENV_UBI_VOLUME:
3530649cd0dSSimon Glass
3540649cd0dSSimon Glass	  Define this to the name of the volume that you want to store the
3550649cd0dSSimon Glass	  environment in.
3560649cd0dSSimon Glass
3570649cd0dSSimon Glass	  - CONFIG_ENV_UBI_VOLUME_REDUND:
3580649cd0dSSimon Glass
3590649cd0dSSimon Glass	  Define this to the name of another volume to store a second copy of
3600649cd0dSSimon Glass	  the environment in.  This will enable redundant environments in UBI.
3610649cd0dSSimon Glass	  It is assumed that both volumes are in the same MTD partition.
3620649cd0dSSimon Glass
3630649cd0dSSimon Glassconfig ENV_FAT_INTERFACE
3640649cd0dSSimon Glass	string "Name of the block device for the environment"
3650649cd0dSSimon Glass	depends on ENV_IS_IN_FAT
3660163c918SMaxime Ripard	default "mmc" if ARCH_SUNXI
3670649cd0dSSimon Glass	default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91
3680649cd0dSSimon Glass	help
3690649cd0dSSimon Glass	  Define this to a string that is the name of the block device.
3700649cd0dSSimon Glass
3710649cd0dSSimon Glassconfig ENV_FAT_DEVICE_AND_PART
3720649cd0dSSimon Glass	string "Device and partition for where to store the environemt in FAT"
3730649cd0dSSimon Glass	depends on ENV_IS_IN_FAT
3740649cd0dSSimon Glass	default "0:1" if TI_COMMON_CMD_OPTIONS
3750649cd0dSSimon Glass	default "0:auto" if ARCH_ZYNQMP
3760163c918SMaxime Ripard	default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
3770163c918SMaxime Ripard	default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
3780649cd0dSSimon Glass	default "0" if ARCH_AT91
3790649cd0dSSimon Glass	help
3800649cd0dSSimon Glass	  Define this to a string to specify the partition of the device. It can
3810649cd0dSSimon Glass	  be as following:
3820649cd0dSSimon Glass
3830649cd0dSSimon Glass	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
3840649cd0dSSimon Glass	       - "D:P": device D partition P. Error occurs if device D has no
3850649cd0dSSimon Glass	                partition table.
3860649cd0dSSimon Glass	       - "D:0": device D.
3870649cd0dSSimon Glass	       - "D" or "D:": device D partition 1 if device D has partition
3880649cd0dSSimon Glass	                      table, or the whole device D if has no partition
3890649cd0dSSimon Glass	                      table.
3900649cd0dSSimon Glass	       - "D:auto": first partition in device D with bootable flag set.
3910649cd0dSSimon Glass	                   If none, first valid partition in device D. If no
3920649cd0dSSimon Glass	                   partition table then means device D.
3930649cd0dSSimon Glass
3940649cd0dSSimon Glassconfig ENV_FAT_FILE
395919d25c9SShyam Saini	string "Name of the FAT file to use for the environment"
3960649cd0dSSimon Glass	depends on ENV_IS_IN_FAT
3970649cd0dSSimon Glass	default "uboot.env"
3980649cd0dSSimon Glass	help
3990649cd0dSSimon Glass	  It's a string of the FAT file name. This file use to store the
4000649cd0dSSimon Glass	  environment.
4010649cd0dSSimon Glass
4021087a794SJorge Ramirez-Ortizconfig ENV_EXT4_INTERFACE
4031087a794SJorge Ramirez-Ortiz	string "Name of the block device for the environment"
4041087a794SJorge Ramirez-Ortiz	depends on ENV_IS_IN_EXT4
4051087a794SJorge Ramirez-Ortiz	help
4061087a794SJorge Ramirez-Ortiz	  Define this to a string that is the name of the block device.
4071087a794SJorge Ramirez-Ortiz
4081087a794SJorge Ramirez-Ortizconfig ENV_EXT4_DEVICE_AND_PART
4091087a794SJorge Ramirez-Ortiz	string "Device and partition for where to store the environemt in EXT4"
4101087a794SJorge Ramirez-Ortiz	depends on ENV_IS_IN_EXT4
4111087a794SJorge Ramirez-Ortiz	help
4121087a794SJorge Ramirez-Ortiz	  Define this to a string to specify the partition of the device. It can
4131087a794SJorge Ramirez-Ortiz	  be as following:
4141087a794SJorge Ramirez-Ortiz
4151087a794SJorge Ramirez-Ortiz	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
4161087a794SJorge Ramirez-Ortiz	       - "D:P": device D partition P. Error occurs if device D has no
4171087a794SJorge Ramirez-Ortiz	                partition table.
4181087a794SJorge Ramirez-Ortiz	       - "D:0": device D.
4191087a794SJorge Ramirez-Ortiz	       - "D" or "D:": device D partition 1 if device D has partition
4201087a794SJorge Ramirez-Ortiz	                      table, or the whole device D if has no partition
4211087a794SJorge Ramirez-Ortiz	                      table.
4221087a794SJorge Ramirez-Ortiz	       - "D:auto": first partition in device D with bootable flag set.
4231087a794SJorge Ramirez-Ortiz	                   If none, first valid partition in device D. If no
4241087a794SJorge Ramirez-Ortiz	                   partition table then means device D.
4251087a794SJorge Ramirez-Ortiz
4261087a794SJorge Ramirez-Ortizconfig ENV_EXT4_FILE
427919d25c9SShyam Saini	string "Name of the EXT4 file to use for the environment"
4281087a794SJorge Ramirez-Ortiz	depends on ENV_IS_IN_EXT4
4291087a794SJorge Ramirez-Ortiz	default "uboot.env"
4301087a794SJorge Ramirez-Ortiz	help
4311087a794SJorge Ramirez-Ortiz	  It's a string of the EXT4 file name. This file use to store the
4321087a794SJorge Ramirez-Ortiz	  environment (explicit path to the file)
4331087a794SJorge Ramirez-Ortiz
4340649cd0dSSimon Glassif ARCH_SUNXI
4350649cd0dSSimon Glass
4360649cd0dSSimon Glassconfig ENV_OFFSET
4370649cd0dSSimon Glass	hex "Environment Offset"
4380649cd0dSSimon Glass	depends on !ENV_IS_IN_UBI
4390649cd0dSSimon Glass	depends on !ENV_IS_NOWHERE
4400649cd0dSSimon Glass	default 0x88000 if ARCH_SUNXI
4410649cd0dSSimon Glass	help
4420649cd0dSSimon Glass	  Offset from the start of the device (or partition)
4430649cd0dSSimon Glass
4440649cd0dSSimon Glassconfig ENV_SIZE
4450649cd0dSSimon Glass	hex "Environment Size"
4460649cd0dSSimon Glass	depends on !ENV_IS_NOWHERE
4470649cd0dSSimon Glass	default 0x20000 if ARCH_SUNXI
4480649cd0dSSimon Glass	help
4490649cd0dSSimon Glass	  Size of the environment storage area
4500649cd0dSSimon Glass
4510649cd0dSSimon Glassconfig ENV_UBI_PART
4520649cd0dSSimon Glass	string "UBI partition name"
4530649cd0dSSimon Glass	depends on ENV_IS_IN_UBI
4540649cd0dSSimon Glass	help
4550649cd0dSSimon Glass	  MTD partition containing the UBI device
4560649cd0dSSimon Glass
4570649cd0dSSimon Glassconfig ENV_UBI_VOLUME
4580649cd0dSSimon Glass	string "UBI volume name"
4590649cd0dSSimon Glass	depends on ENV_IS_IN_UBI
4600649cd0dSSimon Glass	help
4610649cd0dSSimon Glass	  Name of the volume that you want to store the environment in.
4620649cd0dSSimon Glass
4630649cd0dSSimon Glassendif
4640649cd0dSSimon Glass
46581f53b0dSKlaus Gogerif ARCH_ROCKCHIP
46681f53b0dSKlaus Goger
46781f53b0dSKlaus Gogerconfig ENV_OFFSET
46881f53b0dSKlaus Goger	hex
46981f53b0dSKlaus Goger	depends on !ENV_IS_IN_UBI
47081f53b0dSKlaus Goger	depends on !ENV_IS_NOWHERE
47181f53b0dSKlaus Goger	default 0x3f8000
47281f53b0dSKlaus Goger	help
47381f53b0dSKlaus Goger	  Offset from the start of the device (or partition)
47481f53b0dSKlaus Goger
47581f53b0dSKlaus Gogerconfig ENV_SIZE
47681f53b0dSKlaus Goger	hex
47781f53b0dSKlaus Goger	default 0x8000
47881f53b0dSKlaus Goger	help
47981f53b0dSKlaus Goger	  Size of the environment storage area
48081f53b0dSKlaus Goger
48181f53b0dSKlaus Gogerendif
48281f53b0dSKlaus Goger
4832a30809cSVipul Kumarif ARCH_ZYNQMP || ARCH_ZYNQ
4842a30809cSVipul Kumar
4852a30809cSVipul Kumarconfig ENV_OFFSET
4862a30809cSVipul Kumar	hex "Environment Offset"
4872a30809cSVipul Kumar	depends on !ENV_IS_NOWHERE
4882a30809cSVipul Kumar	default 0x1E00000 if ARCH_ZYNQMP
4892a30809cSVipul Kumar	default 0xE0000 if ARCH_ZYNQ
4902a30809cSVipul Kumar	help
4912a30809cSVipul Kumar	  Offset from the start of the device (or partition)
4922a30809cSVipul Kumar
4932a30809cSVipul Kumarconfig ENV_SIZE
4942a30809cSVipul Kumar	hex "Environment Size"
4952a30809cSVipul Kumar	default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
4962a30809cSVipul Kumar	default 0x8000 if ARCH_ZYNQMP
4972a30809cSVipul Kumar	default 0x20000 if ARCH_ZYNQ
4982a30809cSVipul Kumar	help
4992a30809cSVipul Kumar	  Size of the environment storage area.
5002a30809cSVipul Kumar
5012a30809cSVipul Kumarconfig ENV_SECT_SIZE
5022a30809cSVipul Kumar	hex "Environment Sector-Size"
5032a30809cSVipul Kumar	depends on !ENV_IS_NOWHERE
5042a30809cSVipul Kumar	default 0x40000 if ARCH_ZYNQMP
5052a30809cSVipul Kumar	default 0x20000 if ARCH_ZYNQ
5062a30809cSVipul Kumar	help
5072a30809cSVipul Kumar	  Size of the sector containing the environment.
5082a30809cSVipul Kumar
5092a30809cSVipul Kumarendif
5102a30809cSVipul Kumar
511f3d8f7ddSRasmus Villemoesconfig USE_DEFAULT_ENV_FILE
512f3d8f7ddSRasmus Villemoes	bool "Create default environment from file"
513f3d8f7ddSRasmus Villemoes	help
514f3d8f7ddSRasmus Villemoes	  Normally, the default environment is automatically generated
515f3d8f7ddSRasmus Villemoes	  based on the settings of various CONFIG_* options, as well
516f3d8f7ddSRasmus Villemoes	  as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
517f3d8f7ddSRasmus Villemoes	  you can instead define the entire default environment in an
518f3d8f7ddSRasmus Villemoes	  external file.
519f3d8f7ddSRasmus Villemoes
520f3d8f7ddSRasmus Villemoesconfig DEFAULT_ENV_FILE
521f3d8f7ddSRasmus Villemoes	string "Path to default environment file"
522f3d8f7ddSRasmus Villemoes	depends on USE_DEFAULT_ENV_FILE
523f3d8f7ddSRasmus Villemoes	help
524f3d8f7ddSRasmus Villemoes	  The path containing the default environment. The format is
525f3d8f7ddSRasmus Villemoes	  the same as accepted by the mkenvimage tool: lines
526f3d8f7ddSRasmus Villemoes	  containing key=value pairs, blank lines and lines beginning
527f3d8f7ddSRasmus Villemoes	  with # are ignored.
528f3d8f7ddSRasmus Villemoes
529d9101303SAlex Kiernanconfig ENV_VARS_UBOOT_RUNTIME_CONFIG
530d9101303SAlex Kiernan	bool "Add run-time information to the environment"
531d9101303SAlex Kiernan	help
532d9101303SAlex Kiernan	  Enable this in order to add variables describing certain
533d9101303SAlex Kiernan	  run-time determined information about the hardware to the
534d9101303SAlex Kiernan	  environment.  These will be named board_name, board_rev.
535d9101303SAlex Kiernan
536*474ecd2cSYork Sunif SPL_ENV_SUPPORT
537*474ecd2cSYork Sunconfig SPL_ENV_IS_NOWHERE
538*474ecd2cSYork Sun	bool "SPL Environment is not stored"
539*474ecd2cSYork Sun	default y if ENV_IS_NOWHERE
540*474ecd2cSYork Sun	help
541*474ecd2cSYork Sun	  Similar to ENV_IS_NOWHERE, used for SPL environment.
542*474ecd2cSYork Sun
543*474ecd2cSYork Sunconfig SPL_ENV_IS_IN_MMC
544*474ecd2cSYork Sun	bool "SPL Environment in an MMC device"
545*474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
546*474ecd2cSYork Sun	depends on ENV_IS_IN_MMC
547*474ecd2cSYork Sun	default y
548*474ecd2cSYork Sun	help
549*474ecd2cSYork Sun	  Similar to ENV_IS_IN_MMC, used for SPL environment.
550*474ecd2cSYork Sun
551*474ecd2cSYork Sunconfig SPL_ENV_IS_IN_FAT
552*474ecd2cSYork Sun	bool "SPL Environment is in a FAT filesystem"
553*474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
554*474ecd2cSYork Sun	depends on ENV_IS_IN_FAT
555*474ecd2cSYork Sun	default y
556*474ecd2cSYork Sun	help
557*474ecd2cSYork Sun	  Similar to ENV_IS_IN_FAT, used for SPL environment.
558*474ecd2cSYork Sun
559*474ecd2cSYork Sunconfig SPL_ENV_IS_IN_EXT4
560*474ecd2cSYork Sun	bool "SPL Environment is in a EXT4 filesystem"
561*474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
562*474ecd2cSYork Sun	depends on ENV_IS_IN_EXT4
563*474ecd2cSYork Sun	default y
564*474ecd2cSYork Sun	help
565*474ecd2cSYork Sun	  Similar to ENV_IS_IN_EXT4, used for SPL environment.
566*474ecd2cSYork Sun
567*474ecd2cSYork Sunconfig SPL_ENV_IS_IN_NAND
568*474ecd2cSYork Sun	bool "SPL Environment in a NAND device"
569*474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
570*474ecd2cSYork Sun	depends on ENV_IS_IN_NAND
571*474ecd2cSYork Sun	default y
572*474ecd2cSYork Sun	help
573*474ecd2cSYork Sun	  Similar to ENV_IS_IN_NAND, used for SPL environment.
574*474ecd2cSYork Sun
575*474ecd2cSYork Sunconfig SPL_ENV_IS_IN_SPI_FLASH
576*474ecd2cSYork Sun	bool "SPL Environment is in SPI flash"
577*474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
578*474ecd2cSYork Sun	depends on ENV_IS_IN_SPI_FLASH
579*474ecd2cSYork Sun	default y
580*474ecd2cSYork Sun	help
581*474ecd2cSYork Sun	  Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
582*474ecd2cSYork Sun
583*474ecd2cSYork Sunconfig SPL_ENV_IS_IN_FLASH
584*474ecd2cSYork Sun	bool "SPL Environment in flash memory"
585*474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
586*474ecd2cSYork Sun	depends on ENV_IS_IN_FLASH
587*474ecd2cSYork Sun	default y
588*474ecd2cSYork Sun	help
589*474ecd2cSYork Sun	  Similar to ENV_IS_IN_FLASH, used for SPL environment.
590*474ecd2cSYork Sun
591*474ecd2cSYork Sunendif
592*474ecd2cSYork Sun
593*474ecd2cSYork Sunif TPL_ENV_SUPPORT
594*474ecd2cSYork Sun
595*474ecd2cSYork Sunconfig TPL_ENV_IS_NOWHERE
596*474ecd2cSYork Sun	bool "TPL Environment is not stored"
597*474ecd2cSYork Sun	default y if ENV_IS_NOWHERE
598*474ecd2cSYork Sun	help
599*474ecd2cSYork Sun	  Similar to ENV_IS_NOWHERE, used for TPL environment.
600*474ecd2cSYork Sun
601*474ecd2cSYork Sunconfig TPL_ENV_IS_IN_MMC
602*474ecd2cSYork Sun	bool "TPL Environment in an MMC device"
603*474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
604*474ecd2cSYork Sun	depends on ENV_IS_IN_MMC
605*474ecd2cSYork Sun	default y
606*474ecd2cSYork Sun	help
607*474ecd2cSYork Sun	  Similar to ENV_IS_IN_MMC, used for TPL environment.
608*474ecd2cSYork Sun
609*474ecd2cSYork Sunconfig TPL_ENV_IS_IN_FAT
610*474ecd2cSYork Sun	bool "TPL Environment is in a FAT filesystem"
611*474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
612*474ecd2cSYork Sun	depends on ENV_IS_IN_FAT
613*474ecd2cSYork Sun	default y
614*474ecd2cSYork Sun	help
615*474ecd2cSYork Sun	  Similar to ENV_IS_IN_FAT, used for TPL environment.
616*474ecd2cSYork Sun
617*474ecd2cSYork Sunconfig TPL_ENV_IS_IN_EXT4
618*474ecd2cSYork Sun	bool "TPL Environment is in a EXT4 filesystem"
619*474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
620*474ecd2cSYork Sun	depends on ENV_IS_IN_EXT4
621*474ecd2cSYork Sun	default y
622*474ecd2cSYork Sun	help
623*474ecd2cSYork Sun	  Similar to ENV_IS_IN_EXT4, used for TPL environment.
624*474ecd2cSYork Sun
625*474ecd2cSYork Sunconfig TPL_ENV_IS_IN_NAND
626*474ecd2cSYork Sun	bool "TPL Environment in a NAND device"
627*474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
628*474ecd2cSYork Sun	depends on ENV_IS_IN_NAND
629*474ecd2cSYork Sun	default y
630*474ecd2cSYork Sun	help
631*474ecd2cSYork Sun	  Similar to ENV_IS_IN_NAND, used for TPL environment.
632*474ecd2cSYork Sun
633*474ecd2cSYork Sunconfig TPL_ENV_IS_IN_SPI_FLASH
634*474ecd2cSYork Sun	bool "TPL Environment is in SPI flash"
635*474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
636*474ecd2cSYork Sun	depends on ENV_IS_IN_SPI_FLASH
637*474ecd2cSYork Sun	default y
638*474ecd2cSYork Sun	help
639*474ecd2cSYork Sun	  Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
640*474ecd2cSYork Sun
641*474ecd2cSYork Sunconfig TPL_ENV_IS_IN_FLASH
642*474ecd2cSYork Sun	bool "TPL Environment in flash memory"
643*474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
644*474ecd2cSYork Sun	depends on ENV_IS_IN_FLASH
645*474ecd2cSYork Sun	default y
646*474ecd2cSYork Sun	help
647*474ecd2cSYork Sun	  Similar to ENV_IS_IN_FLASH, used for TPL environment.
648*474ecd2cSYork Sun
649*474ecd2cSYork Sunendif
650*474ecd2cSYork Sun
6510649cd0dSSimon Glassendmenu
652