Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. menu "Environment"
  2. choice
  3. prompt "Select the location of the environment"
  4. default ENV_IS_IN_MMC if ARCH_SUNXI
  5. default ENV_IS_IN_MMC if ARCH_EXYNOS4
  6. default ENV_IS_IN_MMC if MX6SX || MX7D
  7. default ENV_IS_IN_MMC if TEGRA30 || TEGRA124
  8. default ENV_IS_IN_MMC if TEGRA_ARMV8_COMMON
  9. default ENV_IS_IN_FLASH if ARCH_CINTEGRATOR
  10. default ENV_IS_IN_FLASH if ARCH_INTEGRATOR_CP
  11. default ENV_IS_IN_FLASH if M548x || M547x || M5282 || MCF547x_8x
  12. default ENV_IS_IN_FLASH if MCF532x || MCF52x2
  13. default ENV_IS_IN_FLASH if MPC86xx || MPC83xx
  14. default ENV_IS_IN_FLASH if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
  15. default ENV_IS_IN_FLASH if SH && !CPU_SH4
  16. default ENV_IS_IN_SPI_FLASH if ARMADA_XP
  17. default ENV_IS_IN_SPI_FLASH if INTEL_BAYTRAIL
  18. default ENV_IS_IN_SPI_FLASH if INTEL_BRASWELL
  19. default ENV_IS_IN_SPI_FLASH if INTEL_BROADWELL
  20. default ENV_IS_IN_SPI_FLASH if NORTHBRIDGE_INTEL_IVYBRIDGE
  21. default ENV_IS_IN_SPI_FLASH if INTEL_QUARK
  22. default ENV_IS_IN_SPI_FLASH if INTEL_QUEENSBAY
  23. default ENV_IS_IN_FAT if ARCH_BCM283X
  24. default ENV_IS_IN_FAT if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
  25. default ENV_IS_NOWHERE
  26. help
  27. At present the environment can be stored in only one place. Use this
  28. option to select the location. This is either a device (where the
  29. environemnt information is simply written to a fixed location or
  30. partition on the device) or a filesystem (where the environment
  31. information is written to a file).
  32. config ENV_IS_NOWHERE
  33. bool "Environment is not stored"
  34. help
  35. Define this if you don't want to or can't have an environment stored
  36. on a storage medium. In this case the environemnt will still exist
  37. while U-Boot is running, but once U-Boot exits it will not be
  38. stored. U-Boot will therefore always start up with a default
  39. environment.
  40. config ENV_IS_IN_EEPROM
  41. bool "Environment in EEPROM"
  42. depends on !CHAIN_OF_TRUST
  43. help
  44. Use this if you have an EEPROM or similar serial access
  45. device and a driver for it.
  46. - CONFIG_ENV_OFFSET:
  47. - CONFIG_ENV_SIZE:
  48. These two #defines specify the offset and size of the
  49. environment area within the total memory of your EEPROM.
  50. Note that we consider the length of the address field to
  51. still be one byte because the extra address bits are hidden
  52. in the chip address.
  53. - CONFIG_ENV_EEPROM_IS_ON_I2C
  54. define this, if you have I2C and SPI activated, and your
  55. EEPROM, which holds the environment, is on the I2C bus.
  56. - CONFIG_I2C_ENV_EEPROM_BUS
  57. if you have an Environment on an EEPROM reached over
  58. I2C muxes, you can define here, how to reach this
  59. EEPROM. For example:
  60. #define CONFIG_I2C_ENV_EEPROM_BUS 1
  61. EEPROM which holds the environment, is reached over
  62. a pca9547 i2c mux with address 0x70, channel 3.
  63. config ENV_IS_IN_FAT
  64. bool "Environment is in a FAT filesystem"
  65. depends on !CHAIN_OF_TRUST
  66. select FAT_WRITE
  67. help
  68. Define this if you want to use the FAT file system for the environment.
  69. - CONFIG_FAT_WRITE:
  70. This must be enabled. Otherwise it cannot save the environment file.
  71. config ENV_IS_IN_FLASH
  72. bool "Environment in flash memory"
  73. depends on !CHAIN_OF_TRUST
  74. help
  75. Define this if you have a flash device which you want to use for the
  76. environment.
  77. a) The environment occupies one whole flash sector, which is
  78. "embedded" in the text segment with the U-Boot code. This
  79. happens usually with "bottom boot sector" or "top boot
  80. sector" type flash chips, which have several smaller
  81. sectors at the start or the end. For instance, such a
  82. layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
  83. such a case you would place the environment in one of the
  84. 4 kB sectors - with U-Boot code before and after it. With
  85. "top boot sector" type flash chips, you would put the
  86. environment in one of the last sectors, leaving a gap
  87. between U-Boot and the environment.
  88. CONFIG_ENV_OFFSET:
  89. Offset of environment data (variable area) to the
  90. beginning of flash memory; for instance, with bottom boot
  91. type flash chips the second sector can be used: the offset
  92. for this sector is given here.
  93. CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
  94. CONFIG_ENV_ADDR:
  95. This is just another way to specify the start address of
  96. the flash sector containing the environment (instead of
  97. CONFIG_ENV_OFFSET).
  98. CONFIG_ENV_SECT_SIZE:
  99. Size of the sector containing the environment.
  100. b) Sometimes flash chips have few, equal sized, BIG sectors.
  101. In such a case you don't want to spend a whole sector for
  102. the environment.
  103. CONFIG_ENV_SIZE:
  104. If you use this in combination with CONFIG_ENV_IS_IN_FLASH
  105. and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
  106. of this flash sector for the environment. This saves
  107. memory for the RAM copy of the environment.
  108. It may also save flash memory if you decide to use this
  109. when your environment is "embedded" within U-Boot code,
  110. since then the remainder of the flash sector could be used
  111. for U-Boot code. It should be pointed out that this is
  112. STRONGLY DISCOURAGED from a robustness point of view:
  113. updating the environment in flash makes it always
  114. necessary to erase the WHOLE sector. If something goes
  115. wrong before the contents has been restored from a copy in
  116. RAM, your target system will be dead.
  117. CONFIG_ENV_ADDR_REDUND
  118. CONFIG_ENV_SIZE_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. help
  130. Define this if you have an MMC device which you want to use for the
  131. environment.
  132. CONFIG_SYS_MMC_ENV_DEV:
  133. Specifies which MMC device the environment is stored in.
  134. CONFIG_SYS_MMC_ENV_PART (optional):
  135. Specifies which MMC partition the environment is stored in. If not
  136. set, defaults to partition 0, the user area. Common values might be
  137. 1 (first MMC boot partition), 2 (second MMC boot partition).
  138. CONFIG_ENV_OFFSET:
  139. CONFIG_ENV_SIZE:
  140. These two #defines specify the offset and size of the environment
  141. area within the specified MMC device.
  142. If offset is positive (the usual case), it is treated as relative to
  143. the start of the MMC partition. If offset is negative, it is treated
  144. as relative to the end of the MMC partition. This can be useful if
  145. your board may be fitted with different MMC devices, which have
  146. different sizes for the MMC partitions, and you always want the
  147. environment placed at the very end of the partition, to leave the
  148. maximum possible space before it, to store other data.
  149. These two values are in units of bytes, but must be aligned to an
  150. MMC sector boundary.
  151. CONFIG_ENV_OFFSET_REDUND (optional):
  152. Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
  153. hold a redundant copy of the environment data. This provides a
  154. valid backup copy in case the other copy is corrupted, e.g. due
  155. to a power failure during a "saveenv" operation.
  156. This value may also be positive or negative; this is handled in the
  157. same way as CONFIG_ENV_OFFSET.
  158. This value is also in units of bytes, but must also be aligned to
  159. an MMC sector boundary.
  160. CONFIG_ENV_SIZE_REDUND (optional):
  161. This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is
  162. set. If this value is set, it must be set to the same value as
  163. CONFIG_ENV_SIZE.
  164. config ENV_IS_IN_NAND
  165. bool "Environment in a NAND device"
  166. depends on !CHAIN_OF_TRUST
  167. help
  168. Define this if you have a NAND device which you want to use for the
  169. environment.
  170. - CONFIG_ENV_OFFSET:
  171. - CONFIG_ENV_SIZE:
  172. These two #defines specify the offset and size of the environment
  173. area within the first NAND device. CONFIG_ENV_OFFSET must be
  174. aligned to an erase block boundary.
  175. - CONFIG_ENV_OFFSET_REDUND (optional):
  176. This setting describes a second storage area of CONFIG_ENV_SIZE
  177. size used to hold a redundant copy of the environment data, so
  178. that there is a valid backup copy in case there is a power failure
  179. during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
  180. aligned to an erase block boundary.
  181. - CONFIG_ENV_RANGE (optional):
  182. Specifies the length of the region in which the environment
  183. can be written. This should be a multiple of the NAND device's
  184. block size. Specifying a range with more erase blocks than
  185. are needed to hold CONFIG_ENV_SIZE allows bad blocks within
  186. the range to be avoided.
  187. - CONFIG_ENV_OFFSET_OOB (optional):
  188. Enables support for dynamically retrieving the offset of the
  189. environment from block zero's out-of-band data. The
  190. "nand env.oob" command can be used to record this offset.
  191. Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
  192. using CONFIG_ENV_OFFSET_OOB.
  193. config ENV_IS_IN_NVRAM
  194. bool "Environment in a non-volatile RAM"
  195. depends on !CHAIN_OF_TRUST
  196. help
  197. Define this if you have some non-volatile memory device
  198. (NVRAM, battery buffered SRAM) which you want to use for the
  199. environment.
  200. - CONFIG_ENV_ADDR:
  201. - CONFIG_ENV_SIZE:
  202. These two #defines are used to determine the memory area you
  203. want to use for environment. It is assumed that this memory
  204. can just be read and written to, without any special
  205. provision.
  206. config ENV_IS_IN_ONENAND
  207. bool "Environment is in OneNAND"
  208. depends on !CHAIN_OF_TRUST
  209. help
  210. Define this if you want to put your local device's environment in
  211. OneNAND.
  212. - CONFIG_ENV_ADDR:
  213. - CONFIG_ENV_SIZE:
  214. These two #defines are used to determine the device range you
  215. want to use for environment. It is assumed that this memory
  216. can just be read and written to, without any special
  217. provision.
  218. config ENV_IS_IN_REMOTE
  219. bool "Environment is in remove memory space"
  220. depends on !CHAIN_OF_TRUST
  221. help
  222. Define this if you have a remote memory space which you
  223. want to use for the local device's environment.
  224. - CONFIG_ENV_ADDR:
  225. - CONFIG_ENV_SIZE:
  226. These two #defines specify the address and size of the
  227. environment area within the remote memory space. The
  228. local device can get the environment from remote memory
  229. space by SRIO or PCIE links.
  230. config ENV_IS_IN_SPI_FLASH
  231. bool "Environment is in SPI flash"
  232. depends on !CHAIN_OF_TRUST
  233. help
  234. Define this if you have a SPI Flash memory device which you
  235. want to use for the environment.
  236. - CONFIG_ENV_OFFSET:
  237. - CONFIG_ENV_SIZE:
  238. These two #defines specify the offset and size of the
  239. environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
  240. aligned to an erase sector boundary.
  241. - CONFIG_ENV_SECT_SIZE:
  242. Define the SPI flash's sector size.
  243. - CONFIG_ENV_OFFSET_REDUND (optional):
  244. This setting describes a second storage area of CONFIG_ENV_SIZE
  245. size used to hold a redundant copy of the environment data, so
  246. that there is a valid backup copy in case there is a power failure
  247. during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
  248. aligned to an erase sector boundary.
  249. - CONFIG_ENV_SPI_BUS (optional):
  250. - CONFIG_ENV_SPI_CS (optional):
  251. Define the SPI bus and chip select. If not defined they will be 0.
  252. - CONFIG_ENV_SPI_MAX_HZ (optional):
  253. Define the SPI max work clock. If not defined then use 1MHz.
  254. - CONFIG_ENV_SPI_MODE (optional):
  255. Define the SPI work mode. If not defined then use SPI_MODE_3.
  256. config ENV_IS_IN_UBI
  257. bool "Environment in a UBI volume"
  258. depends on !CHAIN_OF_TRUST
  259. help
  260. Define this if you have an UBI volume that you want to use for the
  261. environment. This has the benefit of wear-leveling the environment
  262. accesses, which is important on NAND.
  263. - CONFIG_ENV_UBI_PART:
  264. Define this to a string that is the mtd partition containing the UBI.
  265. - CONFIG_ENV_UBI_VOLUME:
  266. Define this to the name of the volume that you want to store the
  267. environment in.
  268. - CONFIG_ENV_UBI_VOLUME_REDUND:
  269. Define this to the name of another volume to store a second copy of
  270. the environment in. This will enable redundant environments in UBI.
  271. It is assumed that both volumes are in the same MTD partition.
  272. - CONFIG_UBI_SILENCE_MSG
  273. - CONFIG_UBIFS_SILENCE_MSG
  274. You will probably want to define these to avoid a really noisy system
  275. when storing the env in UBI.
  276. endchoice
  277. config ENV_FAT_INTERFACE
  278. string "Name of the block device for the environment"
  279. depends on ENV_IS_IN_FAT
  280. default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91
  281. help
  282. Define this to a string that is the name of the block device.
  283. config ENV_FAT_DEVICE_AND_PART
  284. string "Device and partition for where to store the environemt in FAT"
  285. depends on ENV_IS_IN_FAT
  286. default "0:1" if TI_COMMON_CMD_OPTIONS
  287. default "0:auto" if ARCH_ZYNQMP
  288. default "0" if ARCH_AT91
  289. help
  290. Define this to a string to specify the partition of the device. It can
  291. be as following:
  292. "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
  293. - "D:P": device D partition P. Error occurs if device D has no
  294. partition table.
  295. - "D:0": device D.
  296. - "D" or "D:": device D partition 1 if device D has partition
  297. table, or the whole device D if has no partition
  298. table.
  299. - "D:auto": first partition in device D with bootable flag set.
  300. If none, first valid partition in device D. If no
  301. partition table then means device D.
  302. config ENV_FAT_FILE
  303. string "Name of the FAT file to use for the environemnt"
  304. depends on ENV_IS_IN_FAT
  305. default "uboot.env"
  306. help
  307. It's a string of the FAT file name. This file use to store the
  308. environment.
  309. if ARCH_SUNXI
  310. config ENV_OFFSET
  311. hex "Environment Offset"
  312. depends on !ENV_IS_IN_UBI
  313. depends on !ENV_IS_NOWHERE
  314. default 0x88000 if ARCH_SUNXI
  315. help
  316. Offset from the start of the device (or partition)
  317. config ENV_SIZE
  318. hex "Environment Size"
  319. depends on !ENV_IS_NOWHERE
  320. default 0x20000 if ARCH_SUNXI
  321. help
  322. Size of the environment storage area
  323. config ENV_UBI_PART
  324. string "UBI partition name"
  325. depends on ENV_IS_IN_UBI
  326. help
  327. MTD partition containing the UBI device
  328. config ENV_UBI_VOLUME
  329. string "UBI volume name"
  330. depends on ENV_IS_IN_UBI
  331. help
  332. Name of the volume that you want to store the environment in.
  333. endif
  334. endmenu