Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. default n
  69. help
  70. The fastboot protocol includes "UCmd" and "ACmd" command.
  71. Be aware that you provide full access to any U-Boot command,
  72. including working with memory and may open a huge backdoor,
  73. when enabling this option.
  74. choice
  75. prompt "Flash provider for FASTBOOT"
  76. depends on FASTBOOT_FLASH
  77. config FASTBOOT_FLASH_MMC
  78. bool "FASTBOOT on MMC"
  79. depends on MMC
  80. config FASTBOOT_FLASH_NAND
  81. bool "FASTBOOT on NAND"
  82. depends on MTD_RAW_NAND && CMD_MTDPARTS
  83. endchoice
  84. config FASTBOOT_FLASH_MMC_DEV
  85. int "Define FASTBOOT MMC FLASH default device"
  86. depends on FASTBOOT_FLASH_MMC
  87. default 0 if ARCH_ROCKCHIP
  88. default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  89. default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  90. help
  91. The fastboot "flash" command requires additional information
  92. regarding the non-volatile storage device. Define this to
  93. the eMMC device that fastboot should use to store the image.
  94. config FASTBOOT_FLASH_NAND_TRIMFFS
  95. bool "Skip empty pages when flashing NAND"
  96. depends on FASTBOOT_FLASH_NAND
  97. help
  98. When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
  99. pages.
  100. config FASTBOOT_MMC_BOOT_SUPPORT
  101. bool "Enable EMMC_BOOT flash/erase"
  102. depends on FASTBOOT_FLASH_MMC
  103. help
  104. The fastboot "flash" and "erase" commands normally does operations
  105. on eMMC userdata. Define this to enable the special commands to
  106. flash/erase eMMC boot partition.
  107. The default target name for updating eMMC boot partition 1/2 is
  108. CONFIG_FASTBOOT_MMC_BOOT1_NAME/CONFIG_FASTBOOT_MMC_BOOT2_NAME.
  109. config FASTBOOT_MMC_BOOT1_NAME
  110. string "Target name for updating EMMC_BOOT1"
  111. depends on FASTBOOT_MMC_BOOT_SUPPORT
  112. default "mmc0boot0"
  113. help
  114. The fastboot "flash" and "erase" commands support operations on
  115. EMMC_BOOT1. This occurs when the specified "EMMC_BOOT1 name" on
  116. the "fastboot flash" and "fastboot erase" commands match the value
  117. defined here.
  118. The default target name for updating EMMC_BOOT1 is "mmc0boot0".
  119. config FASTBOOT_MMC_BOOT2_NAME
  120. string "Target name for updating EMMC_BOOT2"
  121. depends on FASTBOOT_MMC_BOOT_SUPPORT
  122. default "mmc0boot1"
  123. help
  124. The fastboot "flash" and "erase" commands support operations on
  125. EMMC_BOOT2. This occurs when the specified "EMMC_BOOT2 name" on
  126. the "fastboot flash" and "fastboot erase" commands match the value
  127. defined here.
  128. The default target name for updating EMMC_BOOT2 is "mmc0boot1".
  129. config FASTBOOT_MMC_USER_SUPPORT
  130. bool "Enable eMMC userdata partition flash/erase"
  131. depends on FASTBOOT_FLASH_MMC
  132. help
  133. Define this to enable the support "flash" and "erase" command on
  134. eMMC userdata. The "flash" command only update the MBR and GPT
  135. header when CONFIG_EFI_PARTITION is supported.
  136. The "erase" command erase all the userdata.
  137. This occurs when the specified "partition name" on the
  138. fastboot command line matches the value CONFIG_FASTBOOT_MMC_USER_NAME.
  139. config FASTBOOT_MMC_USER_NAME
  140. string "Target name for updating EMMC_USER"
  141. depends on FASTBOOT_MMC_USER_SUPPORT
  142. default "mmc0"
  143. help
  144. The fastboot "flash" and "erase" command supports EMMC_USER.
  145. This occurs when the specified "EMMC_USER name" on the
  146. "fastboot flash" and the "fastboot erase" commands match the value
  147. defined here.
  148. The default target name for erasing EMMC_USER is "mmc0".
  149. config FASTBOOT_GPT_NAME
  150. string "Target name for updating GPT"
  151. depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
  152. default "gpt"
  153. help
  154. The fastboot "flash" command supports writing the downloaded
  155. image to the Protective MBR and the Primary GUID Partition
  156. Table. (Additionally, this downloaded image is post-processed
  157. to generate and write the Backup GUID Partition Table.)
  158. This occurs when the specified "partition name" on the
  159. "fastboot flash" command line matches the value defined here.
  160. The default target name for updating GPT is "gpt".
  161. config FASTBOOT_MBR_NAME
  162. string "Target name for updating MBR"
  163. depends on FASTBOOT_FLASH_MMC && DOS_PARTITION
  164. default "mbr"
  165. help
  166. The fastboot "flash" command allows to write the downloaded image
  167. to the Master Boot Record. This occurs when the "partition name"
  168. specified on the "fastboot flash" command line matches the value
  169. defined here. The default target name for updating MBR is "mbr".
  170. config FASTBOOT_CMD_OEM_FORMAT
  171. bool "Enable the 'oem format' command"
  172. depends on FASTBOOT_FLASH_MMC && CMD_GPT
  173. help
  174. Add support for the "oem format" command from a client. This
  175. relies on the env variable partitions to contain the list of
  176. partitions as required by the gpt command.
  177. config FASTBOOT_CMD_OEM_PARTCONF
  178. bool "Enable the 'oem partconf' command"
  179. depends on FASTBOOT_FLASH_MMC && SUPPORT_EMMC_BOOT
  180. help
  181. Add support for the "oem partconf" command from a client. This set
  182. the mmc boot-partition for the selecting eMMC device.
  183. config FASTBOOT_CMD_OEM_BOOTBUS
  184. bool "Enable the 'oem bootbus' command"
  185. depends on FASTBOOT_FLASH_MMC && SUPPORT_EMMC_BOOT
  186. help
  187. Add support for the "oem bootbus" command from a client. This set
  188. the mmc boot configuration for the selecting eMMC device.
  189. config FASTBOOT_STARFIVE_MAX_BLK_WRITE
  190. int "The max size of block writing with sparse file on StarFive JH7110 SoC"
  191. endif # FASTBOOT
  192. endmenu