10649cd0dSSimon Glassmenu "Environment" 20649cd0dSSimon Glass 3c1c3fe23SSimon Glasschoice 4c1c3fe23SSimon Glass prompt "Select the location of the environment" 5c1c3fe23SSimon Glass default ENV_IS_IN_MMC if ARCH_SUNXI 6c1c3fe23SSimon Glass default ENV_IS_IN_MMC if ARCH_UNIPHIER 7c1c3fe23SSimon Glass default ENV_IS_IN_MMC if ARCH_EXYNOS4 8c1c3fe23SSimon Glass default ENV_IS_IN_MMC if MX6SX || MX7D 9c1c3fe23SSimon Glass default ENV_IS_IN_MMC if TEGRA30 || TEGRA124 10c1c3fe23SSimon Glass default ENV_IS_IN_MMC if TEGRA_ARMV8_COMMON 11e94c1268SAndy Shevchenko default ENV_IS_IN_FLASH if ARCH_CINTEGRATOR 12c1c3fe23SSimon Glass default ENV_IS_IN_FLASH if ARCH_INTEGRATOR_CP 13c1c3fe23SSimon Glass default ENV_IS_IN_FLASH if M548x || M547x || M5282 || MCF547x_8x 14c1c3fe23SSimon Glass default ENV_IS_IN_FLASH if MCF532x || MCF52x2 15c1c3fe23SSimon Glass default ENV_IS_IN_FLASH if MPC86xx || MPC83xx 16c1c3fe23SSimon Glass default ENV_IS_IN_FLASH if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641 17c1c3fe23SSimon Glass default ENV_IS_IN_FLASH if SH && !CPU_SH4 18e94c1268SAndy Shevchenko default ENV_IS_IN_SPI_FLASH if ARMADA_XP 19c1c3fe23SSimon Glass default ENV_IS_IN_SPI_FLASH if INTEL_BAYTRAIL 20c1c3fe23SSimon Glass default ENV_IS_IN_SPI_FLASH if INTEL_BROADWELL 21c1c3fe23SSimon Glass default ENV_IS_IN_SPI_FLASH if NORTHBRIDGE_INTEL_IVYBRIDGE 22c1c3fe23SSimon Glass default ENV_IS_IN_SPI_FLASH if INTEL_QUARK 23c1c3fe23SSimon Glass default ENV_IS_IN_SPI_FLASH if INTEL_QUEENSBAY 24e94c1268SAndy Shevchenko default ENV_IS_IN_FAT if ARCH_BCM283X 25c1c3fe23SSimon Glass default ENV_IS_IN_FAT if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS 26c1c3fe23SSimon Glass default ENV_IS_NOWHERE 27c1c3fe23SSimon Glass help 28c1c3fe23SSimon Glass At present the environment can be stored in only one place. Use this 29c1c3fe23SSimon Glass option to select the location. This is either a device (where the 30c1c3fe23SSimon Glass environemnt information is simply written to a fixed location or 31c1c3fe23SSimon Glass partition on the device) or a filesystem (where the environment 32c1c3fe23SSimon Glass information is written to a file). 33c1c3fe23SSimon Glass 34c1c3fe23SSimon Glassconfig ENV_IS_NOWHERE 35c1c3fe23SSimon Glass bool "Environment is not stored" 36c1c3fe23SSimon Glass help 37c1c3fe23SSimon Glass Define this if you don't want to or can't have an environment stored 38c1c3fe23SSimon Glass on a storage medium. In this case the environemnt will still exist 39c1c3fe23SSimon Glass while U-Boot is running, but once U-Boot exits it will not be 40c1c3fe23SSimon Glass stored. U-Boot will therefore always start up with a default 41c1c3fe23SSimon Glass environment. 42c1c3fe23SSimon Glass 430649cd0dSSimon Glassconfig ENV_IS_IN_EEPROM 440649cd0dSSimon Glass bool "Environment in EEPROM" 450649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 460649cd0dSSimon Glass help 470649cd0dSSimon Glass Use this if you have an EEPROM or similar serial access 480649cd0dSSimon Glass device and a driver for it. 490649cd0dSSimon Glass 500649cd0dSSimon Glass - CONFIG_ENV_OFFSET: 510649cd0dSSimon Glass - CONFIG_ENV_SIZE: 520649cd0dSSimon Glass 530649cd0dSSimon Glass These two #defines specify the offset and size of the 540649cd0dSSimon Glass environment area within the total memory of your EEPROM. 550649cd0dSSimon Glass 560649cd0dSSimon Glass Note that we consider the length of the address field to 570649cd0dSSimon Glass still be one byte because the extra address bits are hidden 580649cd0dSSimon Glass in the chip address. 590649cd0dSSimon Glass 600649cd0dSSimon Glass - CONFIG_ENV_EEPROM_IS_ON_I2C 610649cd0dSSimon Glass define this, if you have I2C and SPI activated, and your 620649cd0dSSimon Glass EEPROM, which holds the environment, is on the I2C bus. 630649cd0dSSimon Glass 640649cd0dSSimon Glass - CONFIG_I2C_ENV_EEPROM_BUS 650649cd0dSSimon Glass if you have an Environment on an EEPROM reached over 660649cd0dSSimon Glass I2C muxes, you can define here, how to reach this 670649cd0dSSimon Glass EEPROM. For example: 680649cd0dSSimon Glass 690649cd0dSSimon Glass #define CONFIG_I2C_ENV_EEPROM_BUS 1 700649cd0dSSimon Glass 710649cd0dSSimon Glass EEPROM which holds the environment, is reached over 720649cd0dSSimon Glass a pca9547 i2c mux with address 0x70, channel 3. 730649cd0dSSimon Glass 740649cd0dSSimon Glassconfig ENV_IS_IN_FAT 750649cd0dSSimon Glass bool "Environment is in a FAT filesystem" 760649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 770649cd0dSSimon Glass select FAT_WRITE 780649cd0dSSimon Glass help 790649cd0dSSimon Glass Define this if you want to use the FAT file system for the environment. 800649cd0dSSimon Glass 810649cd0dSSimon Glass - CONFIG_FAT_WRITE: 820649cd0dSSimon Glass This must be enabled. Otherwise it cannot save the environment file. 830649cd0dSSimon Glass 840649cd0dSSimon Glassconfig ENV_IS_IN_FLASH 850649cd0dSSimon Glass bool "Environment in flash memory" 860649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 870649cd0dSSimon Glass help 880649cd0dSSimon Glass Define this if you have a flash device which you want to use for the 890649cd0dSSimon Glass environment. 900649cd0dSSimon Glass 910649cd0dSSimon Glass a) The environment occupies one whole flash sector, which is 920649cd0dSSimon Glass "embedded" in the text segment with the U-Boot code. This 930649cd0dSSimon Glass happens usually with "bottom boot sector" or "top boot 940649cd0dSSimon Glass sector" type flash chips, which have several smaller 950649cd0dSSimon Glass sectors at the start or the end. For instance, such a 960649cd0dSSimon Glass layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In 970649cd0dSSimon Glass such a case you would place the environment in one of the 980649cd0dSSimon Glass 4 kB sectors - with U-Boot code before and after it. With 990649cd0dSSimon Glass "top boot sector" type flash chips, you would put the 1000649cd0dSSimon Glass environment in one of the last sectors, leaving a gap 1010649cd0dSSimon Glass between U-Boot and the environment. 1020649cd0dSSimon Glass 1030649cd0dSSimon Glass CONFIG_ENV_OFFSET: 1040649cd0dSSimon Glass 1050649cd0dSSimon Glass Offset of environment data (variable area) to the 1060649cd0dSSimon Glass beginning of flash memory; for instance, with bottom boot 1070649cd0dSSimon Glass type flash chips the second sector can be used: the offset 1080649cd0dSSimon Glass for this sector is given here. 1090649cd0dSSimon Glass 1100649cd0dSSimon Glass CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE. 1110649cd0dSSimon Glass 1120649cd0dSSimon Glass CONFIG_ENV_ADDR: 1130649cd0dSSimon Glass 1140649cd0dSSimon Glass This is just another way to specify the start address of 1150649cd0dSSimon Glass the flash sector containing the environment (instead of 1160649cd0dSSimon Glass CONFIG_ENV_OFFSET). 1170649cd0dSSimon Glass 1180649cd0dSSimon Glass CONFIG_ENV_SECT_SIZE: 1190649cd0dSSimon Glass 1200649cd0dSSimon Glass Size of the sector containing the environment. 1210649cd0dSSimon Glass 1220649cd0dSSimon Glass 1230649cd0dSSimon Glass b) Sometimes flash chips have few, equal sized, BIG sectors. 1240649cd0dSSimon Glass In such a case you don't want to spend a whole sector for 1250649cd0dSSimon Glass the environment. 1260649cd0dSSimon Glass 1270649cd0dSSimon Glass CONFIG_ENV_SIZE: 1280649cd0dSSimon Glass 1290649cd0dSSimon Glass If you use this in combination with CONFIG_ENV_IS_IN_FLASH 1300649cd0dSSimon Glass and CONFIG_ENV_SECT_SIZE, you can specify to use only a part 1310649cd0dSSimon Glass of this flash sector for the environment. This saves 1320649cd0dSSimon Glass memory for the RAM copy of the environment. 1330649cd0dSSimon Glass 1340649cd0dSSimon Glass It may also save flash memory if you decide to use this 1350649cd0dSSimon Glass when your environment is "embedded" within U-Boot code, 1360649cd0dSSimon Glass since then the remainder of the flash sector could be used 1370649cd0dSSimon Glass for U-Boot code. It should be pointed out that this is 1380649cd0dSSimon Glass STRONGLY DISCOURAGED from a robustness point of view: 1390649cd0dSSimon Glass updating the environment in flash makes it always 1400649cd0dSSimon Glass necessary to erase the WHOLE sector. If something goes 1410649cd0dSSimon Glass wrong before the contents has been restored from a copy in 1420649cd0dSSimon Glass RAM, your target system will be dead. 1430649cd0dSSimon Glass 1440649cd0dSSimon Glass CONFIG_ENV_ADDR_REDUND 1450649cd0dSSimon Glass CONFIG_ENV_SIZE_REDUND 1460649cd0dSSimon Glass 1470649cd0dSSimon Glass These settings describe a second storage area used to hold 1480649cd0dSSimon Glass a redundant copy of the environment data, so that there is 1490649cd0dSSimon Glass a valid backup copy in case there is a power failure during 1500649cd0dSSimon Glass a "saveenv" operation. 1510649cd0dSSimon Glass 1520649cd0dSSimon Glass BE CAREFUL! Any changes to the flash layout, and some changes to the 1530649cd0dSSimon Glass source code will make it necessary to adapt <board>/u-boot.lds* 1540649cd0dSSimon Glass accordingly! 1550649cd0dSSimon Glass 1560649cd0dSSimon Glassconfig ENV_IS_IN_MMC 1570649cd0dSSimon Glass bool "Environment in an MMC device" 1580649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 1590649cd0dSSimon Glass help 1600649cd0dSSimon Glass Define this if you have an MMC device which you want to use for the 1610649cd0dSSimon Glass environment. 1620649cd0dSSimon Glass 1630649cd0dSSimon Glass CONFIG_SYS_MMC_ENV_DEV: 1640649cd0dSSimon Glass 1650649cd0dSSimon Glass Specifies which MMC device the environment is stored in. 1660649cd0dSSimon Glass 1670649cd0dSSimon Glass CONFIG_SYS_MMC_ENV_PART (optional): 1680649cd0dSSimon Glass 1690649cd0dSSimon Glass Specifies which MMC partition the environment is stored in. If not 1700649cd0dSSimon Glass set, defaults to partition 0, the user area. Common values might be 1710649cd0dSSimon Glass 1 (first MMC boot partition), 2 (second MMC boot partition). 1720649cd0dSSimon Glass 1730649cd0dSSimon Glass CONFIG_ENV_OFFSET: 1740649cd0dSSimon Glass CONFIG_ENV_SIZE: 1750649cd0dSSimon Glass 1760649cd0dSSimon Glass These two #defines specify the offset and size of the environment 1770649cd0dSSimon Glass area within the specified MMC device. 1780649cd0dSSimon Glass 1790649cd0dSSimon Glass If offset is positive (the usual case), it is treated as relative to 1800649cd0dSSimon Glass the start of the MMC partition. If offset is negative, it is treated 1810649cd0dSSimon Glass as relative to the end of the MMC partition. This can be useful if 1820649cd0dSSimon Glass your board may be fitted with different MMC devices, which have 1830649cd0dSSimon Glass different sizes for the MMC partitions, and you always want the 1840649cd0dSSimon Glass environment placed at the very end of the partition, to leave the 1850649cd0dSSimon Glass maximum possible space before it, to store other data. 1860649cd0dSSimon Glass 1870649cd0dSSimon Glass These two values are in units of bytes, but must be aligned to an 1880649cd0dSSimon Glass MMC sector boundary. 1890649cd0dSSimon Glass 1900649cd0dSSimon Glass CONFIG_ENV_OFFSET_REDUND (optional): 1910649cd0dSSimon Glass 1920649cd0dSSimon Glass Specifies a second storage area, of CONFIG_ENV_SIZE size, used to 1930649cd0dSSimon Glass hold a redundant copy of the environment data. This provides a 1940649cd0dSSimon Glass valid backup copy in case the other copy is corrupted, e.g. due 1950649cd0dSSimon Glass to a power failure during a "saveenv" operation. 1960649cd0dSSimon Glass 1970649cd0dSSimon Glass This value may also be positive or negative; this is handled in the 1980649cd0dSSimon Glass same way as CONFIG_ENV_OFFSET. 1990649cd0dSSimon Glass 2000649cd0dSSimon Glass This value is also in units of bytes, but must also be aligned to 2010649cd0dSSimon Glass an MMC sector boundary. 2020649cd0dSSimon Glass 2030649cd0dSSimon Glass CONFIG_ENV_SIZE_REDUND (optional): 2040649cd0dSSimon Glass 2050649cd0dSSimon Glass This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is 2060649cd0dSSimon Glass set. If this value is set, it must be set to the same value as 2070649cd0dSSimon Glass CONFIG_ENV_SIZE. 2080649cd0dSSimon Glass 2090649cd0dSSimon Glassconfig ENV_IS_IN_NAND 2100649cd0dSSimon Glass bool "Environment in a NAND device" 2110649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 2120649cd0dSSimon Glass help 2130649cd0dSSimon Glass Define this if you have a NAND device which you want to use for the 2140649cd0dSSimon Glass environment. 2150649cd0dSSimon Glass 2160649cd0dSSimon Glass - CONFIG_ENV_OFFSET: 2170649cd0dSSimon Glass - CONFIG_ENV_SIZE: 2180649cd0dSSimon Glass 2190649cd0dSSimon Glass These two #defines specify the offset and size of the environment 2200649cd0dSSimon Glass area within the first NAND device. CONFIG_ENV_OFFSET must be 2210649cd0dSSimon Glass aligned to an erase block boundary. 2220649cd0dSSimon Glass 2230649cd0dSSimon Glass - CONFIG_ENV_OFFSET_REDUND (optional): 2240649cd0dSSimon Glass 2250649cd0dSSimon Glass This setting describes a second storage area of CONFIG_ENV_SIZE 2260649cd0dSSimon Glass size used to hold a redundant copy of the environment data, so 2270649cd0dSSimon Glass that there is a valid backup copy in case there is a power failure 2280649cd0dSSimon Glass during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be 2290649cd0dSSimon Glass aligned to an erase block boundary. 2300649cd0dSSimon Glass 2310649cd0dSSimon Glass - CONFIG_ENV_RANGE (optional): 2320649cd0dSSimon Glass 2330649cd0dSSimon Glass Specifies the length of the region in which the environment 2340649cd0dSSimon Glass can be written. This should be a multiple of the NAND device's 2350649cd0dSSimon Glass block size. Specifying a range with more erase blocks than 2360649cd0dSSimon Glass are needed to hold CONFIG_ENV_SIZE allows bad blocks within 2370649cd0dSSimon Glass the range to be avoided. 2380649cd0dSSimon Glass 2390649cd0dSSimon Glass - CONFIG_ENV_OFFSET_OOB (optional): 2400649cd0dSSimon Glass 2410649cd0dSSimon Glass Enables support for dynamically retrieving the offset of the 2420649cd0dSSimon Glass environment from block zero's out-of-band data. The 2430649cd0dSSimon Glass "nand env.oob" command can be used to record this offset. 2440649cd0dSSimon Glass Currently, CONFIG_ENV_OFFSET_REDUND is not supported when 2450649cd0dSSimon Glass using CONFIG_ENV_OFFSET_OOB. 2460649cd0dSSimon Glass 2470649cd0dSSimon Glassconfig ENV_IS_IN_NVRAM 2480649cd0dSSimon Glass bool "Environment in a non-volatile RAM" 2490649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 2500649cd0dSSimon Glass help 2510649cd0dSSimon Glass Define this if you have some non-volatile memory device 2520649cd0dSSimon Glass (NVRAM, battery buffered SRAM) which you want to use for the 2530649cd0dSSimon Glass environment. 2540649cd0dSSimon Glass 2550649cd0dSSimon Glass - CONFIG_ENV_ADDR: 2560649cd0dSSimon Glass - CONFIG_ENV_SIZE: 2570649cd0dSSimon Glass 2580649cd0dSSimon Glass These two #defines are used to determine the memory area you 2590649cd0dSSimon Glass want to use for environment. It is assumed that this memory 2600649cd0dSSimon Glass can just be read and written to, without any special 2610649cd0dSSimon Glass provision. 2620649cd0dSSimon Glass 2630649cd0dSSimon Glassconfig ENV_IS_IN_ONENAND 2640649cd0dSSimon Glass bool "Environment is in OneNAND" 2650649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 2660649cd0dSSimon Glass help 2670649cd0dSSimon Glass Define this if you want to put your local device's environment in 2680649cd0dSSimon Glass OneNAND. 2690649cd0dSSimon Glass 2700649cd0dSSimon Glass - CONFIG_ENV_ADDR: 2710649cd0dSSimon Glass - CONFIG_ENV_SIZE: 2720649cd0dSSimon Glass 2730649cd0dSSimon Glass These two #defines are used to determine the device range you 2740649cd0dSSimon Glass want to use for environment. It is assumed that this memory 2750649cd0dSSimon Glass can just be read and written to, without any special 2760649cd0dSSimon Glass provision. 2770649cd0dSSimon Glass 2780649cd0dSSimon Glassconfig ENV_IS_IN_REMOTE 2790649cd0dSSimon Glass bool "Environment is in remove memory space" 2800649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 2810649cd0dSSimon Glass help 2820649cd0dSSimon Glass Define this if you have a remote memory space which you 2830649cd0dSSimon Glass want to use for the local device's environment. 2840649cd0dSSimon Glass 2850649cd0dSSimon Glass - CONFIG_ENV_ADDR: 2860649cd0dSSimon Glass - CONFIG_ENV_SIZE: 2870649cd0dSSimon Glass 2880649cd0dSSimon Glass These two #defines specify the address and size of the 2890649cd0dSSimon Glass environment area within the remote memory space. The 2900649cd0dSSimon Glass local device can get the environment from remote memory 2910649cd0dSSimon Glass space by SRIO or PCIE links. 2920649cd0dSSimon Glass 2930649cd0dSSimon Glassconfig ENV_IS_IN_SPI_FLASH 2940649cd0dSSimon Glass bool "Environment is in SPI flash" 2950649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 2960649cd0dSSimon Glass help 2970649cd0dSSimon Glass Define this if you have a SPI Flash memory device which you 2980649cd0dSSimon Glass want to use for the environment. 2990649cd0dSSimon Glass 3000649cd0dSSimon Glass - CONFIG_ENV_OFFSET: 3010649cd0dSSimon Glass - CONFIG_ENV_SIZE: 3020649cd0dSSimon Glass 3030649cd0dSSimon Glass These two #defines specify the offset and size of the 3040649cd0dSSimon Glass environment area within the SPI Flash. CONFIG_ENV_OFFSET must be 3050649cd0dSSimon Glass aligned to an erase sector boundary. 3060649cd0dSSimon Glass 3070649cd0dSSimon Glass - CONFIG_ENV_SECT_SIZE: 3080649cd0dSSimon Glass 3090649cd0dSSimon Glass Define the SPI flash's sector size. 3100649cd0dSSimon Glass 3110649cd0dSSimon Glass - CONFIG_ENV_OFFSET_REDUND (optional): 3120649cd0dSSimon Glass 3130649cd0dSSimon Glass This setting describes a second storage area of CONFIG_ENV_SIZE 3140649cd0dSSimon Glass size used to hold a redundant copy of the environment data, so 3150649cd0dSSimon Glass that there is a valid backup copy in case there is a power failure 3160649cd0dSSimon Glass during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be 3170649cd0dSSimon Glass aligned to an erase sector boundary. 3180649cd0dSSimon Glass 3190649cd0dSSimon Glass - CONFIG_ENV_SPI_BUS (optional): 3200649cd0dSSimon Glass - CONFIG_ENV_SPI_CS (optional): 3210649cd0dSSimon Glass 3220649cd0dSSimon Glass Define the SPI bus and chip select. If not defined they will be 0. 3230649cd0dSSimon Glass 3240649cd0dSSimon Glass - CONFIG_ENV_SPI_MAX_HZ (optional): 3250649cd0dSSimon Glass 3260649cd0dSSimon Glass Define the SPI max work clock. If not defined then use 1MHz. 3270649cd0dSSimon Glass 3280649cd0dSSimon Glass - CONFIG_ENV_SPI_MODE (optional): 3290649cd0dSSimon Glass 3300649cd0dSSimon Glass Define the SPI work mode. If not defined then use SPI_MODE_3. 3310649cd0dSSimon Glass 3320649cd0dSSimon Glassconfig ENV_IS_IN_UBI 3330649cd0dSSimon Glass bool "Environment in a UBI volume" 3340649cd0dSSimon Glass depends on !CHAIN_OF_TRUST 3350649cd0dSSimon Glass help 3360649cd0dSSimon Glass Define this if you have an UBI volume that you want to use for the 3370649cd0dSSimon Glass environment. This has the benefit of wear-leveling the environment 3380649cd0dSSimon Glass accesses, which is important on NAND. 3390649cd0dSSimon Glass 3400649cd0dSSimon Glass - CONFIG_ENV_UBI_PART: 3410649cd0dSSimon Glass 3420649cd0dSSimon Glass Define this to a string that is the mtd partition containing the UBI. 3430649cd0dSSimon Glass 3440649cd0dSSimon Glass - CONFIG_ENV_UBI_VOLUME: 3450649cd0dSSimon Glass 3460649cd0dSSimon Glass Define this to the name of the volume that you want to store the 3470649cd0dSSimon Glass environment in. 3480649cd0dSSimon Glass 3490649cd0dSSimon Glass - CONFIG_ENV_UBI_VOLUME_REDUND: 3500649cd0dSSimon Glass 3510649cd0dSSimon Glass Define this to the name of another volume to store a second copy of 3520649cd0dSSimon Glass the environment in. This will enable redundant environments in UBI. 3530649cd0dSSimon Glass It is assumed that both volumes are in the same MTD partition. 3540649cd0dSSimon Glass 3550649cd0dSSimon Glass - CONFIG_UBI_SILENCE_MSG 3560649cd0dSSimon Glass - CONFIG_UBIFS_SILENCE_MSG 3570649cd0dSSimon Glass 3580649cd0dSSimon Glass You will probably want to define these to avoid a really noisy system 3590649cd0dSSimon Glass when storing the env in UBI. 3600649cd0dSSimon Glass 3612ba7147fSJoseph Chenconfig ENV_IS_IN_BLK_DEV 3622ba7147fSJoseph Chen bool "Environment in a block device" 36348802b42SJoseph Chen depends on !CHAIN_OF_TRUST && BLK 3642ba7147fSJoseph Chen help 3652ba7147fSJoseph Chen Define this if you have an Block device which you want to use for the 3662ba7147fSJoseph Chen environment. 3672ba7147fSJoseph Chen 3682ba7147fSJoseph Chen - CONFIG_ENV_OFFSET: 3692ba7147fSJoseph Chen - CONFIG_ENV_SIZE: 3702ba7147fSJoseph Chen 3712ba7147fSJoseph Chen These two #defines specify the offset and size of the environment 3722ba7147fSJoseph Chen area within the specified Block device. These two values are in units 3732ba7147fSJoseph Chen of bytes, but must be aligned to an Block sector boundary. 3742ba7147fSJoseph Chen 3752ba7147fSJoseph Chen - CONFIG_ENV_OFFSET_REDUND (optional): 3762ba7147fSJoseph Chen 3772ba7147fSJoseph Chen Specifies a second storage area, of CONFIG_ENV_SIZE size, used to 3782ba7147fSJoseph Chen hold a redundant copy of the environment data. This provides a 3792ba7147fSJoseph Chen valid backup copy in case the other copy is corrupted, e.g. due 3802ba7147fSJoseph Chen to a power failure during a "saveenv" operation. This is handled 3812ba7147fSJoseph Chen in the same way as CONFIG_ENV_OFFSET. 3822ba7147fSJoseph Chen 3832ba7147fSJoseph Chen - CONFIG_ENV_SIZE_REDUND (optional): 3842ba7147fSJoseph Chen 3852ba7147fSJoseph Chen This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is 3862ba7147fSJoseph Chen set. If this value is set, it must be set to the same value as 3872ba7147fSJoseph Chen CONFIG_ENV_SIZE. 3882ba7147fSJoseph Chen 3892ba7147fSJoseph Chen - CONFIG_SYS_MMC_ENV_PART (optional): 3902ba7147fSJoseph Chen 3912ba7147fSJoseph Chen Specifies which MMC partition the environment is stored in. If not 3922ba7147fSJoseph Chen set, defaults to partition 0, the user area. Common values might be 3932ba7147fSJoseph Chen 1 (first MMC boot partition), 2 (second MMC boot partition). 3942ba7147fSJoseph Chen 395c1c3fe23SSimon Glassendchoice 3960649cd0dSSimon Glass 3975eb35220STom Riniconfig ENV_AES 3985eb35220STom Rini bool "AES-128 encryption for stored environment (DEPRECATED)" 3995eb35220STom Rini help 4005eb35220STom Rini Enable this to have the on-device stored environment be encrypted 4015eb35220STom Rini with AES-128. The implementation here however has security 4025eb35220STom Rini complications and is not recommended for use. Please see 4035eb35220STom Rini CVE-2017-3225 and CVE-2017-3226 for more details. 4045eb35220STom Rini 4050649cd0dSSimon Glassconfig ENV_FAT_INTERFACE 4060649cd0dSSimon Glass string "Name of the block device for the environment" 4070649cd0dSSimon Glass depends on ENV_IS_IN_FAT 4080649cd0dSSimon Glass default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91 4090649cd0dSSimon Glass help 4100649cd0dSSimon Glass Define this to a string that is the name of the block device. 4110649cd0dSSimon Glass 4120649cd0dSSimon Glassconfig ENV_FAT_DEVICE_AND_PART 4130649cd0dSSimon Glass string "Device and partition for where to store the environemt in FAT" 4140649cd0dSSimon Glass depends on ENV_IS_IN_FAT 4150649cd0dSSimon Glass default "0:1" if TI_COMMON_CMD_OPTIONS 4160649cd0dSSimon Glass default "0:auto" if ARCH_ZYNQMP 4170649cd0dSSimon Glass default "0" if ARCH_AT91 4180649cd0dSSimon Glass help 4190649cd0dSSimon Glass Define this to a string to specify the partition of the device. It can 4200649cd0dSSimon Glass be as following: 4210649cd0dSSimon Glass 4220649cd0dSSimon Glass "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1) 4230649cd0dSSimon Glass - "D:P": device D partition P. Error occurs if device D has no 4240649cd0dSSimon Glass partition table. 4250649cd0dSSimon Glass - "D:0": device D. 4260649cd0dSSimon Glass - "D" or "D:": device D partition 1 if device D has partition 4270649cd0dSSimon Glass table, or the whole device D if has no partition 4280649cd0dSSimon Glass table. 4290649cd0dSSimon Glass - "D:auto": first partition in device D with bootable flag set. 4300649cd0dSSimon Glass If none, first valid partition in device D. If no 4310649cd0dSSimon Glass partition table then means device D. 4320649cd0dSSimon Glass 4330649cd0dSSimon Glassconfig ENV_FAT_FILE 4340649cd0dSSimon Glass string "Name of the FAT file to use for the environemnt" 4350649cd0dSSimon Glass depends on ENV_IS_IN_FAT 4360649cd0dSSimon Glass default "uboot.env" 4370649cd0dSSimon Glass help 4380649cd0dSSimon Glass It's a string of the FAT file name. This file use to store the 4390649cd0dSSimon Glass environment. 4400649cd0dSSimon Glass 441e31de615SJoseph Chenconfig ENVF 442e31de615SJoseph Chen bool "Environment fragment is store in envf partition" 443e31de615SJoseph Chen depends on ENV_IS_NOWHERE 444e31de615SJoseph Chen help 445e31de615SJoseph Chen Use this if you want to add a env fragment partition to overlay/store 446e31de615SJoseph Chen some specific environments. 447e31de615SJoseph Chen 448e31de615SJoseph Chenconfig SPL_ENVF 449e31de615SJoseph Chen bool "Environment fragment is store in envf partition in SPL" 450e31de615SJoseph Chen depends on ENVF && SPL 451e31de615SJoseph Chen default y 452e31de615SJoseph Chen help 453e31de615SJoseph Chen Use this if you want to add a env fragment partition to overlay/store 454e31de615SJoseph Chen some specific environments in SPL. But now only parse env partition 455e31de615SJoseph Chen table. 456e31de615SJoseph Chen 457e31de615SJoseph Chenconfig ENVF_LIST 458e31de615SJoseph Chen string "Specific environments white list of env fragment" 459e31de615SJoseph Chen depends on ENVF 460e31de615SJoseph Chen default "blkdevparts mtdparts sys_bootargs app reserved" 461e31de615SJoseph Chen help 462e31de615SJoseph Chen The environment white list. 463e31de615SJoseph Chen 464*38ba8ffcSJoseph Chenconfig ENV_MEM_LAYOUT 465*38ba8ffcSJoseph Chen bool "Enable environment for the Image memory layout" 466*38ba8ffcSJoseph Chen default n 467*38ba8ffcSJoseph Chen help 468*38ba8ffcSJoseph Chen Use this if you want to define CONFIG_ENV_MEM_LAYOUT_SETTINGS 469*38ba8ffcSJoseph Chen to override the system default environments in plat header. 470*38ba8ffcSJoseph Chen 471*38ba8ffcSJoseph Chenconfig ENV_MEM_LAYOUT_SETTINGS 472*38ba8ffcSJoseph Chen string "Environment of the Image memory layout settings" 473*38ba8ffcSJoseph Chen depends on ENV_MEM_LAYOUT 474*38ba8ffcSJoseph Chen default "" 475*38ba8ffcSJoseph Chen help 476*38ba8ffcSJoseph Chen The environment settings of Image memory layout. 477*38ba8ffcSJoseph Chen 4780649cd0dSSimon Glassif ARCH_SUNXI 4790649cd0dSSimon Glass 4800649cd0dSSimon Glassconfig ENV_OFFSET 4810649cd0dSSimon Glass hex "Environment Offset" 4820649cd0dSSimon Glass depends on !ENV_IS_IN_UBI 4830649cd0dSSimon Glass depends on !ENV_IS_NOWHERE 4840649cd0dSSimon Glass default 0x88000 if ARCH_SUNXI 4850649cd0dSSimon Glass help 4860649cd0dSSimon Glass Offset from the start of the device (or partition) 4870649cd0dSSimon Glass 4880649cd0dSSimon Glassconfig ENV_SIZE 4890649cd0dSSimon Glass hex "Environment Size" 4900649cd0dSSimon Glass depends on !ENV_IS_NOWHERE 4910649cd0dSSimon Glass default 0x20000 if ARCH_SUNXI 4920649cd0dSSimon Glass help 4930649cd0dSSimon Glass Size of the environment storage area 4940649cd0dSSimon Glass 4950649cd0dSSimon Glassconfig ENV_UBI_PART 4960649cd0dSSimon Glass string "UBI partition name" 4970649cd0dSSimon Glass depends on ENV_IS_IN_UBI 4980649cd0dSSimon Glass help 4990649cd0dSSimon Glass MTD partition containing the UBI device 5000649cd0dSSimon Glass 5010649cd0dSSimon Glassconfig ENV_UBI_VOLUME 5020649cd0dSSimon Glass string "UBI volume name" 5030649cd0dSSimon Glass depends on ENV_IS_IN_UBI 5040649cd0dSSimon Glass help 5050649cd0dSSimon Glass Name of the volume that you want to store the environment in. 5060649cd0dSSimon Glass 5070649cd0dSSimon Glassendif 5080649cd0dSSimon Glass 50949a2ef15SKlaus Gogerif ARCH_ROCKCHIP 51049a2ef15SKlaus Goger 51149a2ef15SKlaus Gogerconfig ENV_OFFSET 512258d2dcbSJoseph Chen hex "Environment offset" 51349a2ef15SKlaus Goger depends on !ENV_IS_IN_UBI 5147a38549fSJoseph Chen depends on !ENV_IS_NOWHERE || ENVF 5151e890c70SJoseph Chen default 0x0 if ENVF 51649a2ef15SKlaus Goger default 0x3f8000 51749a2ef15SKlaus Goger help 51849a2ef15SKlaus Goger Offset from the start of the device (or partition) 51949a2ef15SKlaus Goger 52049a2ef15SKlaus Gogerconfig ENV_SIZE 521258d2dcbSJoseph Chen hex "Environment size" 52249a2ef15SKlaus Goger default 0x8000 52349a2ef15SKlaus Goger help 52449a2ef15SKlaus Goger Size of the environment storage area 52549a2ef15SKlaus Goger 5261e890c70SJoseph Chenif ENVF 5277a38549fSJoseph Chenconfig ENV_OFFSET_REDUND 5287a38549fSJoseph Chen hex "Environment redundant(backup) offset" 5297a38549fSJoseph Chen default ENV_OFFSET 5307a38549fSJoseph Chen help 5317a38549fSJoseph Chen Redundant(backup) offset from the start of the device (or partition), 5327a38549fSJoseph Chen this size must be ENV_SIZE. 5331e890c70SJoseph Chen 534bc1bea61SJoseph Chenif CMD_NAND || MTD_SPI_NAND 5351e890c70SJoseph Chenconfig ENV_NAND_OFFSET 5361e890c70SJoseph Chen hex "Environment offset in Nand" 5371e890c70SJoseph Chen default 0x0 5381e890c70SJoseph Chen 5391e890c70SJoseph Chenconfig ENV_NAND_OFFSET_REDUND 5401e890c70SJoseph Chen hex "Environment redundant(backup) offset in Nand" 5411e890c70SJoseph Chen default ENV_NAND_OFFSET 5421e890c70SJoseph Chen 5431e890c70SJoseph Chenconfig ENV_NAND_SIZE 5441e890c70SJoseph Chen hex "Environment size in Nand" 5451e890c70SJoseph Chen default 0x40000 5461e890c70SJoseph Chenendif 547bc1bea61SJoseph Chen 548bc1bea61SJoseph Chenif SPI_FLASH 549bc1bea61SJoseph Chenconfig ENV_NOR_OFFSET 550bc1bea61SJoseph Chen hex "Environment offset in Nor" 551bc1bea61SJoseph Chen default 0x0 552bc1bea61SJoseph Chen 553bc1bea61SJoseph Chenconfig ENV_NOR_OFFSET_REDUND 554bc1bea61SJoseph Chen hex "Environment redundant(backup) offset in Nor" 555bc1bea61SJoseph Chen default ENV_NOR_OFFSET 556bc1bea61SJoseph Chen 557bc1bea61SJoseph Chenconfig ENV_NOR_SIZE 558bc1bea61SJoseph Chen hex "Environment size in Nor" 559bc1bea61SJoseph Chen default 0x10000 560bc1bea61SJoseph Chenendif 561bc1bea61SJoseph Chen 562bc1bea61SJoseph Chenendif 56349a2ef15SKlaus Gogerendif 56449a2ef15SKlaus Goger 5650649cd0dSSimon Glassendmenu 566