Kconfig 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  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_FLASH || DM_SPI_FLASH)
  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 || ARCH_VERSAL_NET
  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 0x0 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. This offset may be interpreted differently depending on the chosen
  477. ENV_IS_IN_* options. For example, for ENV_IS_IN_MMC=y, this offset may
  478. be negative to indicate an offset backwards from the end of the
  479. partition. See the relevant help messages for more details.
  480. config ENV_OFFSET_REDUND
  481. hex "Redundant environment offset"
  482. depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
  483. ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
  484. default 0x10C0000 if MICROBLAZE
  485. default 0x0
  486. help
  487. Offset from the start of the device (or partition) of the redundant
  488. environment location.
  489. This offset may be interpreted differently depending on the chosen
  490. ENV_IS_IN_* options. For example, for ENV_IS_IN_MMC=y, this offset may
  491. be negative to indicate an offset backwards from the end of the
  492. partition. See the relevant help messages for more details.
  493. config ENV_SIZE
  494. hex "Environment Size"
  495. default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
  496. default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
  497. default 0x10000 if ARCH_SUNXI
  498. default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
  499. default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
  500. default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL || ARCH_VERSAL_NET
  501. default 0x4000 if ARC
  502. default 0x1f000
  503. help
  504. Size of the environment storage area
  505. config ENV_SECT_SIZE
  506. hex "Environment Sector-Size"
  507. depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
  508. default 0x2000 if ARCH_ROCKCHIP
  509. default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL || ARCH_VERSAL_NET
  510. default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
  511. default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
  512. default 0x10000 if ARCH_SUNXI && ENV_IS_IN_SPI_FLASH
  513. help
  514. Size of the sector containing the environment.
  515. config ENV_UBI_PART
  516. string "UBI partition name"
  517. depends on ENV_IS_IN_UBI
  518. help
  519. MTD partition containing the UBI device
  520. config ENV_UBI_VOLUME
  521. string "UBI volume name"
  522. depends on ENV_IS_IN_UBI
  523. help
  524. Name of the volume that you want to store the environment in.
  525. config ENV_UBI_VOLUME_REDUND
  526. string "UBI redundant volume name"
  527. depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
  528. help
  529. Name of the redundant volume that you want to store the environment in.
  530. config ENV_UBI_VID_OFFSET
  531. int "ubi environment VID offset"
  532. depends on ENV_IS_IN_UBI
  533. default 0
  534. help
  535. UBI VID offset for environment. If 0, no custom VID offset is used.
  536. config SYS_RELOC_GD_ENV_ADDR
  537. bool "Relocate gd->env_addr"
  538. help
  539. Relocate the early env_addr pointer so we know it is not inside
  540. the binary. Some systems need this and for the rest, it doesn't hurt.
  541. config SYS_MMC_ENV_DEV
  542. int "mmc device number"
  543. depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || \
  544. CMD_MVEBU_BUBT || FMAN_ENET || QE || PHY_CORTINA
  545. default 0
  546. help
  547. MMC device number on the platform where the environment is stored.
  548. config SYS_MMC_ENV_PART
  549. int "mmc partition number"
  550. depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT
  551. default 0
  552. help
  553. MMC hardware partition device number on the platform where the
  554. environment is stored. Note that this is not related to any software
  555. defined partition table but instead if we are in the user area, which is
  556. partition 0 or the first boot partition, which is 1 or some other defined
  557. partition.
  558. config USE_ENV_MMC_PARTITION
  559. bool "use the mmc environment partition name"
  560. depends on ENV_IS_IN_MMC
  561. config ENV_MMC_PARTITION
  562. string "mmc environment partition name"
  563. depends on USE_ENV_MMC_PARTITION
  564. help
  565. MMC partition name used to save environment variables.
  566. If this variable is unset, u-boot will try to get the env partition name
  567. from the device-tree's /config node.
  568. config ENV_MMC_USE_DT
  569. bool "Read partition name and offset in DT"
  570. depends on ENV_IS_IN_MMC && OF_CONTROL
  571. help
  572. Only use the device tree to get the environment location in MMC
  573. device, with partition name or with offset.
  574. The 2 defines CONFIG_ENV_OFFSET, CONFIG_ENV_OFFSET_REDUND
  575. are not used as fallback.
  576. config USE_DEFAULT_ENV_FILE
  577. bool "Create default environment from file"
  578. help
  579. Normally, the default environment is automatically generated
  580. based on the settings of various CONFIG_* options, as well
  581. as the CFG_EXTRA_ENV_SETTINGS. By selecting this option,
  582. you can instead define the entire default environment in an
  583. external file.
  584. config DEFAULT_ENV_FILE
  585. string "Path to default environment file"
  586. depends on USE_DEFAULT_ENV_FILE
  587. help
  588. The path containing the default environment. The format is
  589. the same as accepted by the mkenvimage tool: lines
  590. containing key=value pairs, blank lines and lines beginning
  591. with # are ignored.
  592. config ENV_VARS_UBOOT_RUNTIME_CONFIG
  593. bool "Add run-time information to the environment"
  594. help
  595. Enable this in order to add variables describing certain
  596. run-time determined information about the hardware to the
  597. environment. These will be named board_name, board_rev.
  598. config DELAY_ENVIRONMENT
  599. bool "Delay environment loading"
  600. depends on !OF_CONTROL
  601. help
  602. Enable this to inhibit loading the environment during board
  603. initialization. This can address the security risk of untrusted data
  604. being used during boot. Normally the environment is loaded when the
  605. board is initialised so that it is available to U-Boot. This inhibits
  606. that so that the environment is not available until explicitly loaded
  607. later by U-Boot code. With CONFIG_OF_CONTROL this is instead
  608. controlled by the value of /config/load-environment.
  609. config ENV_IMPORT_FDT
  610. bool "Amend environment by FDT properties"
  611. depends on OF_CONTROL
  612. help
  613. If selected, after the environment has been loaded from its
  614. persistent location, the "env_fdt_path" variable is looked
  615. up and used as a path to a node in the control DTB. The
  616. property/value pairs in that node is then used to update the
  617. run-time environment. This can be useful to use the same
  618. U-Boot binary with different board variants.
  619. config ENV_FDT_PATH
  620. string "Default value for env_fdt_path variable"
  621. depends on ENV_IMPORT_FDT
  622. default "/config/environment"
  623. help
  624. The initial value of the env_fdt_path variable.
  625. config ENV_APPEND
  626. bool "Always append the environment with new data"
  627. help
  628. If defined, the environment hash table is only ever appended with new
  629. data, but the existing hash table can never be dropped and reloaded
  630. with newly imported data. This may be used in combination with static
  631. flags to e.g. to protect variables which must not be modified.
  632. config ENV_WRITEABLE_LIST
  633. bool "Permit write access only to listed variables"
  634. select ENV_APPEND
  635. help
  636. If defined, only environment variables which explicitly set the 'w'
  637. writeable flag can be written and modified at runtime. No variables
  638. can be otherwise created, written or imported into the environment.
  639. config ENV_ACCESS_IGNORE_FORCE
  640. bool "Block forced environment operations"
  641. help
  642. If defined, don't allow the -f switch to env set override variable
  643. access flags.
  644. if SPL_ENV_SUPPORT
  645. config SPL_ENV_IS_NOWHERE
  646. bool "SPL Environment is not stored"
  647. default y if ENV_IS_NOWHERE
  648. help
  649. Similar to ENV_IS_NOWHERE, used for SPL environment.
  650. config SPL_ENV_IS_IN_MMC
  651. bool "SPL Environment in an MMC device"
  652. depends on !SPL_ENV_IS_NOWHERE
  653. depends on ENV_IS_IN_MMC
  654. default y
  655. help
  656. Similar to ENV_IS_IN_MMC, used for SPL environment.
  657. config SPL_ENV_IS_IN_FAT
  658. bool "SPL Environment is in a FAT filesystem"
  659. depends on !SPL_ENV_IS_NOWHERE
  660. depends on ENV_IS_IN_FAT
  661. default y
  662. help
  663. Similar to ENV_IS_IN_FAT, used for SPL environment.
  664. config SPL_ENV_IS_IN_EXT4
  665. bool "SPL Environment is in a EXT4 filesystem"
  666. depends on !SPL_ENV_IS_NOWHERE
  667. depends on ENV_IS_IN_EXT4
  668. default y
  669. help
  670. Similar to ENV_IS_IN_EXT4, used for SPL environment.
  671. config SPL_ENV_IS_IN_NAND
  672. bool "SPL Environment in a NAND device"
  673. depends on !SPL_ENV_IS_NOWHERE
  674. depends on ENV_IS_IN_NAND
  675. default y
  676. help
  677. Similar to ENV_IS_IN_NAND, used for SPL environment.
  678. config SPL_ENV_IS_IN_SPI_FLASH
  679. bool "SPL Environment is in SPI flash"
  680. depends on !SPL_ENV_IS_NOWHERE
  681. depends on ENV_IS_IN_SPI_FLASH
  682. default y
  683. help
  684. Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
  685. config SPL_ENV_IS_IN_FLASH
  686. bool "SPL Environment in flash memory"
  687. depends on !SPL_ENV_IS_NOWHERE
  688. depends on ENV_IS_IN_FLASH
  689. default y
  690. help
  691. Similar to ENV_IS_IN_FLASH, used for SPL environment.
  692. endif
  693. if TPL_ENV_SUPPORT
  694. config TPL_ENV_IS_NOWHERE
  695. bool "TPL Environment is not stored"
  696. default y if ENV_IS_NOWHERE
  697. help
  698. Similar to ENV_IS_NOWHERE, used for TPL environment.
  699. config TPL_ENV_IS_IN_MMC
  700. bool "TPL Environment in an MMC device"
  701. depends on !TPL_ENV_IS_NOWHERE
  702. depends on ENV_IS_IN_MMC
  703. default y
  704. help
  705. Similar to ENV_IS_IN_MMC, used for TPL environment.
  706. config TPL_ENV_IS_IN_FAT
  707. bool "TPL Environment is in a FAT filesystem"
  708. depends on !TPL_ENV_IS_NOWHERE
  709. depends on ENV_IS_IN_FAT
  710. default y
  711. help
  712. Similar to ENV_IS_IN_FAT, used for TPL environment.
  713. config TPL_ENV_IS_IN_EXT4
  714. bool "TPL Environment is in a EXT4 filesystem"
  715. depends on !TPL_ENV_IS_NOWHERE
  716. depends on ENV_IS_IN_EXT4
  717. default y
  718. help
  719. Similar to ENV_IS_IN_EXT4, used for TPL environment.
  720. config TPL_ENV_IS_IN_NAND
  721. bool "TPL Environment in a NAND device"
  722. depends on !TPL_ENV_IS_NOWHERE
  723. depends on ENV_IS_IN_NAND
  724. default y
  725. help
  726. Similar to ENV_IS_IN_NAND, used for TPL environment.
  727. config TPL_ENV_IS_IN_SPI_FLASH
  728. bool "TPL Environment is in SPI flash"
  729. depends on !TPL_ENV_IS_NOWHERE
  730. depends on ENV_IS_IN_SPI_FLASH
  731. default y
  732. help
  733. Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
  734. config TPL_ENV_IS_IN_FLASH
  735. bool "TPL Environment in flash memory"
  736. depends on !TPL_ENV_IS_NOWHERE
  737. depends on ENV_IS_IN_FLASH
  738. default y
  739. help
  740. Similar to ENV_IS_IN_FLASH, used for TPL environment.
  741. endif
  742. if VPL_ENV_SUPPORT
  743. config VPL_ENV_IS_NOWHERE
  744. bool "VPL Environment is not stored"
  745. default y if ENV_IS_NOWHERE
  746. help
  747. Similar to ENV_IS_NOWHERE, used for VPL environment.
  748. endif # VPL_ENV_SUPPORT
  749. config USE_BOOTFILE
  750. bool "Add a 'bootfile' environment variable"
  751. help
  752. The "bootfile" variable is used in some cases to allow for
  753. controlling what file U-Boot will attempt to load and boot. To set
  754. this, enable this option and set the value in the next question.
  755. config BOOTFILE
  756. string "'bootfile' environment variable value"
  757. depends on USE_BOOTFILE
  758. help
  759. The value to set the "bootfile" variable to.
  760. config USE_ETHPRIME
  761. bool "Add an 'ethprime' environment variable"
  762. help
  763. The "ethprime" variable is used in some cases to control which
  764. network interface is used first.
  765. config ETHPRIME
  766. string "'ethprime' environment variable value"
  767. depends on USE_ETHPRIME
  768. help
  769. The value to set the "ethprime" variable to.
  770. config USE_HOSTNAME
  771. bool "Set a default 'hostname' value in the environment"
  772. default y if X86
  773. config HOSTNAME
  774. string "Value of the default 'hostname' value in the environment"
  775. depends on USE_HOSTNAME
  776. default "x86" if X86
  777. default "unknown"
  778. config VERSION_VARIABLE
  779. bool "Add a 'ver' environment variable with the U-Boot version"
  780. help
  781. If this variable is defined, an environment variable
  782. named "ver" is created by U-Boot showing the U-Boot
  783. version as printed by the "version" command.
  784. Any change to this variable will be reverted at the
  785. next reset.
  786. endmenu