1 menu "Fastboot support"
5 imply ANDROID_BOOT_IMAGE
8 config USB_FUNCTION_FASTBOOT
9 bool "Enable USB fastboot gadget"
11 default y if ARCH_SUNXI && USB_MUSB_GADGET
13 select USB_GADGET_DOWNLOAD
15 This enables the USB part of the fastboot gadget.
17 config UDP_FUNCTION_FASTBOOT
20 bool "Enable fastboot protocol over UDP"
22 This enables the fastboot protocol over UDP.
26 config FASTBOOT_BUF_ADDR
27 hex "Define FASTBOOT buffer address"
28 default 0x82000000 if MX6SX || MX6SL || MX6UL || MX6SLL
29 default 0x81000000 if ARCH_OMAP2PLUS
30 default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I
31 default 0x22000000 if ARCH_SUNXI && MACH_SUN9I
32 default 0x60800800 if ROCKCHIP_RK3036 || ROCKCHIP_RK3188 || \
34 default 0x800800 if ROCKCHIP_RK3288 || ROCKCHIP_RK3329 || \
36 default 0x280000 if ROCKCHIP_RK3368
37 default 0x100000 if ARCH_ZYNQMP
39 The fastboot protocol requires a large memory buffer for
40 downloads. Define this to the starting RAM address to use for
43 config FASTBOOT_BUF_SIZE
44 hex "Define FASTBOOT buffer size"
45 default 0x8000000 if ARCH_ROCKCHIP
46 default 0x6000000 if ARCH_ZYNQMP
47 default 0x2000000 if ARCH_SUNXI
50 The fastboot protocol requires a large memory buffer for
51 downloads. This buffer should be as large as possible for a
52 platform. Define this to the size available RAM for fastboot.
54 config FASTBOOT_USB_DEV
55 int "USB controller number"
56 depends on USB_FUNCTION_FASTBOOT
59 Some boards have USB OTG controller other than 0. Define this
60 option so it can be used in compiled environment (e.g. in
64 bool "Enable FASTBOOT FLASH command"
65 default y if ARCH_SUNXI
66 depends on MMC || (NAND && CMD_MTDPARTS)
69 The fastboot protocol includes a "flash" command for writing
70 the downloaded image to a non-volatile storage device. Define
71 this to enable the "fastboot flash" command.
74 prompt "Flash provider for FASTBOOT"
75 depends on FASTBOOT_FLASH
77 config FASTBOOT_FLASH_MMC
78 bool "FASTBOOT on MMC"
81 config FASTBOOT_FLASH_NAND
82 bool "FASTBOOT on NAND"
83 depends on NAND && CMD_MTDPARTS
87 config FASTBOOT_FLASH_MMC_DEV
88 int "Define FASTBOOT MMC FLASH default device"
89 depends on FASTBOOT_FLASH_MMC
90 default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
91 default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
93 The fastboot "flash" command requires additional information
94 regarding the non-volatile storage device. Define this to
95 the eMMC device that fastboot should use to store the image.
97 config FASTBOOT_FLASH_NAND_TRIMFFS
98 bool "Skip empty pages when flashing NAND"
99 depends on FASTBOOT_FLASH_NAND
101 When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
104 config FASTBOOT_GPT_NAME
105 string "Target name for updating GPT"
106 depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
109 The fastboot "flash" command supports writing the downloaded
110 image to the Protective MBR and the Primary GUID Partition
111 Table. (Additionally, this downloaded image is post-processed
112 to generate and write the Backup GUID Partition Table.)
113 This occurs when the specified "partition name" on the
114 "fastboot flash" command line matches the value defined here.
115 The default target name for updating GPT is "gpt".
117 config FASTBOOT_MBR_NAME
118 string "Target name for updating MBR"
119 depends on FASTBOOT_FLASH_MMC && DOS_PARTITION
122 The fastboot "flash" command allows to write the downloaded image
123 to the Master Boot Record. This occurs when the "partition name"
124 specified on the "fastboot flash" command line matches the value
125 defined here. The default target name for updating MBR is "mbr".