[PATCH v2 0/3] FIT: parse and use the cmdline property of FIT images

Thomas Bonnefille thomas.bonnefille at bootlin.com
Thu Sep 24 10:59:30 PDT 2026


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 at 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 at pengutronix.de>
To: "open list:BAREBOX" <barebox at lists.infradead.org>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Cc: Miquèl Raynal <miquel.raynal at 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 at bootlin.com>




More information about the barebox mailing list