Kconfig 30 KB

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