Kconfig 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. menu "Fastboot support"
  2. config FASTBOOT
  3. bool
  4. imply ANDROID_BOOT_IMAGE
  5. imply CMD_FASTBOOT
  6. config USB_FUNCTION_FASTBOOT
  7. bool "Enable USB fastboot gadget"
  8. depends on USB_GADGET
  9. default y if ARCH_SUNXI && USB_MUSB_GADGET
  10. select FASTBOOT
  11. select USB_GADGET_DOWNLOAD
  12. help
  13. This enables the USB part of the fastboot gadget.
  14. config UDP_FUNCTION_FASTBOOT
  15. depends on NET
  16. select FASTBOOT
  17. bool "Enable fastboot protocol over UDP"
  18. help
  19. This enables the fastboot protocol over UDP.
  20. if FASTBOOT
  21. config FASTBOOT_BUF_ADDR
  22. hex "Define FASTBOOT buffer address"
  23. default 0x82000000 if MX6SX || MX6SL || MX6UL || MX6SLL
  24. default 0x81000000 if ARCH_OMAP2PLUS
  25. default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I
  26. default 0x22000000 if ARCH_SUNXI && MACH_SUN9I
  27. default 0x60800800 if ROCKCHIP_RK3036 || ROCKCHIP_RK3188 || \
  28. ROCKCHIP_RK322X
  29. default 0x800800 if ROCKCHIP_RK3288 || ROCKCHIP_RK3329 || \
  30. ROCKCHIP_RK3399
  31. default 0x280000 if ROCKCHIP_RK3368
  32. default 0x100000 if ARCH_ZYNQMP
  33. default 0 if SANDBOX
  34. help
  35. The fastboot protocol requires a large memory buffer for
  36. downloads. Define this to the starting RAM address to use for
  37. downloaded images.
  38. config FASTBOOT_BUF_SIZE
  39. hex "Define FASTBOOT buffer size"
  40. default 0x8000000 if ARCH_ROCKCHIP
  41. default 0x6000000 if ARCH_ZYNQMP
  42. default 0x2000000 if ARCH_SUNXI
  43. default 0x8192 if SANDBOX
  44. default 0x7000000
  45. help
  46. The fastboot protocol requires a large memory buffer for
  47. downloads. This buffer should be as large as possible for a
  48. platform. Define this to the size available RAM for fastboot.
  49. config FASTBOOT_USB_DEV
  50. int "USB controller number"
  51. depends on USB_FUNCTION_FASTBOOT
  52. default 0
  53. help
  54. Some boards have USB OTG controller other than 0. Define this
  55. option so it can be used in compiled environment (e.g. in
  56. CONFIG_BOOTCOMMAND).
  57. config FASTBOOT_FLASH
  58. bool "Enable FASTBOOT FLASH command"
  59. default y if ARCH_SUNXI || ARCH_ROCKCHIP
  60. depends on MMC || (MTD_RAW_NAND && CMD_MTDPARTS)
  61. select IMAGE_SPARSE
  62. help
  63. The fastboot protocol includes a "flash" command for writing
  64. the downloaded image to a non-volatile storage device. Define
  65. this to enable the "fastboot flash" command.
  66. config FASTBOOT_UUU_SUPPORT
  67. bool "Enable FASTBOOT i.MX UUU special command"
  68. help
  69. The fastboot protocol includes "UCmd" and "ACmd" command.
  70. Be aware that you provide full access to any U-Boot command,
  71. including working with memory and may open a huge backdoor,
  72. when enabling this option.
  73. choice
  74. prompt "Flash provider for FASTBOOT"
  75. depends on FASTBOOT_FLASH
  76. config FASTBOOT_FLASH_MMC
  77. bool "FASTBOOT on MMC"
  78. depends on MMC
  79. config FASTBOOT_FLASH_NAND
  80. bool "FASTBOOT on NAND"
  81. depends on MTD_RAW_NAND && CMD_MTDPARTS
  82. endchoice
  83. config FASTBOOT_FLASH_MMC_DEV
  84. int "Define FASTBOOT MMC FLASH default device"
  85. depends on FASTBOOT_FLASH_MMC
  86. default 0 if ARCH_ROCKCHIP
  87. default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  88. default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  89. help
  90. The fastboot "flash" command requires additional information
  91. regarding the non-volatile storage device. Define this to
  92. the eMMC device that fastboot should use to store the image.
  93. config FASTBOOT_FLASH_NAND_TRIMFFS
  94. bool "Skip empty pages when flashing NAND"
  95. depends on FASTBOOT_FLASH_NAND
  96. help
  97. When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
  98. pages.
  99. config FASTBOOT_MMC_BOOT_SUPPORT
  100. bool "Enable EMMC_BOOT flash/erase"
  101. depends on FASTBOOT_FLASH_MMC
  102. help
  103. The fastboot "flash" and "erase" commands normally does operations
  104. on eMMC userdata. Define this to enable the special commands to
  105. flash/erase eMMC boot partition.
  106. The default target name for updating eMMC boot partition 1/2 is
  107. CONFIG_FASTBOOT_MMC_BOOT1_NAME/CONFIG_FASTBOOT_MMC_BOOT2_NAME.
  108. config FASTBOOT_MMC_BOOT1_NAME
  109. string "Target name for updating EMMC_BOOT1"
  110. depends on FASTBOOT_MMC_BOOT_SUPPORT
  111. default "mmc0boot0"
  112. help
  113. The fastboot "flash" and "erase" commands support operations on
  114. EMMC_BOOT1. This occurs when the specified "EMMC_BOOT1 name" on
  115. the "fastboot flash" and "fastboot erase" commands match the value
  116. defined here.
  117. The default target name for updating EMMC_BOOT1 is "mmc0boot0".
  118. config FASTBOOT_MMC_BOOT2_NAME
  119. string "Target name for updating EMMC_BOOT2"
  120. depends on FASTBOOT_MMC_BOOT_SUPPORT
  121. default "mmc0boot1"
  122. help
  123. The fastboot "flash" and "erase" commands support operations on
  124. EMMC_BOOT2. This occurs when the specified "EMMC_BOOT2 name" on
  125. the "fastboot flash" and "fastboot erase" commands match the value
  126. defined here.
  127. The default target name for updating EMMC_BOOT2 is "mmc0boot1".
  128. config FASTBOOT_MMC_USER_SUPPORT
  129. bool "Enable eMMC userdata partition flash/erase"
  130. depends on FASTBOOT_FLASH_MMC
  131. help
  132. Define this to enable the support "flash" and "erase" command on
  133. eMMC userdata. The "flash" command only update the MBR and GPT
  134. header when CONFIG_EFI_PARTITION is supported.
  135. The "erase" command erase all the userdata.
  136. This occurs when the specified "partition name" on the
  137. fastboot command line matches the value CONFIG_FASTBOOT_MMC_USER_NAME.
  138. config FASTBOOT_MMC_USER_NAME
  139. string "Target name for updating EMMC_USER"
  140. depends on FASTBOOT_MMC_USER_SUPPORT
  141. default "mmc0"
  142. help
  143. The fastboot "flash" and "erase" command supports EMMC_USER.
  144. This occurs when the specified "EMMC_USER name" on the
  145. "fastboot flash" and the "fastboot erase" commands match the value
  146. defined here.
  147. The default target name for erasing EMMC_USER is "mmc0".
  148. config FASTBOOT_GPT_NAME
  149. string "Target name for updating GPT"
  150. depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
  151. default "gpt"
  152. help
  153. The fastboot "flash" command supports writing the downloaded
  154. image to the Protective MBR and the Primary GUID Partition
  155. Table. (Additionally, this downloaded image is post-processed
  156. to generate and write the Backup GUID Partition Table.)
  157. This occurs when the specified "partition name" on the
  158. "fastboot flash" command line matches the value defined here.
  159. The default target name for updating GPT is "gpt".
  160. config FASTBOOT_MBR_NAME
  161. string "Target name for updating MBR"
  162. depends on FASTBOOT_FLASH_MMC && DOS_PARTITION
  163. default "mbr"
  164. help
  165. The fastboot "flash" command allows to write the downloaded image
  166. to the Master Boot Record. This occurs when the "partition name"
  167. specified on the "fastboot flash" command line matches the value
  168. defined here. The default target name for updating MBR is "mbr".
  169. config FASTBOOT_CMD_OEM_FORMAT
  170. bool "Enable the 'oem format' command"
  171. depends on FASTBOOT_FLASH_MMC && CMD_GPT
  172. help
  173. Add support for the "oem format" command from a client. This
  174. relies on the env variable partitions to contain the list of
  175. partitions as required by the gpt command.
  176. config FASTBOOT_CMD_OEM_PARTCONF
  177. bool "Enable the 'oem partconf' command"
  178. depends on FASTBOOT_FLASH_MMC && SUPPORT_EMMC_BOOT
  179. help
  180. Add support for the "oem partconf" command from a client. This set
  181. the mmc boot-partition for the selecting eMMC device.
  182. config FASTBOOT_CMD_OEM_BOOTBUS
  183. bool "Enable the 'oem bootbus' command"
  184. depends on FASTBOOT_FLASH_MMC && SUPPORT_EMMC_BOOT
  185. help
  186. Add support for the "oem bootbus" command from a client. This set
  187. the mmc boot configuration for the selecting eMMC device.
  188. endif # FASTBOOT
  189. endmenu