[PATCH 0/3] bootm: append automatic parameters after all other linux.bootargs

Ahmad Fatoum a.fatoum at pengutronix.de
Tue May 5 02:50:57 PDT 2026


bootm can be configured to determine suitable values for a number of
kernel command line options that will automatically be fixed up.

Currently, these options are concatenated into the kernel command line
interleaved with all other options in the lexicographical order of the
linux.bootargs. parameter name.

For the root= option, this means that any root= in a blspec file for
example will override barebox' own root=, because:

  global.linux.bootargs.bootm.root < global.linux.bootargs.dyn.bootentries

The other way makes more sense however, especially as there is always a
device parameter or Kconfig option to control whether the fixup should
happen at all.

With the new order, it's now possible to set global.bootm.appendroot=1
and have barebox append a new root= and have it take precedence over a
bootloader spec provided root=. To reflect that this has occurred, the
kernel command-line will continue to list two root='s, which greatly
simplifies debugging if issues happen (e.g. because there was a
rootfstype that is no longer accurate).

Ahmad Fatoum (3):
  common: fix help text reference to internal imagicvars
  Documentation: user: booting-linux: split off mtdparts fixup section
  bootm: append automatic parameters after all other linux.bootargs

 .../migration-guides/migration-master.rst     |  9 +++
 Documentation/user/booting-linux.rst          | 69 +++++++++++++------
 common/Kconfig                                |  7 +-
 common/bootm.c                                | 26 +++++--
 4 files changed, 79 insertions(+), 32 deletions(-)

-- 
2.47.3




More information about the barebox mailing list