Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. choice
  67. prompt "Flash provider for FASTBOOT"
  68. depends on FASTBOOT_FLASH
  69. config FASTBOOT_FLASH_MMC
  70. bool "FASTBOOT on MMC"
  71. depends on MMC
  72. config FASTBOOT_FLASH_NAND
  73. bool "FASTBOOT on NAND"
  74. depends on MTD_RAW_NAND && CMD_MTDPARTS
  75. endchoice
  76. config FASTBOOT_FLASH_MMC_DEV
  77. int "Define FASTBOOT MMC FLASH default device"
  78. depends on FASTBOOT_FLASH_MMC
  79. default 0 if ARCH_ROCKCHIP
  80. default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  81. default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  82. help
  83. The fastboot "flash" command requires additional information
  84. regarding the non-volatile storage device. Define this to
  85. the eMMC device that fastboot should use to store the image.
  86. config FASTBOOT_FLASH_NAND_TRIMFFS
  87. bool "Skip empty pages when flashing NAND"
  88. depends on FASTBOOT_FLASH_NAND
  89. help
  90. When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
  91. pages.
  92. config FASTBOOT_GPT_NAME
  93. string "Target name for updating GPT"
  94. depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
  95. default "gpt"
  96. help
  97. The fastboot "flash" command supports writing the downloaded
  98. image to the Protective MBR and the Primary GUID Partition
  99. Table. (Additionally, this downloaded image is post-processed
  100. to generate and write the Backup GUID Partition Table.)
  101. This occurs when the specified "partition name" on the
  102. "fastboot flash" command line matches the value defined here.
  103. The default target name for updating GPT is "gpt".
  104. config FASTBOOT_MBR_NAME
  105. string "Target name for updating MBR"
  106. depends on FASTBOOT_FLASH_MMC && DOS_PARTITION
  107. default "mbr"
  108. help
  109. The fastboot "flash" command allows to write the downloaded image
  110. to the Master Boot Record. This occurs when the "partition name"
  111. specified on the "fastboot flash" command line matches the value
  112. defined here. The default target name for updating MBR is "mbr".
  113. config FASTBOOT_CMD_OEM_FORMAT
  114. bool "Enable the 'oem format' command"
  115. depends on FASTBOOT_FLASH_MMC && CMD_GPT
  116. help
  117. Add support for the "oem format" command from a client. This
  118. relies on the env variable partitions to contain the list of
  119. partitions as required by the gpt command.
  120. endif # FASTBOOT
  121. endmenu