mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
fastboot: Move fastboot to drivers/fastboot
Separate CMD_FASTBOOT from FASTBOOT and move code and configuration to drivers/fastboot. Switch dependencies on FASTBOOT to USB_FUNCTION_FASTBOOT as anyone who wants FASTBOOT before this series wants USB_FUNCTION_FASTBOOT. Split USB_FUNCTION_FASTBOOT from FASTBOOT so they retain their existing behaviour. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
6aae84769a
commit
312a10f16b
47 changed files with 75 additions and 79 deletions
|
@ -1258,9 +1258,7 @@ config ARCH_ROCKCHIP
|
|||
select DM_REGULATOR
|
||||
select ENABLE_ARM_SOC_BOOT0_HOOK
|
||||
select SPI
|
||||
imply CMD_FASTBOOT
|
||||
imply DISTRO_DEFAULTS
|
||||
imply FASTBOOT
|
||||
imply FAT_WRITE
|
||||
imply USB_FUNCTION_FASTBOOT
|
||||
imply SPL_SYSRESET
|
||||
|
|
|
@ -25,7 +25,6 @@ config TI_COMMON_CMD_OPTIONS
|
|||
imply CMD_EXT2
|
||||
imply CMD_EXT4
|
||||
imply CMD_EXT4_WRITE
|
||||
imply CMD_FASTBOOT if FASTBOOT
|
||||
imply CMD_FAT
|
||||
imply FAT_WRITE if CMD_FAT
|
||||
imply CMD_FS_GENERIC
|
||||
|
|
14
cmd/Kconfig
14
cmd/Kconfig
|
@ -137,8 +137,6 @@ config AUTOBOOT_STOP_STR_SHA256
|
|||
|
||||
endmenu
|
||||
|
||||
source "cmd/fastboot/Kconfig"
|
||||
|
||||
config BUILD_BIN2C
|
||||
bool
|
||||
|
||||
|
@ -650,6 +648,18 @@ config CMD_DM
|
|||
can be useful to see the state of driver model for debugging or
|
||||
interest.
|
||||
|
||||
config CMD_FASTBOOT
|
||||
bool "fastboot - Android fastboot support"
|
||||
depends on FASTBOOT
|
||||
help
|
||||
This enables the command "fastboot" which enables the Android
|
||||
fastboot mode for the platform. Fastboot is a protocol for
|
||||
downloading images, flashing and device control used on
|
||||
Android devices. Fastboot requires support for acting as a USB
|
||||
device.
|
||||
|
||||
See doc/README.android-fastboot for more information.
|
||||
|
||||
config CMD_FDC
|
||||
bool "fdcboot - Boot from floppy device"
|
||||
help
|
||||
|
|
|
@ -29,7 +29,7 @@ obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o
|
|||
|
||||
obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
|
||||
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
||||
|
||||
obj-$(CONFIG_FASTBOOT_FLASH) += image-sparse.o
|
||||
obj-$(CONFIG_MII) += miiphyutil.o
|
||||
obj-$(CONFIG_CMD_MII) += miiphyutil.o
|
||||
obj-$(CONFIG_PHYLIB) += miiphyutil.o
|
||||
|
@ -109,19 +109,6 @@ obj-$(CONFIG_IO_TRACE) += iotrace.o
|
|||
obj-y += memsize.o
|
||||
obj-y += stdio.o
|
||||
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
# This option is not just y/n - it can have a numeric value
|
||||
ifdef CONFIG_FASTBOOT_FLASH
|
||||
obj-y += image-sparse.o
|
||||
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
|
||||
obj-y += fb_mmc.o
|
||||
endif
|
||||
ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
|
||||
obj-y += fb_nand.o
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef CONFIG_CMD_EEPROM_LAYOUT
|
||||
obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
|
||||
endif
|
||||
|
|
|
@ -16,7 +16,7 @@ CONFIG_AUTOBOOT_KEYED=y
|
|||
CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
|
||||
CONFIG_AUTOBOOT_DELAY_STR="d"
|
||||
CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=1
|
||||
CONFIG_CMD_SPL=y
|
||||
|
|
|
@ -19,7 +19,7 @@ CONFIG_AUTOBOOT_KEYED=y
|
|||
CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
|
||||
CONFIG_AUTOBOOT_DELAY_STR="d"
|
||||
CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_CMD_SPL=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
|
|
|
@ -13,7 +13,7 @@ CONFIG_ARCH_MISC_INIT=y
|
|||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_MUSB_NEW_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00080000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -12,7 +12,7 @@ CONFIG_ARCH_MISC_INIT=y
|
|||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_MUSB_NEW_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00080000
|
||||
CONFIG_CMD_NAND=y
|
||||
|
|
|
@ -12,7 +12,7 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
|||
CONFIG_VERSION_VARIABLE=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
CONFIG_CMD_MTDPARTS=y
|
||||
CONFIG_MTDIDS_DEFAULT="nor0=physmap-flash.0"
|
||||
|
|
|
@ -15,7 +15,7 @@ CONFIG_VERSION_VARIABLE=y
|
|||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_MUSB_NEW_SUPPORT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
CONFIG_CMD_MTDPARTS=y
|
||||
|
|
|
@ -19,7 +19,7 @@ CONFIG_SPL_OS_BOOT=y
|
|||
CONFIG_SPL_USB_GADGET_SUPPORT=y
|
||||
CONFIG_SPL_USB_ETHER=y
|
||||
# CONFIG_SPL_YMODEM_SUPPORT is not set
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x00080000
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -24,7 +24,7 @@ CONFIG_SPL_SEPARATE_BSS=y
|
|||
CONFIG_SPL_DMA_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x2F000000
|
||||
CONFIG_FASTBOOT_USB_DEV=1
|
||||
|
|
|
@ -29,7 +29,7 @@ CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
|||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SPL_DMA_SUPPORT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x2F000000
|
||||
CONFIG_FASTBOOT_USB_DEV=1
|
||||
|
|
|
@ -7,7 +7,7 @@ CONFIG_VERSION_VARIABLE=y
|
|||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x80000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x1D000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -8,7 +8,7 @@ CONFIG_VERSION_VARIABLE=y
|
|||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x80000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x7FF00000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -25,7 +25,7 @@ CONFIG_SPL_MUSB_NEW_SUPPORT=y
|
|||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_POWER_SUPPORT=y
|
||||
CONFIG_SPL_YMODEM_SUPPORT=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -25,7 +25,7 @@ CONFIG_SPL_MUSB_NEW_SUPPORT=y
|
|||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_POWER_SUPPORT=y
|
||||
CONFIG_SPL_YMODEM_SUPPORT=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -24,7 +24,7 @@ CONFIG_SPL_I2C_SUPPORT=y
|
|||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="CGT-QMX6-Quad U-Boot > "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_DFU=y
|
||||
|
|
|
@ -25,7 +25,7 @@ CONFIG_SPL_SEPARATE_BSS=y
|
|||
CONFIG_SPL_DMA_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x2F000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -30,7 +30,7 @@ CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
|||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SPL_DMA_SUPPORT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x2F000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6dl-mamoj"
|
|||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg"
|
||||
CONFIG_BOOTDELAY=3
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x10000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -12,7 +12,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
|
|||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=2
|
||||
CONFIG_SYS_PROMPT="kc1 # "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x2000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_BOOTDELAY=3
|
|||
# CONFIG_USE_BOOTCOMMAND is not set
|
||||
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
|
|
|
@ -22,7 +22,7 @@ CONFIG_SPL_USB_HOST_SUPPORT=y
|
|||
CONFIG_SPL_USB_GADGET_SUPPORT=y
|
||||
CONFIG_SPL_USB_SDP_SUPPORT=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x10000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
|||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
|||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
|||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
|||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
|||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
|||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -13,7 +13,7 @@ CONFIG_VERSION_VARIABLE=y
|
|||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="BeagleBoard # "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x280000
|
||||
|
|
|
@ -12,7 +12,7 @@ CONFIG_VERSION_VARIABLE=y
|
|||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="OMAP3_EVM # "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_CMD_SPL=y
|
||||
CONFIG_CMD_SPL_NAND_OFS=0x280000
|
||||
|
|
|
@ -13,7 +13,7 @@ CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
|||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="OMAP Logic # "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
# CONFIG_CMD_IMI is not set
|
||||
CONFIG_CMD_SPL=y
|
||||
|
|
|
@ -13,7 +13,7 @@ CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y
|
|||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=2
|
||||
# CONFIG_SPL_EXT_SUPPORT is not set
|
||||
CONFIG_SYS_PROMPT="sniper # "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x2000000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -10,7 +10,7 @@ CONFIG_USE_BOOTARGS=y
|
|||
CONFIG_BOOTARGS="console=ttyAS1,115200 CONSOLE=/dev/ttyAS1 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait mem=992M@0x40000000 vmalloc=256m"
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_SYS_PROMPT="stih410-b2260 => "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_BUF_ADDR=0x40000000
|
||||
CONFIG_FASTBOOT_BUF_SIZE=0x3DF00000
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
|
|
|
@ -19,7 +19,7 @@ CONFIG_SPL_RAM_SUPPORT=y
|
|||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
|
|
|
@ -20,7 +20,7 @@ CONFIG_SPL_RAM_SUPPORT=y
|
|||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
|
|
|
@ -19,7 +19,7 @@ CONFIG_SPL_RAM_SUPPORT=y
|
|||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
|
|
|
@ -19,7 +19,7 @@ CONFIG_SPL_RAM_SUPPORT=y
|
|||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
|
|
|
@ -19,7 +19,7 @@ CONFIG_SPL_RAM_SUPPORT=y
|
|||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
|
|
|
@ -18,7 +18,7 @@ CONFIG_SPL_RAM_SUPPORT=y
|
|||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_FASTBOOT=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
|
|
|
@ -28,6 +28,8 @@ source "drivers/dfu/Kconfig"
|
|||
|
||||
source "drivers/dma/Kconfig"
|
||||
|
||||
source "drivers/fastboot/Kconfig"
|
||||
|
||||
source "drivers/firmware/Kconfig"
|
||||
|
||||
source "drivers/fpga/Kconfig"
|
||||
|
|
|
@ -71,6 +71,9 @@ obj-y += block/
|
|||
obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
|
||||
obj-$(CONFIG_CPU) += cpu/
|
||||
obj-y += crypto/
|
||||
ifneq ($(CONFIG_FASTBOOT_FLASH_MMC_DEV)$(CONFIG_FASTBOOT_FLASH_NAND_DEV),)
|
||||
obj-y += fastboot/
|
||||
endif
|
||||
obj-y += firmware/
|
||||
obj-$(CONFIG_FPGA) += fpga/
|
||||
obj-y += misc/
|
||||
|
|
|
@ -1,32 +1,20 @@
|
|||
comment "FASTBOOT"
|
||||
menu "Fastboot support"
|
||||
|
||||
menuconfig FASTBOOT
|
||||
bool "Fastboot support"
|
||||
depends on USB_GADGET
|
||||
default y if ARCH_SUNXI && USB_MUSB_GADGET
|
||||
|
||||
if FASTBOOT
|
||||
config FASTBOOT
|
||||
bool
|
||||
imply ANDROID_BOOT_IMAGE
|
||||
imply CMD_FASTBOOT
|
||||
|
||||
config USB_FUNCTION_FASTBOOT
|
||||
bool "Enable USB fastboot gadget"
|
||||
default y
|
||||
depends on USB_GADGET
|
||||
default y if ARCH_SUNXI && USB_MUSB_GADGET
|
||||
select FASTBOOT
|
||||
select USB_GADGET_DOWNLOAD
|
||||
imply ANDROID_BOOT_IMAGE
|
||||
imply CMD_FASTBOOT
|
||||
help
|
||||
This enables the USB part of the fastboot gadget.
|
||||
|
||||
config CMD_FASTBOOT
|
||||
bool "Enable FASTBOOT command"
|
||||
help
|
||||
This enables the command "fastboot" which enables the Android
|
||||
fastboot mode for the platform's USB device. Fastboot is a USB
|
||||
protocol for downloading images, flashing and device control
|
||||
used on Android devices.
|
||||
|
||||
See doc/README.android-fastboot for more information.
|
||||
|
||||
if USB_FUNCTION_FASTBOOT
|
||||
if FASTBOOT
|
||||
|
||||
config FASTBOOT_BUF_ADDR
|
||||
hex "Define FASTBOOT buffer address"
|
||||
|
@ -58,6 +46,7 @@ config FASTBOOT_BUF_SIZE
|
|||
|
||||
config FASTBOOT_USB_DEV
|
||||
int "USB controller number"
|
||||
depends on USB_FUNCTION_FASTBOOT
|
||||
default 0
|
||||
help
|
||||
Some boards have USB OTG controller other than 0. Define this
|
||||
|
@ -129,6 +118,6 @@ config FASTBOOT_MBR_NAME
|
|||
specified on the "fastboot flash" command line matches the value
|
||||
defined here. The default target name for updating MBR is "mbr".
|
||||
|
||||
endif # USB_FUNCTION_FASTBOOT
|
||||
|
||||
endif # FASTBOOT
|
||||
|
||||
endmenu
|
8
drivers/fastboot/Makefile
Normal file
8
drivers/fastboot/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
|
||||
obj-y += fb_mmc.o
|
||||
endif
|
||||
ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
|
||||
obj-y += fb_nand.o
|
||||
endif
|
Loading…
Reference in a new issue