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