blob: d555d0a7ee419a803346280c8babea808490e631 [file] [log] [blame]
Steve Raee016f0b2016-08-15 17:26:26 -07001comment "FASTBOOT"
2
3config FASTBOOT
4 bool ""
5
6menu "Fastboot support"
7 depends on FASTBOOT
8
9config USB_FUNCTION_FASTBOOT
10 bool "Enable USB fastboot gadget"
11 help
12 This enables the USB part of the fastboot gadget.
13
14config CMD_FASTBOOT
15 bool "Enable FASTBOOT command"
16 help
17 This enables the command "fastboot" which enables the Android
18 fastboot mode for the platform's USB device. Fastboot is a USB
19 protocol for downloading images, flashing and device control
20 used on Android devices.
21
22config ANDROID_BOOT_IMAGE
23 bool "Enable support for Android Boot Images"
24 help
25 This enables support for booting images which use the Android
26 image format header.
27
28if USB_FUNCTION_FASTBOOT
29
30config FASTBOOT_BUF_ADDR
31 hex "Define FASTBOOT buffer address"
32 help
33 The fastboot protocol requires a large memory buffer for
34 downloads. Define this to the starting RAM address to use for
35 downloaded images.
36
37config FASTBOOT_BUF_SIZE
38 hex "Define FASTBOOT buffer size"
39 help
40 The fastboot protocol requires a large memory buffer for
41 downloads. This buffer should be as large as possible for a
42 platform. Define this to the size available RAM for fastboot.
43
Semen Protsenko9af5ba82016-10-24 18:41:10 +030044config FASTBOOT_USB_DEV
45 int "USB controller number"
46 default 0
47 help
48 Some boards have USB OTG controller other than 0. Define this
49 option so it can be used in compiled environment (e.g. in
50 CONFIG_BOOTCOMMAND).
51
Steve Raee016f0b2016-08-15 17:26:26 -070052config FASTBOOT_FLASH
53 bool "Enable FASTBOOT FLASH command"
54 help
55 The fastboot protocol includes a "flash" command for writing
56 the downloaded image to a non-volatile storage device. Define
57 this to enable the "fastboot flash" command.
58
59config FASTBOOT_FLASH_MMC_DEV
60 int "Define FASTBOOT MMC FLASH default device"
Petr Kulhavy6f6c8632016-09-09 10:27:18 +020061 depends on FASTBOOT_FLASH
Steve Raee016f0b2016-08-15 17:26:26 -070062 help
63 The fastboot "flash" command requires additional information
64 regarding the non-volatile storage device. Define this to
65 the eMMC device that fastboot should use to store the image.
66
Petr Kulhavy6f6c8632016-09-09 10:27:18 +020067config FASTBOOT_GPT_NAME
68 string "Target name for updating GPT"
69 depends on FASTBOOT_FLASH
70 default "gpt"
71 help
72 The fastboot "flash" command supports writing the downloaded
73 image to the Protective MBR and the Primary GUID Partition
74 Table. (Additionally, this downloaded image is post-processed
75 to generate and write the Backup GUID Partition Table.)
76 This occurs when the specified "partition name" on the
77 "fastboot flash" command line matches the value defined here.
78 The default target name for updating GPT is "gpt".
79
80config FASTBOOT_MBR_NAME
81 string "Target name for updating MBR"
82 depends on FASTBOOT_FLASH
83 default "mbr"
84 help
85 The fastboot "flash" command allows to write the downloaded image
86 to the Master Boot Record. This occurs when the "partition name"
87 specified on the "fastboot flash" command line matches the value
88 defined here. The default target name for updating MBR is "mbr".
89
Steve Raee016f0b2016-08-15 17:26:26 -070090endif # USB_FUNCTION_FASTBOOT
91
92endmenu