Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 1 | comment "FASTBOOT" |
| 2 | |
Yann E. MORIN | c294873 | 2016-11-13 22:26:13 +0100 | [diff] [blame] | 3 | menuconfig FASTBOOT |
| 4 | bool "Fastboot support" |
Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 5 | |
Yann E. MORIN | c294873 | 2016-11-13 22:26:13 +0100 | [diff] [blame] | 6 | if FASTBOOT |
Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 7 | |
| 8 | config USB_FUNCTION_FASTBOOT |
| 9 | bool "Enable USB fastboot gadget" |
| 10 | help |
| 11 | This enables the USB part of the fastboot gadget. |
| 12 | |
| 13 | config CMD_FASTBOOT |
| 14 | bool "Enable FASTBOOT command" |
| 15 | help |
| 16 | This enables the command "fastboot" which enables the Android |
| 17 | fastboot mode for the platform's USB device. Fastboot is a USB |
| 18 | protocol for downloading images, flashing and device control |
| 19 | used on Android devices. |
| 20 | |
Simon Glass | 00fd59d | 2017-08-04 16:35:06 -0600 | [diff] [blame] | 21 | See doc/README.android-fastboot for more information. |
| 22 | |
Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 23 | config ANDROID_BOOT_IMAGE |
| 24 | bool "Enable support for Android Boot Images" |
| 25 | help |
| 26 | This enables support for booting images which use the Android |
| 27 | image format header. |
| 28 | |
| 29 | if USB_FUNCTION_FASTBOOT |
| 30 | |
| 31 | config FASTBOOT_BUF_ADDR |
| 32 | hex "Define FASTBOOT buffer address" |
| 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 | |
| 38 | config FASTBOOT_BUF_SIZE |
| 39 | hex "Define FASTBOOT buffer size" |
| 40 | help |
| 41 | The fastboot protocol requires a large memory buffer for |
| 42 | downloads. This buffer should be as large as possible for a |
| 43 | platform. Define this to the size available RAM for fastboot. |
| 44 | |
Semen Protsenko | 9af5ba8 | 2016-10-24 18:41:10 +0300 | [diff] [blame] | 45 | config FASTBOOT_USB_DEV |
| 46 | int "USB controller number" |
| 47 | default 0 |
| 48 | help |
| 49 | Some boards have USB OTG controller other than 0. Define this |
| 50 | option so it can be used in compiled environment (e.g. in |
| 51 | CONFIG_BOOTCOMMAND). |
| 52 | |
Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 53 | config FASTBOOT_FLASH |
| 54 | bool "Enable FASTBOOT FLASH command" |
| 55 | help |
| 56 | The fastboot protocol includes a "flash" command for writing |
| 57 | the downloaded image to a non-volatile storage device. Define |
| 58 | this to enable the "fastboot flash" command. |
| 59 | |
| 60 | config FASTBOOT_FLASH_MMC_DEV |
| 61 | int "Define FASTBOOT MMC FLASH default device" |
Petr Kulhavy | 6f6c863 | 2016-09-09 10:27:18 +0200 | [diff] [blame] | 62 | depends on FASTBOOT_FLASH |
Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 63 | help |
| 64 | The fastboot "flash" command requires additional information |
| 65 | regarding the non-volatile storage device. Define this to |
| 66 | the eMMC device that fastboot should use to store the image. |
| 67 | |
Petr Kulhavy | 6f6c863 | 2016-09-09 10:27:18 +0200 | [diff] [blame] | 68 | config FASTBOOT_GPT_NAME |
| 69 | string "Target name for updating GPT" |
| 70 | depends on FASTBOOT_FLASH |
| 71 | default "gpt" |
| 72 | help |
| 73 | The fastboot "flash" command supports writing the downloaded |
| 74 | image to the Protective MBR and the Primary GUID Partition |
| 75 | Table. (Additionally, this downloaded image is post-processed |
| 76 | to generate and write the Backup GUID Partition Table.) |
| 77 | This occurs when the specified "partition name" on the |
| 78 | "fastboot flash" command line matches the value defined here. |
| 79 | The default target name for updating GPT is "gpt". |
| 80 | |
| 81 | config FASTBOOT_MBR_NAME |
| 82 | string "Target name for updating MBR" |
| 83 | depends on FASTBOOT_FLASH |
| 84 | default "mbr" |
| 85 | help |
| 86 | The fastboot "flash" command allows to write the downloaded image |
| 87 | to the Master Boot Record. This occurs when the "partition name" |
| 88 | specified on the "fastboot flash" command line matches the value |
| 89 | defined here. The default target name for updating MBR is "mbr". |
| 90 | |
Steve Rae | e016f0b | 2016-08-15 17:26:26 -0700 | [diff] [blame] | 91 | endif # USB_FUNCTION_FASTBOOT |
| 92 | |
Yann E. MORIN | c294873 | 2016-11-13 22:26:13 +0100 | [diff] [blame] | 93 | endif # FASTBOOT |