xref: /rk3399_rockchip-uboot/cmd/fastboot/Kconfig (revision c294873179ea3a9eb2c51c23f78f2dfae92e4a2d)
1e016f0b2SSteve Raecomment "FASTBOOT"
2e016f0b2SSteve Rae
3*c2948731SYann E. MORINmenuconfig FASTBOOT
4*c2948731SYann E. MORIN	bool "Fastboot support"
5e016f0b2SSteve Rae
6*c2948731SYann 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
21e016f0b2SSteve Raeconfig ANDROID_BOOT_IMAGE
22e016f0b2SSteve Rae	bool "Enable support for Android Boot Images"
23e016f0b2SSteve Rae	help
24e016f0b2SSteve Rae	  This enables support for booting images which use the Android
25e016f0b2SSteve Rae	  image format header.
26e016f0b2SSteve Rae
27e016f0b2SSteve Raeif USB_FUNCTION_FASTBOOT
28e016f0b2SSteve Rae
29e016f0b2SSteve Raeconfig FASTBOOT_BUF_ADDR
30e016f0b2SSteve Rae	hex "Define FASTBOOT buffer address"
31e016f0b2SSteve Rae	help
32e016f0b2SSteve Rae	  The fastboot protocol requires a large memory buffer for
33e016f0b2SSteve Rae	  downloads. Define this to the starting RAM address to use for
34e016f0b2SSteve Rae	  downloaded images.
35e016f0b2SSteve Rae
36e016f0b2SSteve Raeconfig FASTBOOT_BUF_SIZE
37e016f0b2SSteve Rae	hex "Define FASTBOOT buffer size"
38e016f0b2SSteve Rae	help
39e016f0b2SSteve Rae	  The fastboot protocol requires a large memory buffer for
40e016f0b2SSteve Rae	  downloads. This buffer should be as large as possible for a
41e016f0b2SSteve Rae	  platform. Define this to the size available RAM for fastboot.
42e016f0b2SSteve Rae
439af5ba87SSemen Protsenkoconfig FASTBOOT_USB_DEV
449af5ba87SSemen Protsenko	int "USB controller number"
459af5ba87SSemen Protsenko	default 0
469af5ba87SSemen Protsenko	help
479af5ba87SSemen Protsenko	  Some boards have USB OTG controller other than 0. Define this
489af5ba87SSemen Protsenko	  option so it can be used in compiled environment (e.g. in
499af5ba87SSemen Protsenko	  CONFIG_BOOTCOMMAND).
509af5ba87SSemen Protsenko
51e016f0b2SSteve Raeconfig FASTBOOT_FLASH
52e016f0b2SSteve Rae	bool "Enable FASTBOOT FLASH command"
53e016f0b2SSteve Rae	help
54e016f0b2SSteve Rae	  The fastboot protocol includes a "flash" command for writing
55e016f0b2SSteve Rae	  the downloaded image to a non-volatile storage device. Define
56e016f0b2SSteve Rae	  this to enable the "fastboot flash" command.
57e016f0b2SSteve Rae
58e016f0b2SSteve Raeconfig FASTBOOT_FLASH_MMC_DEV
59e016f0b2SSteve Rae	int "Define FASTBOOT MMC FLASH default device"
606f6c8630SPetr Kulhavy	depends on FASTBOOT_FLASH
61e016f0b2SSteve Rae	help
62e016f0b2SSteve Rae	  The fastboot "flash" command requires additional information
63e016f0b2SSteve Rae	  regarding the non-volatile storage device. Define this to
64e016f0b2SSteve Rae	  the eMMC device that fastboot should use to store the image.
65e016f0b2SSteve Rae
666f6c8630SPetr Kulhavyconfig FASTBOOT_GPT_NAME
676f6c8630SPetr Kulhavy	string "Target name for updating GPT"
686f6c8630SPetr Kulhavy	depends on FASTBOOT_FLASH
696f6c8630SPetr Kulhavy	default "gpt"
706f6c8630SPetr Kulhavy	help
716f6c8630SPetr Kulhavy	  The fastboot "flash" command supports writing the downloaded
726f6c8630SPetr Kulhavy	  image to the Protective MBR and the Primary GUID Partition
736f6c8630SPetr Kulhavy	  Table. (Additionally, this downloaded image is post-processed
746f6c8630SPetr Kulhavy	  to generate and write the Backup GUID Partition Table.)
756f6c8630SPetr Kulhavy	  This occurs when the specified "partition name" on the
766f6c8630SPetr Kulhavy	  "fastboot flash" command line matches the value defined here.
776f6c8630SPetr Kulhavy	  The default target name for updating GPT is "gpt".
786f6c8630SPetr Kulhavy
796f6c8630SPetr Kulhavyconfig FASTBOOT_MBR_NAME
806f6c8630SPetr Kulhavy	string "Target name for updating MBR"
816f6c8630SPetr Kulhavy	depends on FASTBOOT_FLASH
826f6c8630SPetr Kulhavy	default "mbr"
836f6c8630SPetr Kulhavy	help
846f6c8630SPetr Kulhavy	  The fastboot "flash" command allows to write the downloaded image
856f6c8630SPetr Kulhavy	  to the Master Boot Record. This occurs when the "partition name"
866f6c8630SPetr Kulhavy	  specified on the "fastboot flash" command line matches the value
876f6c8630SPetr Kulhavy	  defined here. The default target name for updating MBR is "mbr".
886f6c8630SPetr Kulhavy
89e016f0b2SSteve Raeendif # USB_FUNCTION_FASTBOOT
90e016f0b2SSteve Rae
91*c2948731SYann E. MORINendif # FASTBOOT
92