All of lore.kernel.org
 help / color / mirror / Atom feed
From: Traut Manuel LCPF-CH <Manuel.Traut@mt.com>
To: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	Venzin Daniel LCPF-CH <Daniel.Venzin@mt.com>,
	Gujan Armin LCPF-CH <Armin.Gujan@mt.com>,
	Manuel Traut <manut@mecka.net>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Burak Gerz <burak@gerz.io>
Subject: Re: EFI File renaming
Date: Tue, 12 Nov 2024 15:22:05 +0100	[thread overview]
Message-ID: <ZzNkjdHYGXQy_kUa@mt.com> (raw)
In-Reply-To: <CAC_iWj+2rBgsfNCjmW_Z8s9Zwu2NjzQFLUNAzehOgBszSYmCrQ@mail.gmail.com>

Hi Ilias,

On Tue, Nov 12, 2024 at 03:46:48PM +0200, Ilias Apalodimas wrote:
> Hello Manuel,
> 
> On Tue, 12 Nov 2024 at 15:21, Traut Manuel LCPF-CH <Manuel.Traut@mt.com> wrote:
> >
> > Hi,
> >
> > systemd-boot counting logic requires [0] to be implemented.
> >
> > Is anybody already working on this?
> 
> I am not aware of any patches

thanks for the quick response.

> > If not we plan to add the functionality in fs/fs.c and fs/fat - correct?
> 
> We don't have plans for it, but explaining any use cases you have might help

systemd-boot is able to do bootcounting by renaming the UKI image [0]
the code that triggers the not implemented code section is here [1].

With this it is possible to have watchdog based A/B switching on systems
without a writeable u-boot environment. And therefore it is a nice
method to implement measured boot.

Regards
Manuel

[0] https://uapi-group.org/specifications/specs/boot_loader_specification/#boot-counting
[1] https://github.com/systemd/systemd/blob/3304a029b847e87da51f7a8ad8c118111508e009/src/boot/boot.c#L1407

> Cheers
> /Ilias
> >
> > Cheers
> > Manuel
> >
> > [0] https://elixir.bootlin.com/u-boot/v2025.01-rc1/source/lib/efi_loader/efi_file.c#L971

  parent reply	other threads:[~2024-11-12 14:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 13:21 EFI File renaming Traut Manuel LCPF-CH
2024-11-12 13:46 ` Ilias Apalodimas
2024-11-12 14:10   ` Heinrich Schuchardt
2024-11-12 14:23     ` Traut Manuel LCPF-CH
2024-11-12 14:22   ` Traut Manuel LCPF-CH [this message]
2024-11-12 14:27     ` Ilias Apalodimas
2024-11-12 14:55       ` Traut Manuel LCPF-CH
2024-11-12 15:04         ` Ilias Apalodimas
2024-12-12  8:03           ` Enric Balletbo i Serra

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=ZzNkjdHYGXQy_kUa@mt.com \
    --to=manuel.traut@mt.com \
    --cc=Armin.Gujan@mt.com \
    --cc=Daniel.Venzin@mt.com \
    --cc=burak@gerz.io \
    --cc=ilias.apalodimas@linaro.org \
    --cc=manut@mecka.net \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.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.