Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. menu "Environment"
  2. config ENV_SUPPORT
  3. def_bool y
  4. config SAVEENV
  5. def_bool y if CMD_SAVEENV
  6. config ENV_OVERWRITE
  7. bool "Enable overwriting environment"
  8. help
  9. Use this to permit overriding of certain environmental variables
  10. like Ethernet and Serial
  11. config ENV_IS_NOWHERE
  12. bool "Environment is not stored"
  13. default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \
  14. !ENV_IS_IN_FAT && !ENV_IS_IN_FLASH && \
  15. !ENV_IS_IN_MMC && !ENV_IS_IN_NAND && \
  16. !ENV_IS_IN_NVRAM && !ENV_IS_IN_ONENAND && \
  17. !ENV_IS_IN_REMOTE && !ENV_IS_IN_SPI_FLASH && \
  18. !ENV_IS_IN_UBI
  19. help
  20. Define this if you don't want to or can't have an environment stored
  21. on a storage medium. In this case the environment will still exist
  22. while U-Boot is running, but once U-Boot exits it will not be
  23. stored. U-Boot will therefore always start up with a default
  24. environment.
  25. config ENV_IS_IN_EEPROM
  26. bool "Environment in EEPROM"
  27. depends on !CHAIN_OF_TRUST
  28. help
  29. Use this if you have an EEPROM or similar serial access
  30. device and a driver for it.
  31. - CONFIG_ENV_OFFSET:
  32. - CONFIG_ENV_SIZE:
  33. These two #defines specify the offset and size of the
  34. environment area within the total memory of your EEPROM.
  35. Note that we consider the length of the address field to
  36. still be one byte because the extra address bits are hidden
  37. in the chip address.
  38. - CONFIG_ENV_EEPROM_IS_ON_I2C
  39. define this, if you have I2C and SPI activated, and your
  40. EEPROM, which holds the environment, is on the I2C bus.
  41. - CONFIG_I2C_ENV_EEPROM_BUS
  42. if you have an Environment on an EEPROM reached over
  43. I2C muxes, you can define here, how to reach this
  44. EEPROM. For example:
  45. #define CONFIG_I2C_ENV_EEPROM_BUS 1
  46. EEPROM which holds the environment, is reached over
  47. a pca9547 i2c mux with address 0x70, channel 3.
  48. config ENV_IS_IN_FAT
  49. bool "Environment is in a FAT filesystem"
  50. depends on !CHAIN_OF_TRUST
  51. default y if ARCH_BCM283X
  52. default y if ARCH_SUNXI && MMC
  53. default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
  54. select FS_FAT
  55. select FAT_WRITE
  56. help
  57. Define this if you want to use the FAT file system for the environment.
  58. config ENV_IS_IN_EXT4
  59. bool "Environment is in a EXT4 filesystem"
  60. depends on !CHAIN_OF_TRUST
  61. select FS_EXT4
  62. select EXT4_WRITE
  63. help
  64. Define this if you want to use the EXT4 file system for the environment.
  65. config ENV_IS_IN_FLASH
  66. bool "Environment in flash memory"
  67. depends on !CHAIN_OF_TRUST
  68. default y if ARCH_CINTEGRATOR
  69. default y if ARCH_INTEGRATOR_CP
  70. default y if M548x || M547x || M5282 || MCF547x_8x
  71. default y if MCF532x || MCF52x2
  72. default y if MPC86xx || MPC83xx
  73. default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
  74. default y if SH && !CPU_SH4
  75. help
  76. Define this if you have a flash device which you want to use for the
  77. environment.
  78. a) The environment occupies one whole flash sector, which is
  79. "embedded" in the text segment with the U-Boot code. This
  80. happens usually with "bottom boot sector" or "top boot
  81. sector" type flash chips, which have several smaller
  82. sectors at the start or the end. For instance, such a
  83. layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
  84. such a case you would place the environment in one of the
  85. 4 kB sectors - with U-Boot code before and after it. With
  86. "top boot sector" type flash chips, you would put the
  87. environment in one of the last sectors, leaving a gap
  88. between U-Boot and the environment.
  89. CONFIG_ENV_OFFSET:
  90. Offset of environment data (variable area) to the
  91. beginning of flash memory; for instance, with bottom boot
  92. type flash chips the second sector can be used: the offset
  93. for this sector is given here.
  94. CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
  95. CONFIG_ENV_ADDR:
  96. This is just another way to specify the start address of
  97. the flash sector containing the environment (instead of
  98. CONFIG_ENV_OFFSET).
  99. CONFIG_ENV_SECT_SIZE:
  100. Size of the sector containing the environment.
  101. b) Sometimes flash chips have few, equal sized, BIG sectors.
  102. In such a case you don't want to spend a whole sector for
  103. the environment.
  104. CONFIG_ENV_SIZE:
  105. If you use this in combination with CONFIG_ENV_IS_IN_FLASH
  106. and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
  107. of this flash sector for the environment. This saves
  108. memory for the RAM copy of the environment.
  109. It may also save flash memory if you decide to use this
  110. when your environment is "embedded" within U-Boot code,
  111. since then the remainder of the flash sector could be used
  112. for U-Boot code. It should be pointed out that this is
  113. STRONGLY DISCOURAGED from a robustness point of view:
  114. updating the environment in flash makes it always
  115. necessary to erase the WHOLE sector. If something goes
  116. wrong before the contents has been restored from a copy in
  117. RAM, your target system will be dead.
  118. CONFIG_ENV_ADDR_REDUND
  119. These settings describe a second storage area used to hold
  120. a redundant copy of the environment data, so that there is
  121. a valid backup copy in case there is a power failure during
  122. a "saveenv" operation.
  123. BE CAREFUL! Any changes to the flash layout, and some changes to the
  124. source code will make it necessary to adapt <board>/u-boot.lds*
  125. accordingly!
  126. config ENV_IS_IN_MMC
  127. bool "Environment in an MMC device"
  128. depends on !CHAIN_OF_TRUST
  129. depends on MMC
  130. default y if ARCH_EXYNOS4
  131. default y if MX6SX || MX7D
  132. default y if TEGRA30 || TEGRA124
  133. default y if TEGRA_ARMV8_COMMON
  134. help
  135. Define this if you have an MMC device which you want to use for the
  136. environment.
  137. CONFIG_SYS_MMC_ENV_DEV:
  138. Specifies which MMC device the environment is stored in.
  139. CONFIG_SYS_MMC_ENV_PART (optional):
  140. Specifies which MMC partition the environment is stored in. If not
  141. set, defaults to partition 0, the user area. Common values might be
  142. 1 (first MMC boot partition), 2 (second MMC boot partition).
  143. CONFIG_ENV_OFFSET:
  144. CONFIG_ENV_SIZE:
  145. These two #defines specify the offset and size of the environment
  146. area within the specified MMC device.
  147. If offset is positive (the usual case), it is treated as relative to
  148. the start of the MMC partition. If offset is negative, it is treated
  149. as relative to the end of the MMC partition. This can be useful if
  150. your board may be fitted with different MMC devices, which have
  151. different sizes for the MMC partitions, and you always want the
  152. environment placed at the very end of the partition, to leave the
  153. maximum possible space before it, to store other data.
  154. These two values are in units of bytes, but must be aligned to an
  155. MMC sector boundary.
  156. CONFIG_ENV_OFFSET_REDUND (optional):
  157. Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
  158. hold a redundant copy of the environment data. This provides a
  159. valid backup copy in case the other copy is corrupted, e.g. due
  160. to a power failure during a "saveenv" operation.
  161. This value may also be positive or negative; this is handled in the
  162. same way as CONFIG_ENV_OFFSET.
  163. This value is also in units of bytes, but must also be aligned to
  164. an MMC sector boundary.
  165. config ENV_IS_IN_NAND
  166. bool "Environment in a NAND device"
  167. depends on !CHAIN_OF_TRUST
  168. help
  169. Define this if you have a NAND device which you want to use for the
  170. environment.
  171. - CONFIG_ENV_OFFSET:
  172. - CONFIG_ENV_SIZE:
  173. These two #defines specify the offset and size of the environment
  174. area within the first NAND device. CONFIG_ENV_OFFSET must be
  175. aligned to an erase block boundary.
  176. - CONFIG_ENV_OFFSET_REDUND (optional):
  177. This setting describes a second storage area of CONFIG_ENV_SIZE
  178. size used to hold a redundant copy of the environment data, so
  179. that there is a valid backup copy in case there is a power failure
  180. during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
  181. aligned to an erase block boundary.
  182. - CONFIG_ENV_RANGE (optional):
  183. Specifies the length of the region in which the environment
  184. can be written. This should be a multiple of the NAND device's
  185. block size. Specifying a range with more erase blocks than
  186. are needed to hold CONFIG_ENV_SIZE allows bad blocks within
  187. the range to be avoided.
  188. - CONFIG_ENV_OFFSET_OOB (optional):
  189. Enables support for dynamically retrieving the offset of the
  190. environment from block zero's out-of-band data. The
  191. "nand env.oob" command can be used to record this offset.
  192. Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
  193. using CONFIG_ENV_OFFSET_OOB.
  194. config ENV_IS_IN_NVRAM
  195. bool "Environment in a non-volatile RAM"
  196. depends on !CHAIN_OF_TRUST
  197. help
  198. Define this if you have some non-volatile memory device
  199. (NVRAM, battery buffered SRAM) which you want to use for the
  200. environment.
  201. - CONFIG_ENV_ADDR:
  202. - CONFIG_ENV_SIZE:
  203. These two #defines are used to determine the memory area you
  204. want to use for environment. It is assumed that this memory
  205. can just be read and written to, without any special
  206. provision.
  207. config ENV_IS_IN_ONENAND
  208. bool "Environment is in OneNAND"
  209. depends on !CHAIN_OF_TRUST
  210. help
  211. Define this if you want to put your local device's environment in
  212. OneNAND.
  213. - CONFIG_ENV_ADDR:
  214. - CONFIG_ENV_SIZE:
  215. These two #defines are used to determine the device range you
  216. want to use for environment. It is assumed that this memory
  217. can just be read and written to, without any special
  218. provision.
  219. config ENV_IS_IN_REMOTE
  220. bool "Environment is in remote memory space"
  221. depends on !CHAIN_OF_TRUST
  222. help
  223. Define this if you have a remote memory space which you
  224. want to use for the local device's environment.
  225. - CONFIG_ENV_ADDR:
  226. - CONFIG_ENV_SIZE:
  227. These two #defines specify the address and size of the
  228. environment area within the remote memory space. The
  229. local device can get the environment from remote memory
  230. space by SRIO or PCIE links.
  231. config ENV_IS_IN_SPI_FLASH
  232. bool "Environment is in SPI flash"
  233. depends on !CHAIN_OF_TRUST && SPI
  234. default y if ARMADA_XP
  235. default y if INTEL_BAYTRAIL
  236. default y if INTEL_BRASWELL
  237. default y if INTEL_BROADWELL
  238. default y if NORTHBRIDGE_INTEL_IVYBRIDGE
  239. default y if INTEL_QUARK
  240. default y if INTEL_QUEENSBAY
  241. help
  242. Define this if you have a SPI Flash memory device which you
  243. want to use for the environment.
  244. - CONFIG_ENV_OFFSET:
  245. - CONFIG_ENV_SIZE:
  246. These two #defines specify the offset and size of the
  247. environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
  248. aligned to an erase sector boundary.
  249. - CONFIG_ENV_SECT_SIZE:
  250. Define the SPI flash's sector size.
  251. - CONFIG_ENV_OFFSET_REDUND (optional):
  252. This setting describes a second storage area of CONFIG_ENV_SIZE
  253. size used to hold a redundant copy of the environment data, so
  254. that there is a valid backup copy in case there is a power failure
  255. during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
  256. aligned to an erase sector boundary.
  257. config USE_ENV_SPI_BUS
  258. bool "SPI flash bus for environment"
  259. depends on ENV_IS_IN_SPI_FLASH
  260. help
  261. Force the SPI bus for environment.
  262. If not defined, use CONFIG_SF_DEFAULT_BUS.
  263. config ENV_SPI_BUS
  264. int "Value of SPI flash bus for environment"
  265. depends on USE_ENV_SPI_BUS
  266. help
  267. Value the SPI bus and chip select for environment.
  268. config USE_ENV_SPI_CS
  269. bool "SPI flash chip select for environment"
  270. depends on ENV_IS_IN_SPI_FLASH
  271. help
  272. Force the SPI chip select for environment.
  273. If not defined, use CONFIG_SF_DEFAULT_CS.
  274. config ENV_SPI_CS
  275. int "Value of SPI flash chip select for environment"
  276. depends on USE_ENV_SPI_CS
  277. help
  278. Value of the SPI chip select for environment.
  279. config USE_ENV_SPI_MAX_HZ
  280. bool "SPI flash max frequency for environment"
  281. depends on ENV_IS_IN_SPI_FLASH
  282. help
  283. Force the SPI max work clock for environment.
  284. If not defined, use CONFIG_SF_DEFAULT_SPEED.
  285. config ENV_SPI_MAX_HZ
  286. int "Value of SPI flash max frequency for environment"
  287. depends on USE_ENV_SPI_MAX_HZ
  288. help
  289. Value of the SPI max work clock for environment.
  290. config USE_ENV_SPI_MODE
  291. bool "SPI flash mode for environment"
  292. depends on ENV_IS_IN_SPI_FLASH
  293. help
  294. Force the SPI work mode for environment.
  295. config ENV_SPI_MODE
  296. hex "Value of SPI flash work mode for environment"
  297. depends on USE_ENV_SPI_MODE
  298. help
  299. Value of the SPI work mode for environment.
  300. See include/spi.h for value.
  301. config ENV_SPI_EARLY
  302. bool "Access Environment in SPI flashes before relocation"
  303. depends on ENV_IS_IN_SPI_FLASH
  304. help
  305. Enable this if you want to use Environment in SPI flash
  306. before relocation. Call env_init() and than you can use
  307. env_get_f() for accessing Environment variables.
  308. config ENV_IS_IN_UBI
  309. bool "Environment in a UBI volume"
  310. depends on !CHAIN_OF_TRUST
  311. depends on MTD_UBI
  312. depends on CMD_UBI
  313. help
  314. Define this if you have an UBI volume that you want to use for the
  315. environment. This has the benefit of wear-leveling the environment
  316. accesses, which is important on NAND.
  317. - CONFIG_ENV_UBI_PART:
  318. Define this to a string that is the mtd partition containing the UBI.
  319. - CONFIG_ENV_UBI_VOLUME:
  320. Define this to the name of the volume that you want to store the
  321. environment in.
  322. - CONFIG_ENV_UBI_VOLUME_REDUND:
  323. Define this to the name of another volume to store a second copy of
  324. the environment in. This will enable redundant environments in UBI.
  325. It is assumed that both volumes are in the same MTD partition.
  326. config SYS_REDUNDAND_ENVIRONMENT
  327. bool "Enable redundant environment support"
  328. depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
  329. ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
  330. help
  331. Normally, the environemt is stored in a single location. By
  332. selecting this option, you can then define where to hold a redundant
  333. copy of the environment data, so that there is a valid backup copy in
  334. case there is a power failure during a "saveenv" operation.
  335. config ENV_FAT_INTERFACE
  336. string "Name of the block device for the environment"
  337. depends on ENV_IS_IN_FAT
  338. default "mmc"
  339. help
  340. Define this to a string that is the name of the block device.
  341. config ENV_FAT_DEVICE_AND_PART
  342. string "Device and partition for where to store the environemt in FAT"
  343. depends on ENV_IS_IN_FAT
  344. default "0:1" if TI_COMMON_CMD_OPTIONS
  345. default "0:auto" if ARCH_ZYNQ || ARCH_ZYNQMP
  346. default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  347. default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  348. default "0" if ARCH_AT91
  349. help
  350. Define this to a string to specify the partition of the device. It can
  351. be as following:
  352. "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
  353. - "D:P": device D partition P. Error occurs if device D has no
  354. partition table.
  355. - "D:0": device D.
  356. - "D" or "D:": device D partition 1 if device D has partition
  357. table, or the whole device D if has no partition
  358. table.
  359. - "D:auto": first partition in device D with bootable flag set.
  360. If none, first valid partition in device D. If no
  361. partition table then means device D.
  362. If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted,
  363. leaving the string starting with a colon, and the boot device will
  364. be used.
  365. config ENV_FAT_FILE
  366. string "Name of the FAT file to use for the environment"
  367. depends on ENV_IS_IN_FAT
  368. default "uboot.env"
  369. help
  370. It's a string of the FAT file name. This file use to store the
  371. environment.
  372. config ENV_EXT4_INTERFACE
  373. string "Name of the block device for the environment"
  374. depends on ENV_IS_IN_EXT4
  375. help
  376. Define this to a string that is the name of the block device.
  377. config ENV_EXT4_DEVICE_AND_PART
  378. string "Device and partition for where to store the environemt in EXT4"
  379. depends on ENV_IS_IN_EXT4
  380. help
  381. Define this to a string to specify the partition of the device. It can
  382. be as following:
  383. "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
  384. - "D:P": device D partition P. Error occurs if device D has no
  385. partition table.
  386. - "D:0": device D.
  387. - "D" or "D:": device D partition 1 if device D has partition
  388. table, or the whole device D if has no partition
  389. table.
  390. - "D:auto": first partition in device D with bootable flag set.
  391. If none, first valid partition in device D. If no
  392. partition table then means device D.
  393. If ENV_EXT4_INTERFACE is set to "mmc" then device 'D' can be omitted,
  394. leaving the string starting with a colon, and the boot device will
  395. be used.
  396. config ENV_EXT4_FILE
  397. string "Name of the EXT4 file to use for the environment"
  398. depends on ENV_IS_IN_EXT4
  399. default "/uboot.env"
  400. help
  401. It's a string of the EXT4 file name. This file use to store the
  402. environment (explicit path to the file)
  403. config ENV_ADDR
  404. hex "Environment address"
  405. depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \
  406. ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH
  407. default 0x0 if ENV_IS_IN_SPI_FLASH
  408. help
  409. Offset from the start of the device (or partition)
  410. config ENV_ADDR_REDUND
  411. hex "Redundant environment address"
  412. depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT
  413. help
  414. Offset from the start of the device (or partition) of the redundant
  415. environment location.
  416. config ENV_OFFSET
  417. hex "Environment offset"
  418. depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
  419. ENV_IS_IN_SPI_FLASH
  420. default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
  421. default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
  422. default 0x88000 if ARCH_SUNXI
  423. default 0xE0000 if ARCH_ZYNQ
  424. default 0x1E00000 if ARCH_ZYNQMP
  425. default 0x7F40000 if ARCH_VERSAL
  426. default 0 if ARC
  427. default 0x140000 if ARCH_AT91
  428. default 0x260000 if ARCH_OMAP2PLUS
  429. default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
  430. help
  431. Offset from the start of the device (or partition)
  432. config ENV_OFFSET_REDUND
  433. hex "Redundant environment offset"
  434. depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
  435. ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
  436. help
  437. Offset from the start of the device (or partition) of the redundant
  438. environment location.
  439. config ENV_SIZE
  440. hex "Environment Size"
  441. default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
  442. default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
  443. default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
  444. default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
  445. default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
  446. default 0x4000 if ARC
  447. default 0x1f000
  448. help
  449. Size of the environment storage area
  450. config ENV_SECT_SIZE
  451. hex "Environment Sector-Size"
  452. depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
  453. default 0x2000 if ARCH_ROCKCHIP
  454. default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
  455. default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
  456. default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
  457. help
  458. Size of the sector containing the environment.
  459. config ENV_UBI_PART
  460. string "UBI partition name"
  461. depends on ENV_IS_IN_UBI
  462. help
  463. MTD partition containing the UBI device
  464. config ENV_UBI_VOLUME
  465. string "UBI volume name"
  466. depends on ENV_IS_IN_UBI
  467. help
  468. Name of the volume that you want to store the environment in.
  469. config ENV_UBI_VOLUME_REDUND
  470. string "UBI redundant volume name"
  471. depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
  472. help
  473. Name of the redundant volume that you want to store the environment in.
  474. config ENV_UBI_VID_OFFSET
  475. int "ubi environment VID offset"
  476. depends on ENV_IS_IN_UBI
  477. default 0
  478. help
  479. UBI VID offset for environment. If 0, no custom VID offset is used.
  480. config SYS_RELOC_GD_ENV_ADDR
  481. bool "Relocate gd->env_addr"
  482. help
  483. Relocate the early env_addr pointer so we know it is not inside
  484. the binary. Some systems need this and for the rest, it doesn't hurt.
  485. config SYS_MMC_ENV_DEV
  486. int "mmc device number"
  487. depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || SYS_LS_PPA_FW_IN_MMC || \
  488. CMD_MVEBU_BUBT || FMAN_ENET || QE
  489. default 0
  490. help
  491. MMC device number on the platform where the environment is stored.
  492. config SYS_MMC_ENV_PART
  493. int "mmc partition number"
  494. depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT
  495. default 0
  496. help
  497. MMC hardware partition device number on the platform where the
  498. environment is stored. Note that this is not related to any software
  499. defined partition table but instead if we are in the user area, which is
  500. partition 0 or the first boot partition, which is 1 or some other defined
  501. partition.
  502. config USE_DEFAULT_ENV_FILE
  503. bool "Create default environment from file"
  504. help
  505. Normally, the default environment is automatically generated
  506. based on the settings of various CONFIG_* options, as well
  507. as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
  508. you can instead define the entire default environment in an
  509. external file.
  510. config DEFAULT_ENV_FILE
  511. string "Path to default environment file"
  512. depends on USE_DEFAULT_ENV_FILE
  513. help
  514. The path containing the default environment. The format is
  515. the same as accepted by the mkenvimage tool: lines
  516. containing key=value pairs, blank lines and lines beginning
  517. with # are ignored.
  518. config ENV_VARS_UBOOT_RUNTIME_CONFIG
  519. bool "Add run-time information to the environment"
  520. help
  521. Enable this in order to add variables describing certain
  522. run-time determined information about the hardware to the
  523. environment. These will be named board_name, board_rev.
  524. config DELAY_ENVIRONMENT
  525. bool "Delay environment loading"
  526. depends on !OF_CONTROL
  527. help
  528. Enable this to inhibit loading the environment during board
  529. initialization. This can address the security risk of untrusted data
  530. being used during boot. Normally the environment is loaded when the
  531. board is initialised so that it is available to U-Boot. This inhibits
  532. that so that the environment is not available until explicitly loaded
  533. later by U-Boot code. With CONFIG_OF_CONTROL this is instead
  534. controlled by the value of /config/load-environment.
  535. config ENV_APPEND
  536. bool "Always append the environment with new data"
  537. default n
  538. help
  539. If defined, the environment hash table is only ever appended with new
  540. data, but the existing hash table can never be dropped and reloaded
  541. with newly imported data. This may be used in combination with static
  542. flags to e.g. to protect variables which must not be modified.
  543. config ENV_WRITEABLE_LIST
  544. bool "Permit write access only to listed variables"
  545. default n
  546. help
  547. If defined, only environment variables which explicitly set the 'w'
  548. writeable flag can be written and modified at runtime. No variables
  549. can be otherwise created, written or imported into the environment.
  550. config ENV_ACCESS_IGNORE_FORCE
  551. bool "Block forced environment operations"
  552. default n
  553. help
  554. If defined, don't allow the -f switch to env set override variable
  555. access flags.
  556. if SPL_ENV_SUPPORT
  557. config SPL_ENV_IS_NOWHERE
  558. bool "SPL Environment is not stored"
  559. default y if ENV_IS_NOWHERE
  560. help
  561. Similar to ENV_IS_NOWHERE, used for SPL environment.
  562. config SPL_ENV_IS_IN_MMC
  563. bool "SPL Environment in an MMC device"
  564. depends on !SPL_ENV_IS_NOWHERE
  565. depends on ENV_IS_IN_MMC
  566. default y
  567. help
  568. Similar to ENV_IS_IN_MMC, used for SPL environment.
  569. config SPL_ENV_IS_IN_FAT
  570. bool "SPL Environment is in a FAT filesystem"
  571. depends on !SPL_ENV_IS_NOWHERE
  572. depends on ENV_IS_IN_FAT
  573. default y
  574. help
  575. Similar to ENV_IS_IN_FAT, used for SPL environment.
  576. config SPL_ENV_IS_IN_EXT4
  577. bool "SPL Environment is in a EXT4 filesystem"
  578. depends on !SPL_ENV_IS_NOWHERE
  579. depends on ENV_IS_IN_EXT4
  580. default y
  581. help
  582. Similar to ENV_IS_IN_EXT4, used for SPL environment.
  583. config SPL_ENV_IS_IN_NAND
  584. bool "SPL Environment in a NAND device"
  585. depends on !SPL_ENV_IS_NOWHERE
  586. depends on ENV_IS_IN_NAND
  587. default y
  588. help
  589. Similar to ENV_IS_IN_NAND, used for SPL environment.
  590. config SPL_ENV_IS_IN_SPI_FLASH
  591. bool "SPL Environment is in SPI flash"
  592. depends on !SPL_ENV_IS_NOWHERE
  593. depends on ENV_IS_IN_SPI_FLASH
  594. default y
  595. help
  596. Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
  597. config SPL_ENV_IS_IN_FLASH
  598. bool "SPL Environment in flash memory"
  599. depends on !SPL_ENV_IS_NOWHERE
  600. depends on ENV_IS_IN_FLASH
  601. default y
  602. help
  603. Similar to ENV_IS_IN_FLASH, used for SPL environment.
  604. endif
  605. if TPL_ENV_SUPPORT
  606. config TPL_ENV_IS_NOWHERE
  607. bool "TPL Environment is not stored"
  608. default y if ENV_IS_NOWHERE
  609. help
  610. Similar to ENV_IS_NOWHERE, used for TPL environment.
  611. config TPL_ENV_IS_IN_MMC
  612. bool "TPL Environment in an MMC device"
  613. depends on !TPL_ENV_IS_NOWHERE
  614. depends on ENV_IS_IN_MMC
  615. default y
  616. help
  617. Similar to ENV_IS_IN_MMC, used for TPL environment.
  618. config TPL_ENV_IS_IN_FAT
  619. bool "TPL Environment is in a FAT filesystem"
  620. depends on !TPL_ENV_IS_NOWHERE
  621. depends on ENV_IS_IN_FAT
  622. default y
  623. help
  624. Similar to ENV_IS_IN_FAT, used for TPL environment.
  625. config TPL_ENV_IS_IN_EXT4
  626. bool "TPL Environment is in a EXT4 filesystem"
  627. depends on !TPL_ENV_IS_NOWHERE
  628. depends on ENV_IS_IN_EXT4
  629. default y
  630. help
  631. Similar to ENV_IS_IN_EXT4, used for TPL environment.
  632. config TPL_ENV_IS_IN_NAND
  633. bool "TPL Environment in a NAND device"
  634. depends on !TPL_ENV_IS_NOWHERE
  635. depends on ENV_IS_IN_NAND
  636. default y
  637. help
  638. Similar to ENV_IS_IN_NAND, used for TPL environment.
  639. config TPL_ENV_IS_IN_SPI_FLASH
  640. bool "TPL Environment is in SPI flash"
  641. depends on !TPL_ENV_IS_NOWHERE
  642. depends on ENV_IS_IN_SPI_FLASH
  643. default y
  644. help
  645. Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
  646. config TPL_ENV_IS_IN_FLASH
  647. bool "TPL Environment in flash memory"
  648. depends on !TPL_ENV_IS_NOWHERE
  649. depends on ENV_IS_IN_FLASH
  650. default y
  651. help
  652. Similar to ENV_IS_IN_FLASH, used for TPL environment.
  653. endif
  654. config VERSION_VARIABLE
  655. bool "Add a 'ver' environment variable with the U-Boot version"
  656. help
  657. If this variable is defined, an environment variable
  658. named "ver" is created by U-Boot showing the U-Boot
  659. version as printed by the "version" command.
  660. Any change to this variable will be reverted at the
  661. next reset.
  662. endmenu