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