Config.in 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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.01"
  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.01" 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. help
  60. If your board requires custom patches, add the path to the
  61. directory containing the patches here. The patches must be
  62. named uboot-<something>.patch.
  63. Most users may leave this empty
  64. choice
  65. prompt "U-Boot binary format"
  66. default BR2_TARGET_UBOOT_FORMAT_BIN
  67. config BR2_TARGET_UBOOT_FORMAT_AIS
  68. bool "u-boot.ais"
  69. help
  70. AIS (Application Image Script) is a format defined by TI.
  71. It is required to load code/data on OMAP-L1 processors.
  72. u-boot.ais contains U-Boot with the SPL support.
  73. config BR2_TARGET_UBOOT_FORMAT_BIN
  74. bool "u-boot.bin"
  75. config BR2_TARGET_UBOOT_FORMAT_IMG
  76. bool "u-boot.img"
  77. config BR2_TARGET_UBOOT_FORMAT_IMX
  78. bool "u-boot.imx"
  79. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  80. bool "u-boot-nand.bin"
  81. config BR2_TARGET_UBOOT_FORMAT_KWB
  82. depends on BR2_arm
  83. bool "u-boot.kwb (Marvell)"
  84. config BR2_TARGET_UBOOT_FORMAT_LDR
  85. depends on BR2_bfin
  86. bool "u-boot.ldr"
  87. config BR2_TARGET_UBOOT_FORMAT_ELF
  88. bool "u-boot.elf"
  89. config BR2_TARGET_UBOOT_FORMAT_SB
  90. depends on BR2_arm
  91. bool "u-boot.sb"
  92. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  93. bool "Custom (specify below)"
  94. help
  95. On some platforms, the standard U-Boot binary is not called
  96. u-boot.bin, but u-boot<something>.bin. If this is your case,
  97. you should select this option and specify the correct name
  98. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  99. endchoice
  100. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  101. string "U-Boot binary format: custom name"
  102. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  103. help
  104. Specify the correct name of the output binary created by
  105. U-Boot, if it is not one of the default names. For example:
  106. u-boot_magic.bin
  107. config BR2_TARGET_UBOOT_OMAP_IFT
  108. depends on BR2_TARGET_UBOOT_FORMAT_BIN
  109. depends on BR2_arm || BR2_armeb
  110. select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
  111. bool "produce a .ift signed image (OMAP)"
  112. help
  113. Use gpsign to produce an image of u-boot.bin signed with
  114. a Configuration Header for booting on OMAP processors.
  115. This allows U-Boot to boot without the need for an
  116. intermediate bootloader (e.g. x-loader) if it is written
  117. on the first sector of the boot medium.
  118. This only works for some media, such as NAND. Check your
  119. chip documentation for details. You might also want to
  120. read the documentation of gpsign, the tool that generates
  121. the .ift image, at:
  122. https://github.com/nmenon/omap-u-boot-utils/blob/master/README
  123. if BR2_TARGET_UBOOT_OMAP_IFT
  124. config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
  125. string "gpsign Configuration Header config file"
  126. help
  127. The Configuration Header (CH) config file defines the
  128. desired content of the CH for the signed image.
  129. It usually contains external RAM settings and
  130. possibly other external devices initialization.
  131. The omap-u-boot-utils software contains example
  132. configuration files for some boards:
  133. https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
  134. endif
  135. menuconfig BR2_TARGET_UBOOT_NETWORK
  136. bool "Custom Network Settings"
  137. depends on BR2_DEPRECATED_SINCE_2014_05
  138. help
  139. Custom network settings for U-boot
  140. if BR2_TARGET_UBOOT_NETWORK
  141. config BR2_TARGET_UBOOT_SERVERIP
  142. string "server ip"
  143. default "10.175.196.221"
  144. help
  145. TFTP server ip address
  146. config BR2_TARGET_UBOOT_IPADDR
  147. string "ip address"
  148. default "10.175.196.18"
  149. help
  150. Target ip address
  151. config BR2_TARGET_UBOOT_GATEWAY
  152. string "gateway ip"
  153. default "10.175.196.1"
  154. help
  155. Gateway ip address
  156. config BR2_TARGET_UBOOT_NETMASK
  157. string "netmask"
  158. default "255.255.255.0"
  159. help
  160. Network Mask
  161. config BR2_TARGET_UBOOT_ETHADDR
  162. string "ethernet address"
  163. default "04:25:fe:ed:00:18"
  164. help
  165. Target MAC address for the ethernet interface.
  166. This should be changed for production units
  167. config BR2_TARGET_UBOOT_ETH1ADDR
  168. string "ethernet 2 address"
  169. help
  170. Target MAC address for the second ethernet interface.
  171. endif # BR2_TARGET_UBOOT_NETWORK
  172. config BR2_TARGET_UBOOT_SPL
  173. bool "Install U-Boot SPL binary image"
  174. depends on !BR2_TARGET_XLOADER
  175. help
  176. Install the U-Boot SPL binary image to the images
  177. directory.
  178. SPL is a first stage bootloader loaded into internal
  179. memory in charge of enabling and configuring the
  180. external memory (DDR), and load the u-boot program
  181. into DDR.
  182. config BR2_TARGET_UBOOT_SPL_NAME
  183. string "U-Boot SPL binary image name"
  184. default "spl/u-boot-spl.bin"
  185. depends on BR2_TARGET_UBOOT_SPL
  186. help
  187. This is the name of the SPL binary, generated during
  188. u-boot build. For most platform it is spl/u-boot-spl.bin
  189. but not always. It is MLO on OMAP for example.
  190. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  191. bool "Environment image"
  192. help
  193. Generate a valid binary environment image from a text file
  194. describing the key=value pairs of the environment.
  195. The environment image will be called uboot-env.bin.
  196. if BR2_TARGET_UBOOT_ENVIMAGE
  197. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  198. string "Source file for environment"
  199. help
  200. Text file describing the environment.
  201. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  202. string "Size of environment"
  203. help
  204. Size of envronment, can be prefixed with 0x for hexadecimal
  205. values.
  206. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  207. bool "Environment has two copies"
  208. help
  209. Some platforms define in their U-Boot configuration that the
  210. U-Boot environment should be duplicated in two locations (for
  211. extra safety). Check your U-Boot configuration for the
  212. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  213. see if this is the case for your platform.
  214. If it is the case, then you should enable this option to
  215. ensure that the U-Boot environment image generated by
  216. Buildroot is compatible with the "redundant environment"
  217. mechanism of U-Boot.
  218. endif # BR2_TARGET_UBOOT_ENVIMAGE
  219. endif # BR2_TARGET_UBOOT