All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Hahn <B.Hahn@phytec.de>
To: Thorsten Schmelzer <t.schmelzer@phytec.de>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	upstream@lists.phytec.de, u-boot@lists.u-boot-project.org
Cc: Tom Rini <trini@konsulko.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Stefano Babic <sbabic@nabladev.com>,
	Fabio Estevam <festevam@gmail.com>,
	Francesco Dolcini <francesco.dolcini@toradex.com>,
	Peng Fan <peng.fan@nxp.com>,
	Benedikt Spranger <b.spranger@linutronix.de>,
	INgo Rah <ingo.rah@linutronix.de>
Subject: Re: [Upstream] [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB
Date: Wed, 25 Nov 2026 17:50:43 +0100	[thread overview]
Message-ID: <49c9c222-3d36-4ea5-80e4-2bb036d6ac55@phytec.de> (raw)
In-Reply-To: <20261119-wip-t-schmelzer-phytec-de-usb-uuu-support-imx8mm-v1-3-dd6db9e5edfd@phytec.de>

Am 19.11.26 um 15:12 schrieb Thorsten Schmelzer:
> In order to support the complete flow for flashing with the UUU tool,
> fastboot has to be enabled, when booting through USB has been detected.
>
> Modify the bootcmd in board_late_init if USB_BOOT is detected as boot
> device.
>
> Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
>   board/phytec/phycore_imx8mm/phycore-imx8mm.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> index 25e51dce7396..6e1e88a0a47e 100644
> --- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> +++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> @@ -45,6 +45,11 @@ int board_late_init(void)
>   	case MMC3_BOOT:
>   		env_set_ulong("mmcdev", 2);
>   		break;
> +	case USB_BOOT:
> +		printf("Detect USB boot. Will enter fastboot mode!\n");
> +		if (!strcmp(env_get("bootcmd"), env_get_default("bootcmd")))
> +			env_set("bootcmd", "fastboot 0; bootflow scan -lb;");
> +		break;
>   	default:
>   		break;
>   	}
>

  reply	other threads:[~2026-11-25 16:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 14:12 [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
2026-11-25 16:48   ` Benjamin Hahn
2026-11-25 16:49   ` Benjamin Hahn
2026-11-19 14:12 ` [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool Thorsten Schmelzer
2026-11-25 16:50   ` Benjamin Hahn
2026-11-19 14:12 ` [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB Thorsten Schmelzer
2026-11-25 16:50   ` Benjamin Hahn [this message]
2026-11-19 14:12 ` [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU Thorsten Schmelzer
2026-11-25 16:51   ` [Upstream] " Benjamin Hahn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49c9c222-3d36-4ea5-80e4-2bb036d6ac55@phytec.de \
    --to=b.hahn@phytec.de \
    --cc=b.spranger@linutronix.de \
    --cc=festevam@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=ingo.rah@linutronix.de \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@nabladev.com \
    --cc=t.schmelzer@phytec.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=uboot-imx@nxp.com \
    --cc=upstream@lists.phytec.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.