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
40 The fastboot protocol requires a large memory buffer for
41 downloads. Define this to the starting RAM address to use for
44 config FASTBOOT_BUF_SIZE
45 hex "Define FASTBOOT buffer size"
46 default 0x8000000 if ARCH_ROCKCHIP
47 default 0x6000000 if ARCH_ZYNQMP
48 default 0x2000000 if ARCH_SUNXI
49 default 0x8192 if SANDBOX
52 The fastboot protocol requires a large memory buffer for
53 downloads. This buffer should be as large as possible for a
54 platform. Define this to the size available RAM for fastboot.
56 config FASTBOOT_USB_DEV
57 int "USB controller number"
58 depends on USB_FUNCTION_FASTBOOT
61 Some boards have USB OTG controller other than 0. Define this
62 option so it can be used in compiled environment (e.g. in
66 bool "Enable FASTBOOT FLASH command"
67 default y if ARCH_SUNXI || ARCH_ROCKCHIP
68 depends on MMC || (MTD_RAW_NAND && CMD_MTDPARTS)
71 The fastboot protocol includes a "flash" command for writing
72 the downloaded image to a non-volatile storage device. Define
73 this to enable the "fastboot flash" command.
76 prompt "Flash provider for FASTBOOT"
77 depends on FASTBOOT_FLASH
79 config FASTBOOT_FLASH_MMC
80 bool "FASTBOOT on MMC"
83 config FASTBOOT_FLASH_NAND
84 bool "FASTBOOT on NAND"
85 depends on MTD_RAW_NAND && CMD_MTDPARTS
89 config FASTBOOT_FLASH_MMC_DEV
90 int "Define FASTBOOT MMC FLASH default device"
91 depends on FASTBOOT_FLASH_MMC
92 default 0 if ARCH_ROCKCHIP
93 default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
94 default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
96 The fastboot "flash" command requires additional information
97 regarding the non-volatile storage device. Define this to
98 the eMMC device that fastboot should use to store the image.
100 config FASTBOOT_FLASH_NAND_TRIMFFS
101 bool "Skip empty pages when flashing NAND"
102 depends on FASTBOOT_FLASH_NAND
104 When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
107 config FASTBOOT_MMC_BOOT1_SUPPORT
108 bool "Enable EMMC_BOOT1 flash/erase"
109 depends on FASTBOOT_FLASH_MMC && EFI_PARTITION && ARCH_MEDIATEK
111 The fastboot "flash" and "erase" commands normally does operations
112 on EMMC userdata. Define this to enable the special commands to
113 flash/erase EMMC_BOOT1.
114 The default target name for updating EMMC_BOOT1 is "mmc0boot0".
116 config FASTBOOT_MMC_BOOT1_NAME
117 string "Target name for updating EMMC_BOOT1"
118 depends on FASTBOOT_MMC_BOOT1_SUPPORT
121 The fastboot "flash" and "erase" commands support operations on
122 EMMC_BOOT1. This occurs when the specified "EMMC_BOOT1 name" on
123 the "fastboot flash" and "fastboot erase" commands match the value
125 The default target name for updating EMMC_BOOT1 is "mmc0boot0".
127 config FASTBOOT_MMC_USER_NAME
128 string "Target name for erasing EMMC_USER"
129 depends on FASTBOOT_FLASH_MMC && EFI_PARTITION && ARCH_MEDIATEK
132 The fastboot "erase" command supports erasing EMMC_USER. This occurs
133 when the specified "EMMC_USER name" on the "fastboot erase" commands
134 match the value defined here.
135 The default target name for erasing EMMC_USER is "mmc0".
137 config FASTBOOT_GPT_NAME
138 string "Target name for updating GPT"
139 depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
142 The fastboot "flash" command supports writing the downloaded
143 image to the Protective MBR and the Primary GUID Partition
144 Table. (Additionally, this downloaded image is post-processed
145 to generate and write the Backup GUID Partition Table.)
146 This occurs when the specified "partition name" on the
147 "fastboot flash" command line matches the value defined here.
148 The default target name for updating GPT is "gpt".
150 config FASTBOOT_MBR_NAME
151 string "Target name for updating MBR"
152 depends on FASTBOOT_FLASH_MMC && DOS_PARTITION
155 The fastboot "flash" command allows to write the downloaded image
156 to the Master Boot Record. This occurs when the "partition name"
157 specified on the "fastboot flash" command line matches the value
158 defined here. The default target name for updating MBR is "mbr".
160 config FASTBOOT_CMD_OEM_FORMAT
161 bool "Enable the 'oem format' command"
162 depends on FASTBOOT_FLASH_MMC && CMD_GPT
164 Add support for the "oem format" command from a client. This
165 relies on the env variable partitions to contain the list of
166 partitions as required by the gpt command.
168 config FASTBOOT_USE_BCB_SET_REBOOT_FLAG
169 bool "Use BCB by fastboot to set boot reason"
170 depends on CMD_BCB && !ARCH_MESON && !ARCH_ROCKCHIP && !TARGET_KC1 && \
171 !TARGET_SNIPER && !TARGET_AM57XX_EVM && !TARGET_DRA7XX_EVM
174 Fastboot could implement setting of reboot reason in a generic fashion
175 via BCB commands. BCB commands are able to write reboot reason into
176 command field of boot control block. In general case it is sufficient
177 implementation if your platform supports BCB commands and doesn't
178 require any specific reboot reason handling.