mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/3] FIT: parse and use the cmdline property of FIT images
@ 2026-09-24 17:59 Thomas Bonnefille
  2026-09-24 17:59 ` [PATCH v2 1/3] bootm: add fitimage command line to bootargs Thomas Bonnefille
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Bonnefille @ 2026-09-24 17:59 UTC (permalink / raw)
  To: Sascha Hauer, Ahmad Fatoum, open list:BAREBOX
  Cc: Thomas Petazzoni, Miquèl Raynal, Hervé Codina,
	Thomas Bonnefille

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>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-24 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 17:59 [PATCH v2 0/3] FIT: parse and use the cmdline property of FIT images Thomas Bonnefille
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox