[U-Boot] [PATCH] env: ti: Improve "fastboot reboot bootloader" handling

Sam Protsenko semen.protsenko at linaro.org
Thu Jul 4 12:55:27 UTC 2019


Please ignore this one.

I came to the conclusion that it's an abuse of "preboot" feature, as
user can change it anytime. Anyway, seems like booting into fastboot
should be the part of Android boot procedure, which is done before
"bootm" command execution.

On Thu, Jun 20, 2019 at 9:58 PM Sam Protsenko
<semen.protsenko at linaro.org> wrote:
>
> Enter fastboot mode ASAP during the boot, when user performed
> "fastboot reboot bootloader" command, before starting the
> CONFIG_BOOTDELAY countdown. We don't want to allow user to get into
> U-Boot shell when we already know user wants to get into fastboot mode.
>
> Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
> ---
>  include/environment/ti/boot.h | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h
> index a6b245b1c7..8ddb0416c4 100644
> --- a/include/environment/ti/boot.h
> +++ b/include/environment/ti/boot.h
> @@ -126,13 +126,15 @@
>                 "if test $fdtfile = undefined; then " \
>                         "echo WARNING: Could not determine device tree to use; fi; \0"
>
> -#define CONFIG_BOOTCOMMAND \
> +#define CONFIG_PREBOOT \
>         "if test ${dofastboot} -eq 1; then " \
>                 "echo Boot fastboot requested, resetting dofastboot ...;" \
>                 "setenv dofastboot 0; saveenv;" \
>                 "echo Booting into fastboot ...; " \
>                 "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \
>         "fi;" \
> +
> +#define CONFIG_BOOTCOMMAND \
>         "if test ${boot_fit} -eq 1; then "      \
>                 "run update_to_fit;"    \
>         "fi;"   \
> --
> 2.20.1
>


More information about the U-Boot mailing list