Config.in 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. config BR2_TARGET_UBOOT
  2. bool "U-Boot"
  3. help
  4. Build "Das U-Boot" Boot Monitor
  5. if BR2_TARGET_UBOOT
  6. config BR2_TARGET_UBOOT_BOARDNAME
  7. string "U-Boot board name"
  8. help
  9. One of U-Boot supported boards to be built.
  10. This will be suffixed with _config to meet U-Boot standard naming.
  11. See boards.cfg in U-Boot source code for the list of available
  12. configurations.
  13. choice
  14. prompt "U-Boot Version"
  15. help
  16. Select the specific U-Boot version you want to use
  17. config BR2_TARGET_UBOOT_LATEST_VERSION
  18. bool "2015.04"
  19. config BR2_TARGET_UBOOT_CUSTOM_VERSION
  20. bool "Custom version"
  21. help
  22. This option allows to use a specific official versions
  23. config BR2_TARGET_UBOOT_CUSTOM_TARBALL
  24. bool "Custom tarball"
  25. config BR2_TARGET_UBOOT_CUSTOM_GIT
  26. bool "Custom Git repository"
  27. config BR2_TARGET_UBOOT_CUSTOM_HG
  28. bool "Custom Mercurial repository"
  29. endchoice
  30. config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
  31. string "U-Boot version"
  32. depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
  33. config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
  34. string "URL of custom U-Boot tarball"
  35. depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
  36. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
  37. config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
  38. string "URL of custom repository"
  39. default BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL \
  40. if BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL != "" # legacy
  41. config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
  42. string "Custom repository version"
  43. default BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION \
  44. if BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION != "" # legacy
  45. help
  46. Revision to use in the typical format used by Git/Mercurial
  47. E.G. a sha id, a tag, branch, ..
  48. endif
  49. config BR2_TARGET_UBOOT_VERSION
  50. string
  51. default "2015.04" if BR2_TARGET_UBOOT_LATEST_VERSION
  52. default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
  53. if BR2_TARGET_UBOOT_CUSTOM_VERSION
  54. default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
  55. default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
  56. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
  57. config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
  58. string "custom patch dir"
  59. depends on BR2_DEPRECATED_SINCE_2015_05
  60. help
  61. If your board requires custom patches, add the path to the
  62. directory containing the patches here. The patches must be
  63. named uboot-<something>.patch.
  64. Most users may leave this empty
  65. NOTE: Use BR2_TARGET_UBOOT_PATCH instead.
  66. config BR2_TARGET_UBOOT_PATCH
  67. string "Custom U-Boot patches"
  68. help
  69. A space-separated list of patches to apply to U-Boot.
  70. Each patch can be described as an URL, a local file path,
  71. or a directory. In the case of a directory, all files
  72. matching *.patch in the directory will be applied.
  73. Most users may leave this empty
  74. choice
  75. prompt "U-Boot binary format"
  76. default BR2_TARGET_UBOOT_FORMAT_BIN
  77. config BR2_TARGET_UBOOT_FORMAT_AIS
  78. bool "u-boot.ais"
  79. help
  80. AIS (Application Image Script) is a format defined by TI.
  81. It is required to load code/data on OMAP-L1 processors.
  82. u-boot.ais contains U-Boot with the SPL support.
  83. config BR2_TARGET_UBOOT_FORMAT_BIN
  84. bool "u-boot.bin"
  85. config BR2_TARGET_UBOOT_FORMAT_IMG
  86. bool "u-boot.img"
  87. config BR2_TARGET_UBOOT_FORMAT_IMX
  88. bool "u-boot.imx"
  89. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  90. bool "u-boot-nand.bin"
  91. config BR2_TARGET_UBOOT_FORMAT_KWB
  92. depends on BR2_arm
  93. bool "u-boot.kwb (Marvell)"
  94. config BR2_TARGET_UBOOT_FORMAT_LDR
  95. depends on BR2_bfin
  96. bool "u-boot.ldr"
  97. config BR2_TARGET_UBOOT_FORMAT_ELF
  98. bool "u-boot.elf"
  99. config BR2_TARGET_UBOOT_FORMAT_SB
  100. depends on BR2_arm
  101. bool "u-boot.sb"
  102. config BR2_TARGET_UBOOT_FORMAT_SD
  103. depends on BR2_arm
  104. bool "u-boot.sd"
  105. help
  106. This is Freescale i.MX28 SB format, with a header for booting
  107. from an SD card.
  108. U-boot includes an mxsboot tool to generate this format,
  109. starting from 2011.12.
  110. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  111. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  112. bool "Custom (specify below)"
  113. help
  114. On some platforms, the standard U-Boot binary is not called
  115. u-boot.bin, but u-boot<something>.bin. If this is your case,
  116. you should select this option and specify the correct name
  117. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  118. endchoice
  119. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  120. string "U-Boot binary format: custom name"
  121. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  122. help
  123. Specify the correct name of the output binary created by
  124. U-Boot, if it is not one of the default names. For example:
  125. u-boot_magic.bin
  126. config BR2_TARGET_UBOOT_OMAP_IFT
  127. depends on BR2_TARGET_UBOOT_FORMAT_BIN
  128. depends on BR2_arm || BR2_armeb
  129. select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
  130. bool "produce a .ift signed image (OMAP)"
  131. help
  132. Use gpsign to produce an image of u-boot.bin signed with
  133. a Configuration Header for booting on OMAP processors.
  134. This allows U-Boot to boot without the need for an
  135. intermediate bootloader (e.g. x-loader) if it is written
  136. on the first sector of the boot medium.
  137. This only works for some media, such as NAND. Check your
  138. chip documentation for details. You might also want to
  139. read the documentation of gpsign, the tool that generates
  140. the .ift image, at:
  141. https://github.com/nmenon/omap-u-boot-utils/blob/master/README
  142. if BR2_TARGET_UBOOT_OMAP_IFT
  143. config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
  144. string "gpsign Configuration Header config file"
  145. help
  146. The Configuration Header (CH) config file defines the
  147. desired content of the CH for the signed image.
  148. It usually contains external RAM settings and
  149. possibly other external devices initialization.
  150. The omap-u-boot-utils software contains example
  151. configuration files for some boards:
  152. https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
  153. endif
  154. menuconfig BR2_TARGET_UBOOT_NETWORK
  155. bool "Custom Network Settings"
  156. depends on BR2_DEPRECATED_SINCE_2014_05
  157. help
  158. Custom network settings for U-boot
  159. if BR2_TARGET_UBOOT_NETWORK
  160. config BR2_TARGET_UBOOT_SERVERIP
  161. string "server ip"
  162. default "10.175.196.221"
  163. help
  164. TFTP server ip address
  165. config BR2_TARGET_UBOOT_IPADDR
  166. string "ip address"
  167. default "10.175.196.18"
  168. help
  169. Target ip address
  170. config BR2_TARGET_UBOOT_GATEWAY
  171. string "gateway ip"
  172. default "10.175.196.1"
  173. help
  174. Gateway ip address
  175. config BR2_TARGET_UBOOT_NETMASK
  176. string "netmask"
  177. default "255.255.255.0"
  178. help
  179. Network Mask
  180. config BR2_TARGET_UBOOT_ETHADDR
  181. string "ethernet address"
  182. default "04:25:fe:ed:00:18"
  183. help
  184. Target MAC address for the ethernet interface.
  185. This should be changed for production units
  186. config BR2_TARGET_UBOOT_ETH1ADDR
  187. string "ethernet 2 address"
  188. help
  189. Target MAC address for the second ethernet interface.
  190. endif # BR2_TARGET_UBOOT_NETWORK
  191. config BR2_TARGET_UBOOT_SPL
  192. bool "Install U-Boot SPL binary image"
  193. depends on !BR2_TARGET_XLOADER
  194. help
  195. Install the U-Boot SPL binary image to the images
  196. directory.
  197. SPL is a first stage bootloader loaded into internal
  198. memory in charge of enabling and configuring the
  199. external memory (DDR), and load the u-boot program
  200. into DDR.
  201. config BR2_TARGET_UBOOT_SPL_NAME
  202. string "U-Boot SPL binary image name"
  203. default "spl/u-boot-spl.bin"
  204. depends on BR2_TARGET_UBOOT_SPL
  205. help
  206. This is the name of the SPL binary, generated during
  207. u-boot build. For most platform it is spl/u-boot-spl.bin
  208. but not always. It is MLO on OMAP for example.
  209. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  210. bool "Environment image"
  211. help
  212. Generate a valid binary environment image from a text file
  213. describing the key=value pairs of the environment.
  214. The environment image will be called uboot-env.bin.
  215. if BR2_TARGET_UBOOT_ENVIMAGE
  216. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  217. string "Source file for environment"
  218. help
  219. Text file describing the environment.
  220. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  221. string "Size of environment"
  222. help
  223. Size of envronment, can be prefixed with 0x for hexadecimal
  224. values.
  225. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  226. bool "Environment has two copies"
  227. help
  228. Some platforms define in their U-Boot configuration that the
  229. U-Boot environment should be duplicated in two locations (for
  230. extra safety). Check your U-Boot configuration for the
  231. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  232. see if this is the case for your platform.
  233. If it is the case, then you should enable this option to
  234. ensure that the U-Boot environment image generated by
  235. Buildroot is compatible with the "redundant environment"
  236. mechanism of U-Boot.
  237. endif # BR2_TARGET_UBOOT_ENVIMAGE
  238. endif # BR2_TARGET_UBOOT