From: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
To: Sascha Hauer <s.hauer@pengutronix.de>,
Ahmad Fatoum <a.fatoum@pengutronix.de>,
"open list:BAREBOX" <barebox@lists.infradead.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Miquèl Raynal" <miquel.raynal@bootlin.com>,
"Hervé Codina" <herve.codina@bootlin.com>,
"Thomas Bonnefille" <thomas.bonnefille@bootlin.com>
Subject: [PATCH v2 0/3] FIT: parse and use the cmdline property of FIT images
Date: Thu, 24 Sep 2026 19:59:30 +0200 [thread overview]
Message-ID: <20260924-add-cmdline-fitimage-v2-0-4a665e165002@bootlin.com> (raw)
As of FIT v0.9, it is possible to pass cmdline parameters to the
bootloader via a special property in the fitimage.
This series adds support for this feature in Barebox.
It also adds some tests to avoid any regression on this feature.
As `cmdline` is a property in a configuration that isn't a reference to
an image, it needs to be whitelisted by fit_config_build_hash_nodes() to
not be hashed.
Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
Changes in v2:
- Skip bootargs configuration if CONFIG_FLEXIBLE_BOOTARGS isn't enabled
- Use a dynamic bootargs
- Added a test for the fit image command line parameter
- Whitelisted the cmdline property in fit image hashing
- Link to v1: https://patch.msgid.link/20260827-add-cmdline-fitimage-v1-1-56701e1f0093@bootlin.com
To: Sascha Hauer <s.hauer@pengutronix.de>
To: "open list:BAREBOX" <barebox@lists.infradead.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Miquèl Raynal <miquel.raynal@bootlin.com>
---
Thomas Bonnefille (3):
bootm: add fitimage command line to bootargs
test: py: add test for fit cmdline parameter
FIT: add cmdline to whitelist of non-hashed properties
common/bootm-fit.c | 18 ++++++++++++++++++
common/image-fit.c | 1 +
test/py/test_fit.py | 1 +
test/testdata/multi_v7_defconfig-gzipped.its | 1 +
test/testdata/multi_v8_defconfig-gzipped.its | 1 +
5 files changed, 22 insertions(+)
---
base-commit: 75819f9e196e2da048e96c8589898fdc38ef8e7a
change-id: 20260827-add-cmdline-fitimage-42f6b2e930c1
Best regards,
--
Thomas Bonnefille <thomas.bonnefille@bootlin.com>
next reply other threads:[~2026-09-24 18:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 17:59 Thomas Bonnefille [this message]
2026-09-24 17:59 ` [PATCH v2 1/3] bootm: add fitimage command line to bootargs Thomas Bonnefille
2026-09-24 17:59 ` [PATCH v2 2/3] test: py: add test for fit cmdline parameter Thomas Bonnefille
2026-09-24 17:59 ` [PATCH v2 3/3] FIT: add cmdline to whitelist of non-hashed properties Thomas Bonnefille
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=20260924-add-cmdline-fitimage-v2-0-4a665e165002@bootlin.com \
--to=thomas.bonnefille@bootlin.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=herve.codina@bootlin.com \
--cc=miquel.raynal@bootlin.com \
--cc=s.hauer@pengutronix.de \
--cc=thomas.petazzoni@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