Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. help
  34. The fastboot protocol requires a large memory buffer for
  35. downloads. Define this to the starting RAM address to use for
  36. downloaded images.
  37. config FASTBOOT_BUF_SIZE
  38. hex "Define FASTBOOT buffer size"
  39. default 0x8000000 if ARCH_ROCKCHIP
  40. default 0x6000000 if ARCH_ZYNQMP
  41. default 0x2000000 if ARCH_SUNXI
  42. default 0x7000000
  43. help
  44. The fastboot protocol requires a large memory buffer for
  45. downloads. This buffer should be as large as possible for a
  46. platform. Define this to the size available RAM for fastboot.
  47. config FASTBOOT_USB_DEV
  48. int "USB controller number"
  49. depends on USB_FUNCTION_FASTBOOT
  50. default 0
  51. help
  52. Some boards have USB OTG controller other than 0. Define this
  53. option so it can be used in compiled environment (e.g. in
  54. CONFIG_BOOTCOMMAND).
  55. config FASTBOOT_FLASH
  56. bool "Enable FASTBOOT FLASH command"
  57. default y if ARCH_SUNXI
  58. depends on MMC || (NAND && CMD_MTDPARTS)
  59. select IMAGE_SPARSE
  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. choice
  65. prompt "Flash provider for FASTBOOT"
  66. depends on FASTBOOT_FLASH
  67. config FASTBOOT_FLASH_MMC
  68. bool "FASTBOOT on MMC"
  69. depends on MMC
  70. config FASTBOOT_FLASH_NAND
  71. bool "FASTBOOT on NAND"
  72. depends on NAND && CMD_MTDPARTS
  73. endchoice
  74. config FASTBOOT_FLASH_MMC_DEV
  75. int "Define FASTBOOT MMC FLASH default device"
  76. depends on FASTBOOT_FLASH_MMC
  77. default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
  78. default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
  79. help
  80. The fastboot "flash" command requires additional information
  81. regarding the non-volatile storage device. Define this to
  82. the eMMC device that fastboot should use to store the image.
  83. config FASTBOOT_FLASH_NAND_TRIMFFS
  84. bool "Skip empty pages when flashing NAND"
  85. depends on FASTBOOT_FLASH_NAND
  86. help
  87. When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
  88. pages.
  89. config FASTBOOT_GPT_NAME
  90. string "Target name for updating GPT"
  91. depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
  92. default "gpt"
  93. help
  94. The fastboot "flash" command supports writing the downloaded
  95. image to the Protective MBR and the Primary GUID Partition
  96. Table. (Additionally, this downloaded image is post-processed
  97. to generate and write the Backup GUID Partition Table.)
  98. This occurs when the specified "partition name" on the
  99. "fastboot flash" command line matches the value defined here.
  100. The default target name for updating GPT is "gpt".
  101. config FASTBOOT_MBR_NAME
  102. string "Target name for updating MBR"
  103. depends on FASTBOOT_FLASH_MMC && DOS_PARTITION
  104. default "mbr"
  105. help
  106. The fastboot "flash" command allows to write the downloaded image
  107. to the Master Boot Record. This occurs when the "partition name"
  108. specified on the "fastboot flash" command line matches the value
  109. defined here. The default target name for updating MBR is "mbr".
  110. endif # FASTBOOT
  111. endmenu