1e016f0b2SSteve Raecomment "FASTBOOT" 2e016f0b2SSteve Rae 3e016f0b2SSteve Raeconfig FASTBOOT 4e016f0b2SSteve Rae bool "" 5e016f0b2SSteve Rae 6e016f0b2SSteve Raemenu "Fastboot support" 7e016f0b2SSteve Rae depends on FASTBOOT 8e016f0b2SSteve Rae 9e016f0b2SSteve Raeconfig USB_FUNCTION_FASTBOOT 10e016f0b2SSteve Rae bool "Enable USB fastboot gadget" 11e016f0b2SSteve Rae help 12e016f0b2SSteve Rae This enables the USB part of the fastboot gadget. 13e016f0b2SSteve Rae 14e016f0b2SSteve Raeconfig CMD_FASTBOOT 15e016f0b2SSteve Rae bool "Enable FASTBOOT command" 16e016f0b2SSteve Rae help 17e016f0b2SSteve Rae This enables the command "fastboot" which enables the Android 18e016f0b2SSteve Rae fastboot mode for the platform's USB device. Fastboot is a USB 19e016f0b2SSteve Rae protocol for downloading images, flashing and device control 20e016f0b2SSteve Rae used on Android devices. 21e016f0b2SSteve Rae 22e016f0b2SSteve Raeconfig ANDROID_BOOT_IMAGE 23e016f0b2SSteve Rae bool "Enable support for Android Boot Images" 24e016f0b2SSteve Rae help 25e016f0b2SSteve Rae This enables support for booting images which use the Android 26e016f0b2SSteve Rae image format header. 27e016f0b2SSteve Rae 28e016f0b2SSteve Raeif USB_FUNCTION_FASTBOOT 29e016f0b2SSteve Rae 30e016f0b2SSteve Raeconfig FASTBOOT_BUF_ADDR 31e016f0b2SSteve Rae hex "Define FASTBOOT buffer address" 32e016f0b2SSteve Rae help 33e016f0b2SSteve Rae The fastboot protocol requires a large memory buffer for 34e016f0b2SSteve Rae downloads. Define this to the starting RAM address to use for 35e016f0b2SSteve Rae downloaded images. 36e016f0b2SSteve Rae 37e016f0b2SSteve Raeconfig FASTBOOT_BUF_SIZE 38e016f0b2SSteve Rae hex "Define FASTBOOT buffer size" 39e016f0b2SSteve Rae help 40e016f0b2SSteve Rae The fastboot protocol requires a large memory buffer for 41e016f0b2SSteve Rae downloads. This buffer should be as large as possible for a 42e016f0b2SSteve Rae platform. Define this to the size available RAM for fastboot. 43e016f0b2SSteve Rae 44*9af5ba87SSemen Protsenkoconfig FASTBOOT_USB_DEV 45*9af5ba87SSemen Protsenko int "USB controller number" 46*9af5ba87SSemen Protsenko default 0 47*9af5ba87SSemen Protsenko help 48*9af5ba87SSemen Protsenko Some boards have USB OTG controller other than 0. Define this 49*9af5ba87SSemen Protsenko option so it can be used in compiled environment (e.g. in 50*9af5ba87SSemen Protsenko CONFIG_BOOTCOMMAND). 51*9af5ba87SSemen Protsenko 52e016f0b2SSteve Raeconfig FASTBOOT_FLASH 53e016f0b2SSteve Rae bool "Enable FASTBOOT FLASH command" 54e016f0b2SSteve Rae help 55e016f0b2SSteve Rae The fastboot protocol includes a "flash" command for writing 56e016f0b2SSteve Rae the downloaded image to a non-volatile storage device. Define 57e016f0b2SSteve Rae this to enable the "fastboot flash" command. 58e016f0b2SSteve Rae 59e016f0b2SSteve Raeconfig FASTBOOT_FLASH_MMC_DEV 60e016f0b2SSteve Rae int "Define FASTBOOT MMC FLASH default device" 616f6c8630SPetr Kulhavy depends on FASTBOOT_FLASH 62e016f0b2SSteve Rae help 63e016f0b2SSteve Rae The fastboot "flash" command requires additional information 64e016f0b2SSteve Rae regarding the non-volatile storage device. Define this to 65e016f0b2SSteve Rae the eMMC device that fastboot should use to store the image. 66e016f0b2SSteve Rae 676f6c8630SPetr Kulhavyconfig FASTBOOT_GPT_NAME 686f6c8630SPetr Kulhavy string "Target name for updating GPT" 696f6c8630SPetr Kulhavy depends on FASTBOOT_FLASH 706f6c8630SPetr Kulhavy default "gpt" 716f6c8630SPetr Kulhavy help 726f6c8630SPetr Kulhavy The fastboot "flash" command supports writing the downloaded 736f6c8630SPetr Kulhavy image to the Protective MBR and the Primary GUID Partition 746f6c8630SPetr Kulhavy Table. (Additionally, this downloaded image is post-processed 756f6c8630SPetr Kulhavy to generate and write the Backup GUID Partition Table.) 766f6c8630SPetr Kulhavy This occurs when the specified "partition name" on the 776f6c8630SPetr Kulhavy "fastboot flash" command line matches the value defined here. 786f6c8630SPetr Kulhavy The default target name for updating GPT is "gpt". 796f6c8630SPetr Kulhavy 806f6c8630SPetr Kulhavyconfig FASTBOOT_MBR_NAME 816f6c8630SPetr Kulhavy string "Target name for updating MBR" 826f6c8630SPetr Kulhavy depends on FASTBOOT_FLASH 836f6c8630SPetr Kulhavy default "mbr" 846f6c8630SPetr Kulhavy help 856f6c8630SPetr Kulhavy The fastboot "flash" command allows to write the downloaded image 866f6c8630SPetr Kulhavy to the Master Boot Record. This occurs when the "partition name" 876f6c8630SPetr Kulhavy specified on the "fastboot flash" command line matches the value 886f6c8630SPetr Kulhavy defined here. The default target name for updating MBR is "mbr". 896f6c8630SPetr Kulhavy 90e016f0b2SSteve Raeendif # USB_FUNCTION_FASTBOOT 91e016f0b2SSteve Rae 92e016f0b2SSteve Raeendmenu 93