From: Carlo Caione <ccaione@baylibre.com>
To: David Lechner <dlechner@baylibre.com>
Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,
u-boot@lists.u-boot-project.org, "Tom Rini" <trini@konsulko.com>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Ryder Lee" <ryder.lee@mediatek.com>,
"Weijie Gao" <weijie.gao@mediatek.com>,
"Chunfeng Yun" <chunfeng.yun@mediatek.com>,
"Igor Belwon" <igor.belwon@mentallysanemainliners.org>,
"Julien Stephan" <jstephan@baylibre.com>,
"Julien Masson" <jmasson@baylibre.com>,
"Johan Jonker" <jbx6244@gmail.com>,
"Macpaul Lin" <macpaul.lin@mediatek.com>,
"Chris-QJ Chen" <chris-qj.chen@mediatek.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Bastien Curutchet" <bastien.curutchet@bootlin.com>,
"Alexey Charkov" <alchark@gmail.com>,
"Vitor Sato Eschholz" <vsatoes@baylibre.com>,
"Pablo Sun (孫毓翔)" <pablo.sun@mediatek.com>,
"Arnaud Ferraris" <arnaud.ferraris@collabora.com>,
"Suhrid Subramaniam" <Suhrid.Subramaniam@mediatek.com>,
"Marek Vasut" <marek.vasut+usb@mailbox.org>,
"Casey Connolly" <casey.connolly@linaro.org>,
"Michael Srba" <Michael.Srba@seznam.cz>
Subject: Re: [PATCH v3 2/4] arm: mediatek: enable SPL fastboot DAs on Genio 510 and 700
Date: Tue, 6 Oct 2026 16:27:58 +0200 [thread overview]
Message-ID: <asUFMBMogDmO8Lf6@macbook> (raw)
In-Reply-To: <b8e3b2c2-6eb0-4d16-821d-9e39492ad2ef@baylibre.com>
On Mon, Oct 05, 2026 at 18:05:54 +0100, David Lechner wrote:
> On 9/30/26 7:51 AM, Carlo Caione wrote:
> > From: Julien Masson <jmasson@baylibre.com>
> >
> > Genio 510 and 700 need a way to provision blank eMMC and recover from
> > unusable boot firmware without relying on the installed bootloader. Add
> > a BootROM-loaded fastboot agent that also prepares the eMMC boot
> > settings so newly flashed firmware can boot.
> >
>
> ...
>
> > diff --git a/arch/arm/dts/mtk-genio-da-binman-u-boot.dtsi b/arch/arm/dts/mtk-genio-da-binman-u-boot.dtsi
> > new file mode 100644
> > index 00000000000..fb6fadb492f
> > --- /dev/null
> > +++ b/arch/arm/dts/mtk-genio-da-binman-u-boot.dtsi
> > @@ -0,0 +1,16 @@
> > +// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
> > +/*
> > + * Copyright (c) 2026 BayLibre, SAS.
> > + * Author: Carlo Caione <ccaione@baylibre.com>
> > + */
> > +
> > +&binman {
> > + da: da {
> > + filename = "da.bin";
> > + pad-byte = <0>;
> > +
> > +/* DA authentication is handled by the BootROM download tooling. */
> > +#define MTK_GENIO_SPL_NO_FIT_KEYS
> > +#include "mtk-genio-loader-spl-binman-u-boot.dtsi"
> > + };
> > +};
>
> Since the download agent and MTK_GENIO_BOOT_IMAGES are mutually exclusive,
> could the loader dtsi just check !defined(CONFIG_MTK_BROM_DOWNLOAD_AGENT)
> instead of a private MTK_GENIO_SPL_NO_FIT_KEYS define?
Good idea.
> > diff --git a/arch/arm/mach-mediatek/download_agent.c b/arch/arm/mach-mediatek/download_agent.c
> > new file mode 100644
> > index 00000000000..e73b6a6b161
> > --- /dev/null
> > +++ b/arch/arm/mach-mediatek/download_agent.c
> > @@ -0,0 +1,69 @@
> > +// SPDX-License-Identifier: GPL-2.0-only
> > +/*
> > + * Copyright (c) 2026 BayLibre, SAS.
> > + * Author: Julien Masson <jmasson@baylibre.com>
> > + */
> > +
> > +#include <dm/uclass.h>
> > +#include <fastboot.h>
> > +#include <mmc.h>
> > +#include <stdio.h>
> > +#include <linux/errno.h>
>
> Also spl.h for spl_board_init() and init.h for board_late_init().
Ok.
I'm going to push a V4 right away because I'm adding one new commit on
top of this series for an important fix.
Cheers,
--
Carlo Caione
next prev parent reply other threads:[~2026-10-06 14:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 12:51 [PATCH v3 0/4] Add Genio 510 and 700 BootROM download agents Carlo Caione
2026-09-30 12:51 ` [PATCH v3 1/4] arm: mediatek: simplify SPL boot-device selection Carlo Caione
2026-09-30 12:51 ` [PATCH v3 2/4] arm: mediatek: enable SPL fastboot DAs on Genio 510 and 700 Carlo Caione
2026-10-05 23:05 ` David Lechner
2026-10-06 14:27 ` Carlo Caione [this message]
2026-09-30 12:51 ` [PATCH v3 3/4] arm: mediatek: enable U-Boot " Carlo Caione
2026-09-30 12:51 ` [PATCH v3 4/4] doc: board: mediatek: document Genio download agents Carlo Caione
2026-09-30 14:47 ` [PATCH v3 0/4] Add Genio 510 and 700 BootROM " Quentin Schulz
2026-09-30 17:02 ` Carlo Caione
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=asUFMBMogDmO8Lf6@macbook \
--to=ccaione@baylibre.com \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=Michael.Srba@seznam.cz \
--cc=Suhrid.Subramaniam@mediatek.com \
--cc=alchark@gmail.com \
--cc=arnaud.ferraris@collabora.com \
--cc=bastien.curutchet@bootlin.com \
--cc=casey.connolly@linaro.org \
--cc=chris-qj.chen@mediatek.com \
--cc=chunfeng.yun@mediatek.com \
--cc=dlechner@baylibre.com \
--cc=igor.belwon@mentallysanemainliners.org \
--cc=ilias.apalodimas@linaro.org \
--cc=jbx6244@gmail.com \
--cc=jmasson@baylibre.com \
--cc=jstephan@baylibre.com \
--cc=macpaul.lin@mediatek.com \
--cc=marek.vasut+usb@mailbox.org \
--cc=neil.armstrong@linaro.org \
--cc=pablo.sun@mediatek.com \
--cc=ryder.lee@mediatek.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=vsatoes@baylibre.com \
--cc=weijie.gao@mediatek.com \
/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.