Kconfig 23 KB

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