Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  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_IS_IN_UBI
  302. bool "Environment in a UBI volume"
  303. depends on !CHAIN_OF_TRUST
  304. depends on MTD_UBI
  305. depends on CMD_UBI
  306. help
  307. Define this if you have an UBI volume that you want to use for the
  308. environment. This has the benefit of wear-leveling the environment
  309. accesses, which is important on NAND.
  310. - CONFIG_ENV_UBI_PART:
  311. Define this to a string that is the mtd partition containing the UBI.
  312. - CONFIG_ENV_UBI_VOLUME:
  313. Define this to the name of the volume that you want to store the
  314. environment in.
  315. - CONFIG_ENV_UBI_VOLUME_REDUND:
  316. Define this to the name of another volume to store a second copy of
  317. the environment in. This will enable redundant environments in UBI.
  318. It is assumed that both volumes are in the same MTD partition.
  319. config SYS_REDUNDAND_ENVIRONMENT
  320. bool "Enable redundant environment support"
  321. depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
  322. ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
  323. help
  324. Normally, the environemt is stored in a single location. By
  325. selecting this option, you can then define where to hold a redundant
  326. copy of the environment data, so that there is a valid backup copy in
  327. case there is a power failure during a "saveenv" operation.
  328. config ENV_FAT_INTERFACE
  329. string "Name of the block device for the environment"
  330. depends on ENV_IS_IN_FAT
  331. default "mmc"
  332. help
  333. Define this to a string that is the name of the block device.
  334. config ENV_FAT_DEVICE_AND_PART
  335. string "Device and partition for where to store the environemt in FAT"
  336. depends on ENV_IS_IN_FAT
  337. default "0:1" if TI_COMMON_CMD_OPTIONS
  338. default "0:auto" if ARCH_ZYNQ || ARCH_ZYNQMP
  339. default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  340. default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  341. default "0" if ARCH_AT91
  342. help
  343. Define this to a string to specify the partition of the device. It can
  344. be as following:
  345. "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
  346. - "D:P": device D partition P. Error occurs if device D has no
  347. partition table.
  348. - "D:0": device D.
  349. - "D" or "D:": device D partition 1 if device D has partition
  350. table, or the whole device D if has no partition
  351. table.
  352. - "D:auto": first partition in device D with bootable flag set.
  353. If none, first valid partition in device D. If no
  354. partition table then means device D.
  355. If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted,
  356. leaving the string starting with a colon, and the boot device will
  357. be used.
  358. config ENV_FAT_FILE
  359. string "Name of the FAT file to use for the environment"
  360. depends on ENV_IS_IN_FAT
  361. default "uboot.env"
  362. help
  363. It's a string of the FAT file name. This file use to store the
  364. environment.
  365. config ENV_EXT4_INTERFACE
  366. string "Name of the block device for the environment"
  367. depends on ENV_IS_IN_EXT4
  368. help
  369. Define this to a string that is the name of the block device.
  370. config ENV_EXT4_DEVICE_AND_PART
  371. string "Device and partition for where to store the environemt in EXT4"
  372. depends on ENV_IS_IN_EXT4
  373. help
  374. Define this to a string to specify the partition of the device. It can
  375. be as following:
  376. "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
  377. - "D:P": device D partition P. Error occurs if device D has no
  378. partition table.
  379. - "D:0": device D.
  380. - "D" or "D:": device D partition 1 if device D has partition
  381. table, or the whole device D if has no partition
  382. table.
  383. - "D:auto": first partition in device D with bootable flag set.
  384. If none, first valid partition in device D. If no
  385. partition table then means device D.
  386. config ENV_EXT4_FILE
  387. string "Name of the EXT4 file to use for the environment"
  388. depends on ENV_IS_IN_EXT4
  389. default "/uboot.env"
  390. help
  391. It's a string of the EXT4 file name. This file use to store the
  392. environment (explicit path to the file)
  393. config ENV_ADDR
  394. hex "Environment address"
  395. depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \
  396. ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH
  397. default 0x0 if ENV_IS_IN_SPI_FLASH
  398. help
  399. Offset from the start of the device (or partition)
  400. config ENV_ADDR_REDUND
  401. hex "Redundant environment address"
  402. depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT
  403. help
  404. Offset from the start of the device (or partition) of the redundant
  405. environment location.
  406. config ENV_OFFSET
  407. hex "Environment offset"
  408. depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
  409. ENV_IS_IN_SPI_FLASH
  410. default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
  411. default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
  412. default 0x88000 if ARCH_SUNXI
  413. default 0xE0000 if ARCH_ZYNQ
  414. default 0x1E00000 if ARCH_ZYNQMP
  415. default 0x7F40000 if ARCH_VERSAL
  416. default 0 if ARC
  417. default 0x140000 if ARCH_AT91
  418. default 0x260000 if ARCH_OMAP2PLUS
  419. default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
  420. help
  421. Offset from the start of the device (or partition)
  422. config ENV_OFFSET_REDUND
  423. hex "Redundant environment offset"
  424. depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
  425. ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
  426. help
  427. Offset from the start of the device (or partition) of the redundant
  428. environment location.
  429. config ENV_SIZE
  430. hex "Environment Size"
  431. default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
  432. default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
  433. default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
  434. default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
  435. default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
  436. default 0x4000 if ARC
  437. default 0x1f000
  438. help
  439. Size of the environment storage area
  440. config ENV_SECT_SIZE
  441. hex "Environment Sector-Size"
  442. depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
  443. default 0x2000 if ARCH_ROCKCHIP
  444. default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
  445. default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
  446. default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
  447. help
  448. Size of the sector containing the environment.
  449. config ENV_UBI_PART
  450. string "UBI partition name"
  451. depends on ENV_IS_IN_UBI
  452. help
  453. MTD partition containing the UBI device
  454. config ENV_UBI_VOLUME
  455. string "UBI volume name"
  456. depends on ENV_IS_IN_UBI
  457. help
  458. Name of the volume that you want to store the environment in.
  459. config ENV_UBI_VOLUME_REDUND
  460. string "UBI redundant volume name"
  461. depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
  462. help
  463. Name of the redundant volume that you want to store the environment in.
  464. config ENV_UBI_VID_OFFSET
  465. int "ubi environment VID offset"
  466. depends on ENV_IS_IN_UBI
  467. default 0
  468. help
  469. UBI VID offset for environment. If 0, no custom VID offset is used.
  470. config SYS_RELOC_GD_ENV_ADDR
  471. bool "Relocate gd->env_addr"
  472. help
  473. Relocate the early env_addr pointer so we know it is not inside
  474. the binary. Some systems need this and for the rest, it doesn't hurt.
  475. config SYS_MMC_ENV_DEV
  476. int "mmc device number"
  477. depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || SYS_LS_PPA_FW_IN_MMC || \
  478. CMD_MVEBU_BUBT || FMAN_ENET || QE
  479. default 0
  480. help
  481. MMC device number on the platform where the environment is stored.
  482. config SYS_MMC_ENV_PART
  483. int "mmc partition number"
  484. depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT
  485. default 0
  486. help
  487. MMC hardware partition device number on the platform where the
  488. environment is stored. Note that this is not related to any software
  489. defined partition table but instead if we are in the user area, which is
  490. partition 0 or the first boot partition, which is 1 or some other defined
  491. partition.
  492. config USE_DEFAULT_ENV_FILE
  493. bool "Create default environment from file"
  494. help
  495. Normally, the default environment is automatically generated
  496. based on the settings of various CONFIG_* options, as well
  497. as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
  498. you can instead define the entire default environment in an
  499. external file.
  500. config DEFAULT_ENV_FILE
  501. string "Path to default environment file"
  502. depends on USE_DEFAULT_ENV_FILE
  503. help
  504. The path containing the default environment. The format is
  505. the same as accepted by the mkenvimage tool: lines
  506. containing key=value pairs, blank lines and lines beginning
  507. with # are ignored.
  508. config ENV_VARS_UBOOT_RUNTIME_CONFIG
  509. bool "Add run-time information to the environment"
  510. help
  511. Enable this in order to add variables describing certain
  512. run-time determined information about the hardware to the
  513. environment. These will be named board_name, board_rev.
  514. config DELAY_ENVIRONMENT
  515. bool "Delay environment loading"
  516. depends on !OF_CONTROL
  517. help
  518. Enable this to inhibit loading the environment during board
  519. initialization. This can address the security risk of untrusted data
  520. being used during boot. Normally the environment is loaded when the
  521. board is initialised so that it is available to U-Boot. This inhibits
  522. that so that the environment is not available until explicitly loaded
  523. later by U-Boot code. With CONFIG_OF_CONTROL this is instead
  524. controlled by the value of /config/load-environment.
  525. config ENV_APPEND
  526. bool "Always append the environment with new data"
  527. default n
  528. help
  529. If defined, the environment hash table is only ever appended with new
  530. data, but the existing hash table can never be dropped and reloaded
  531. with newly imported data. This may be used in combination with static
  532. flags to e.g. to protect variables which must not be modified.
  533. config ENV_WRITEABLE_LIST
  534. bool "Permit write access only to listed variables"
  535. default n
  536. help
  537. If defined, only environment variables which explicitly set the 'w'
  538. writeable flag can be written and modified at runtime. No variables
  539. can be otherwise created, written or imported into the environment.
  540. config ENV_ACCESS_IGNORE_FORCE
  541. bool "Block forced environment operations"
  542. default n
  543. help
  544. If defined, don't allow the -f switch to env set override variable
  545. access flags.
  546. if SPL_ENV_SUPPORT
  547. config SPL_ENV_IS_NOWHERE
  548. bool "SPL Environment is not stored"
  549. default y if ENV_IS_NOWHERE
  550. help
  551. Similar to ENV_IS_NOWHERE, used for SPL environment.
  552. config SPL_ENV_IS_IN_MMC
  553. bool "SPL Environment in an MMC device"
  554. depends on !SPL_ENV_IS_NOWHERE
  555. depends on ENV_IS_IN_MMC
  556. default y
  557. help
  558. Similar to ENV_IS_IN_MMC, used for SPL environment.
  559. config SPL_ENV_IS_IN_FAT
  560. bool "SPL Environment is in a FAT filesystem"
  561. depends on !SPL_ENV_IS_NOWHERE
  562. depends on ENV_IS_IN_FAT
  563. default y
  564. help
  565. Similar to ENV_IS_IN_FAT, used for SPL environment.
  566. config SPL_ENV_IS_IN_EXT4
  567. bool "SPL Environment is in a EXT4 filesystem"
  568. depends on !SPL_ENV_IS_NOWHERE
  569. depends on ENV_IS_IN_EXT4
  570. default y
  571. help
  572. Similar to ENV_IS_IN_EXT4, used for SPL environment.
  573. config SPL_ENV_IS_IN_NAND
  574. bool "SPL Environment in a NAND device"
  575. depends on !SPL_ENV_IS_NOWHERE
  576. depends on ENV_IS_IN_NAND
  577. default y
  578. help
  579. Similar to ENV_IS_IN_NAND, used for SPL environment.
  580. config SPL_ENV_IS_IN_SPI_FLASH
  581. bool "SPL Environment is in SPI flash"
  582. depends on !SPL_ENV_IS_NOWHERE
  583. depends on ENV_IS_IN_SPI_FLASH
  584. default y
  585. help
  586. Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
  587. config SPL_ENV_IS_IN_FLASH
  588. bool "SPL Environment in flash memory"
  589. depends on !SPL_ENV_IS_NOWHERE
  590. depends on ENV_IS_IN_FLASH
  591. default y
  592. help
  593. Similar to ENV_IS_IN_FLASH, used for SPL environment.
  594. endif
  595. if TPL_ENV_SUPPORT
  596. config TPL_ENV_IS_NOWHERE
  597. bool "TPL Environment is not stored"
  598. default y if ENV_IS_NOWHERE
  599. help
  600. Similar to ENV_IS_NOWHERE, used for TPL environment.
  601. config TPL_ENV_IS_IN_MMC
  602. bool "TPL Environment in an MMC device"
  603. depends on !TPL_ENV_IS_NOWHERE
  604. depends on ENV_IS_IN_MMC
  605. default y
  606. help
  607. Similar to ENV_IS_IN_MMC, used for TPL environment.
  608. config TPL_ENV_IS_IN_FAT
  609. bool "TPL Environment is in a FAT filesystem"
  610. depends on !TPL_ENV_IS_NOWHERE
  611. depends on ENV_IS_IN_FAT
  612. default y
  613. help
  614. Similar to ENV_IS_IN_FAT, used for TPL environment.
  615. config TPL_ENV_IS_IN_EXT4
  616. bool "TPL Environment is in a EXT4 filesystem"
  617. depends on !TPL_ENV_IS_NOWHERE
  618. depends on ENV_IS_IN_EXT4
  619. default y
  620. help
  621. Similar to ENV_IS_IN_EXT4, used for TPL environment.
  622. config TPL_ENV_IS_IN_NAND
  623. bool "TPL Environment in a NAND device"
  624. depends on !TPL_ENV_IS_NOWHERE
  625. depends on ENV_IS_IN_NAND
  626. default y
  627. help
  628. Similar to ENV_IS_IN_NAND, used for TPL environment.
  629. config TPL_ENV_IS_IN_SPI_FLASH
  630. bool "TPL Environment is in SPI flash"
  631. depends on !TPL_ENV_IS_NOWHERE
  632. depends on ENV_IS_IN_SPI_FLASH
  633. default y
  634. help
  635. Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
  636. config TPL_ENV_IS_IN_FLASH
  637. bool "TPL Environment in flash memory"
  638. depends on !TPL_ENV_IS_NOWHERE
  639. depends on ENV_IS_IN_FLASH
  640. default y
  641. help
  642. Similar to ENV_IS_IN_FLASH, used for TPL environment.
  643. endif
  644. endmenu