[U-Boot] [PATCH 4/4] fastboot: Enable flashing by default on sunxi

André Przywara andre.przywara at arm.com
Thu Nov 30 00:23:28 UTC 2017


On 28/11/17 10:34, Maxime Ripard wrote:
> Now that more and more devices are built using eMMC, providing a way to
> easily flash the system without too much hassle seems like a right thing to
> do.
> 
> Since fastboot is the most deployed tool to do that these days, we can just
> rely on it to provide a way to flash the various components in the system
> (SPL, U-Boot and the system itself) easily, especially since you can upload
> the U-Boot hosting the fastboot "server" through FEL.
> 
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>

Reviewed-by: Andre Przywara <andre.przywara at arm.com>

The binary size for 32-bit targets is still reasonable with this
addition (thanks to Thumb2).

But if I enable MUSB for the Pine64 it generates a 537KB u-boot.itb. And
the build process does not complain, I guess because I don't generate a
combined binary (glueing SPL in front). But this isn't really caused by
this patch, so just a heads up.

Cheers,
Andre.

> ---
>  cmd/fastboot/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cmd/fastboot/Kconfig b/cmd/fastboot/Kconfig
> index 4ce7a775e28e..cbb9183ea266 100644
> --- a/cmd/fastboot/Kconfig
> +++ b/cmd/fastboot/Kconfig
> @@ -66,6 +66,7 @@ config FASTBOOT_USB_DEV
>  
>  config FASTBOOT_FLASH
>  	bool "Enable FASTBOOT FLASH command"
> +	default y if ARCH_SUNXI
>  	help
>  	  The fastboot protocol includes a "flash" command for writing
>  	  the downloaded image to a non-volatile storage device. Define
> 



More information about the U-Boot mailing list