All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Carlo Caione" <ccaione@baylibre.com>
To: "Peter Robinson" <pbrobinson@gmail.com>,
	"Marek Vasut" <marek.vasut@mailbox.org>
Cc: "Carlo Caione" <ccaione@baylibre.com>,
	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>,
	"David Lechner" <dlechner@baylibre.com>,
	"Julien Stephan" <jstephan@baylibre.com>,
	"Johan Jonker" <jbx6244@gmail.com>,
	"Macpaul Lin" <macpaul.lin@mediatek.com>,
	"Chris-QJ Chen" <chris-qj.chen@mediatek.com>,
	"Pablo Sun (孫毓翔)" <pablo.sun@mediatek.com>,
	"Simon Glass" <sjg@chromium.org>,
	"Quentin Schulz" <quentin.schulz@cherry.de>,
	"Vincent Jardin" <vjardin@free.fr>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Ramax Lo (羅明遠)" <Ramax.Lo@mediatek.com>
Subject: Re: [PATCH v2 0/3] Add RITY devicetree preparation support
Date: Mon, 31 Aug 2026 09:54:59 +0200	[thread overview]
Message-ID: <DL2YUFG39FD4.1MPXRK4G8ZGQR@baylibre.com> (raw)
In-Reply-To: <CALeDE9MPBAt4P3Dw9oE-eEF_UjSWUprFG_ipic8SwjwTAb0Ubw@mail.gmail.com>

On Sun Aug 30, 2026 at 10:54 PM CEST, Peter Robinson wrote:
> On Sun, 30 Aug 2026 at 21:47, Marek Vasut <marek.vasut@mailbox.org> wrote:

[...]
>> >>> RITY images select a base devicetree and an ordered list of overlays
>> >>
>> >> What's an RITY image?
>> >
>> > Fair enough. Since this is all MediaTek-specific code, I took the term
>> > for granted, sorry about that. Anyway, RITY is MediaTek’s Genio IoT
>> > Yocto SDK. By a "RITY image", I mean a boot image produced by that SDK.
>>
>> Can this instead use fitImage core code which can already apply DTOs on
>> top of base DT ?
>
> Or boot using UEFI and be generic, deal with the DT overlays with
> standard U-Boot mechanisms.

Hi Marek, hi Peter,

In principle, yes, we could use FIT core, or the EFI bootmeth together
with the extension-board framework, to implement parts of this. The
problem is that neither currently covers the complete interface we need
(and we are using).

The RITY boot contract supports (among other things):

- selecting the base DTB and an ordered overlay list at runtime through
  the environment

- loading those files from either block-backed filesystems or UBI/UBIFS

- accepting both raw DT files and individually signed FIT-wrapped DT
  files

- preparing the same resulting DT for both the normal EFI boot path and
  the legacy boot path

- allowing Genio tooling, in particular genio-flash --load-dtbo, to
  modify the overlay selection without rebuilding the image (important)

Now, the core problem is that using FIT core for the complete operation
would require changing the image producer and on-media format so that
the selected DTB and overlays are represented by a FIT configuration.
The EFI payload would still be discovered independently.

Also the EFI extension-board support is useful for automatically
detected hardware, but it does not currently consume the
user-configurable ordered overlay list, cover the UBI/UBIFS and legacy
boot cases, or handle the individually signed DT files.

One of our objectives is to allow existing RITY users to replace the
vendor U-Boot with upstream U-Boot without also changing their images,
tooling and environment interface. Changing the RITY interface and
image layout would prevent that kind of drop-in transition, and it is
something we would prefer to avoid (at least at this stage). This is why
we are proposing the functionality as a platform-specific
well-compartmentalized command.

If preserving that existing contract is not considered sufficient
justification for platform-specific code, please let me know. In that
case we will need to reconsider the approach and find another way
forward (still unclear which :)

Thanks,

--
Carlo Caione

  reply	other threads:[~2026-08-31  7:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 10:18 [PATCH v2 0/3] Add RITY devicetree preparation support Carlo Caione
2026-08-30 10:18 ` [PATCH v2 1/3] arm: mediatek: add RITY devicetree preparation Carlo Caione
2026-08-30 10:18 ` [PATCH v2 2/3] arm: mediatek: add RITY devicetree compatibility commands Carlo Caione
2026-08-30 10:18 ` [PATCH v2 3/3] arm: mediatek: add bootembedded compatibility command Carlo Caione
2026-08-30 10:56 ` [PATCH v2 0/3] Add RITY devicetree preparation support Peter Robinson
2026-08-30 13:32   ` Carlo Caione
2026-08-30 16:33     ` Marek Vasut
2026-08-30 20:54       ` Peter Robinson
2026-08-31  7:54         ` Carlo Caione [this message]
2026-08-31 14:30           ` Marek Vasut

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=DL2YUFG39FD4.1MPXRK4G8ZGQR@baylibre.com \
    --to=ccaione@baylibre.com \
    --cc=GSS_MTK_Uboot_upstream@mediatek.com \
    --cc=Ramax.Lo@mediatek.com \
    --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=jstephan@baylibre.com \
    --cc=macpaul.lin@mediatek.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=marek.vasut@mailbox.org \
    --cc=pablo.sun@mediatek.com \
    --cc=pbrobinson@gmail.com \
    --cc=quentin.schulz@cherry.de \
    --cc=ryder.lee@mediatek.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=vjardin@free.fr \
    --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.