public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rasmus Villemoes <ravi@prevas.dk>
To: Olivier Benjamin <olivier.benjamin@bootlin.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Re: [RFC] Kernel command line from FIT image
Date: Thu, 29 Jan 2026 13:34:47 +0100	[thread overview]
Message-ID: <87a4xwr40o.fsf@prevas.dk> (raw)
In-Reply-To: <553E6DA2-7E8D-447D-BBD4-B7F0DA8B359C@getmailspring.com> (Olivier Benjamin's message of "Thu, 29 Jan 2026 10:40:31 +0100")

On Thu, Jan 29 2026, Olivier Benjamin <olivier.benjamin@bootlin.com> wrote:

> Hello,
>
> While reading section 5.7.3 of the FIT image spec [1], I noticed the
> "cmdline" property:
>
> "cmdline
> Command line passed to the next boot stage, e.g. the operating system
> kernel. The value is an UTF-8 encoded string." 
>
> However, looking at the mkimage sources, more specifically
> include/image.h [2], it looks like this property is unsupported.
>
> If properly implemented so that the cmdline can be signed, this would
> imho be a viable option for passing the dm-verity bootargs in verified boot.
> It could be an alternative to the option of sourcing a script that has
> to be referenced via the configuration, as discussed in [3].
>
> I have not found a discussion regarding supporting this property in
> U-Boot, has it been discussed and rejected, or has it not made it to
> contributor's priority list?

Not really an answer, but IME it is much easier to embed the kernel
command line with the kernel image itself via the CONFIG_BOOT_CONFIG
mechanism. That way the cmdline is automatically verified by whatever
mechanism verifies the kernel image.

Yes, if the purpose is to embed a root hash for use with dm-verity, it's
very annoying to rebuild the entire kernel whenever the rootfs changes,
i.e. all the time. But we don't to that, we boot using an initramfs that
has that root hash embedded, and rebuilding the initramfs (and then the
FIT image) is much less of a hassle. 

Rasmus

      reply	other threads:[~2026-01-29 12:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29  9:40 [RFC] Kernel command line from FIT image Olivier Benjamin
2026-01-29 12:34 ` Rasmus Villemoes [this message]

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=87a4xwr40o.fsf@prevas.dk \
    --to=ravi@prevas.dk \
    --cc=olivier.benjamin@bootlin.com \
    --cc=u-boot@lists.denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox