Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. comment "FASTBOOT"
  2. menuconfig FASTBOOT
  3. bool "Fastboot support"
  4. depends on USB_GADGET
  5. default y if ARCH_SUNXI && USB_MUSB_GADGET
  6. if FASTBOOT
  7. config USB_FUNCTION_FASTBOOT
  8. bool "Enable USB fastboot gadget"
  9. default y
  10. select USB_GADGET_DOWNLOAD
  11. imply ANDROID_BOOT_IMAGE
  12. imply CMD_FASTBOOT
  13. help
  14. This enables the USB part of the fastboot gadget.
  15. config CMD_FASTBOOT
  16. bool "Enable FASTBOOT command"
  17. help
  18. This enables the command "fastboot" which enables the Android
  19. fastboot mode for the platform's USB device. Fastboot is a USB
  20. protocol for downloading images, flashing and device control
  21. used on Android devices.
  22. See doc/README.android-fastboot for more information.
  23. if USB_FUNCTION_FASTBOOT
  24. config FASTBOOT_BUF_ADDR
  25. hex "Define FASTBOOT buffer address"
  26. default 0x82000000 if MX6SX || MX6SL || MX6UL || MX6SLL
  27. default 0x81000000 if ARCH_OMAP2PLUS
  28. default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I
  29. default 0x22000000 if ARCH_SUNXI && MACH_SUN9I
  30. default 0x60800800 if ROCKCHIP_RK3036 || ROCKCHIP_RK3188 || \
  31. ROCKCHIP_RK322X
  32. default 0x800800 if ROCKCHIP_RK3288 || ROCKCHIP_RK3329 || \
  33. ROCKCHIP_RK3399
  34. default 0x280000 if ROCKCHIP_RK3368
  35. default 0x100000 if ARCH_ZYNQMP
  36. help
  37. The fastboot protocol requires a large memory buffer for
  38. downloads. Define this to the starting RAM address to use for
  39. downloaded images.
  40. config FASTBOOT_BUF_SIZE
  41. hex "Define FASTBOOT buffer size"
  42. default 0x8000000 if ARCH_ROCKCHIP
  43. default 0x6000000 if ARCH_ZYNQMP
  44. default 0x2000000 if ARCH_SUNXI
  45. default 0x7000000
  46. help
  47. The fastboot protocol requires a large memory buffer for
  48. downloads. This buffer should be as large as possible for a
  49. platform. Define this to the size available RAM for fastboot.
  50. config FASTBOOT_USB_DEV
  51. int "USB controller number"
  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
  60. help
  61. The fastboot protocol includes a "flash" command for writing
  62. the downloaded image to a non-volatile storage device. Define
  63. this to enable the "fastboot flash" command.
  64. config FASTBOOT_FLASH_MMC_DEV
  65. int "Define FASTBOOT MMC FLASH default device"
  66. depends on FASTBOOT_FLASH && MMC
  67. default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  68. default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  69. help
  70. The fastboot "flash" command requires additional information
  71. regarding the non-volatile storage device. Define this to
  72. the eMMC device that fastboot should use to store the image.
  73. config FASTBOOT_FLASH_NAND_DEV
  74. int "Define FASTBOOT NAND FLASH default device"
  75. depends on FASTBOOT_FLASH && NAND
  76. depends on CMD_MTDPARTS
  77. default 0 if ARCH_SUNXI && NAND_SUNXI
  78. help
  79. The fastboot "flash" command requires additional information
  80. regarding the non-volatile storage device. Define this to
  81. the NAND device that fastboot should use to store the image.
  82. config FASTBOOT_GPT_NAME
  83. string "Target name for updating GPT"
  84. depends on FASTBOOT_FLASH
  85. default "gpt"
  86. help
  87. The fastboot "flash" command supports writing the downloaded
  88. image to the Protective MBR and the Primary GUID Partition
  89. Table. (Additionally, this downloaded image is post-processed
  90. to generate and write the Backup GUID Partition Table.)
  91. This occurs when the specified "partition name" on the
  92. "fastboot flash" command line matches the value defined here.
  93. The default target name for updating GPT is "gpt".
  94. config FASTBOOT_MBR_NAME
  95. string "Target name for updating MBR"
  96. depends on FASTBOOT_FLASH
  97. default "mbr"
  98. help
  99. The fastboot "flash" command allows to write the downloaded image
  100. to the Master Boot Record. This occurs when the "partition name"
  101. specified on the "fastboot flash" command line matches the value
  102. defined here. The default target name for updating MBR is "mbr".
  103. endif # USB_FUNCTION_FASTBOOT
  104. endif # FASTBOOT