mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Thomas Bonnefille <thomas.bonnefille@bootlin.com>,
	Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 3/4] amend! bootm: add fitimage command line to bootargs
Date: Fri,  2 Oct 2026 13:26:33 +0200	[thread overview]
Message-ID: <20261002112648.2899729-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20261002112648.2899729-1-a.fatoum@pengutronix.de>

From: Ahmad Fatoum <a.fatoum@barebox.org>

bootm: add fitimage command line to bootargs

Since FIT image specification v0.9, it is now possible to pass command
line arguments for the next boot stage in FIT images.

Add parsing of the cmdline optional property when reading the fitimage.
Create a new bootm-scope global variable that will be appended to the
command line when CONFIG_FLEXIBLE_BOOTARGS is enabled.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Link: https://lore.barebox.org/20260924-add-cmdline-fitimage-v2-1-4a665e165002@bootlin.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
[ahmad: use LINUX_BOOTARGS_BOOTM_EARLY to fix bootargs order and cleanup]
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 common/bootm-fit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/bootm-fit.c b/common/bootm-fit.c
index c7142f490fa5..f0a4c83f5950 100644
--- a/common/bootm-fit.c
+++ b/common/bootm-fit.c
@@ -108,7 +108,7 @@ static void bootm_fit_config_cmdline(struct device_node *config)
 	if (of_property_read_string(config, "cmdline", &cmdline))
 		return;
 
-	globalvar_add_simple("linux.bootargs.dyn.bootentries.fit", cmdline);
+	globalvar_add_simple(LINUX_BOOTARGS_BOOTM_EARLY "fit", cmdline);
 
 	pr_info("Using command line from FIT configuration: %s\n", cmdline);
 }
-- 
2.47.3




  parent reply	other threads:[~2026-10-02 11:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02 11:26 [PATCH 1/4] bootm: define LINUX_BOOTARGS_BOOTM_EARLY/LATE in <bootm.h> Ahmad Fatoum
2026-10-02 11:26 ` [PATCH 2/4] amend! FIT: add cmdline to whitelist of non-hashed properties Ahmad Fatoum
2026-10-02 11:26 ` Ahmad Fatoum [this message]
2026-10-02 11:26 ` [PATCH 4/4] test: py: add test for fit cmdline parameter order Ahmad Fatoum

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=20261002112648.2899729-3-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=a.fatoum@barebox.org \
    --cc=barebox@lists.infradead.org \
    --cc=thomas.bonnefille@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox