Kconfig 16 KB

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