Skip to content

bootm: Support substitions in bootargs and add tests

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11env: Allow returning errors from hdelete_r()cmd/nvedit.c include/search.h lib/hashtable.c +1 more+21 -100 replies
2/11bootm: Add tests for fixup_silent_linux()arch/Kconfig common/bootm.c include/bootm.h +4 more+73 -70 replies
3/11bootm: Update fixup_silent_linux() to return an errorcommon/bootm.c include/bootm.h test/bootm.c+29 -140 replies
4/11bootm: Rename fixup_silent_linux()common/bootm.c include/bootm.h test/bootm.c+9 -90 replies
5/11bootm: Add a bool parameter to bootm_process_cmdline_env()common/bootm.c include/bootm.h test/bootm.c+17 -160 replies
6/11bootm: Use size rather than length for CONSOLE_ARGcommon/bootm.c+8 -70 replies
7/11bootm: Split out bootargs environment reading / writingcommon/bootm.c+73 -221 reply
7/11bootm: Split out bootargs environment reading / writing+0 -01 reply
7/11bootm: Split out bootargs environment reading / writing+0 -00 replies
8/11bootm: Update bootm_process_cmdline_env() to use flagscommon/bootm.c include/bootm.h test/bootm.c+19 -100 replies
9/11bootm: Allow updating the bootargs in a buffercommon/bootm.c include/bootm.h test/bootm.c+132 -161 reply
9/11bootm: Allow updating the bootargs in a buffer+0 -01 reply
9/11bootm: Allow updating the bootargs in a buffer+0 -00 replies
10/11x86: zimage: Add silent-console processingarch/x86/lib/zimage.c+14 -00 replies
11/11bootm: Support string substitution in bootargsREADME arch/Kconfig common/Kconfig.boot +3 more+221 -123 replies
11/11bootm: Support string substitution in bootargs+0 -01 reply
11/11bootm: Support string substitution in bootargs+0 -01 reply
11/11bootm: Support string substitution in bootargs+0 -01 reply
11/11bootm: Support string substitution in bootargs+0 -00 replies
11/11bootm: Support string substitution in bootargs+0 -01 reply
11/11bootm: Support string substitution in bootargs+0 -01 reply
11/11bootm: Support string substitution in bootargs+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] bootm: Support substitions in bootargs and add tests

This series adds tests to the fixup_silent-linux() function and extends the 'zimage' command to use it.

It also adds a new string-substition feature to allow bootargs to be a template, rather than having to build it up piece by piece with information obtained in a build script.

It also updates zimage to use the same command-line processing.

With these additions it is possible to boot Chrome OS from a U-Boot script on most Chromebooks.

Simon Glass (11):
env: Allow returning errors from hdelete_r()
bootm: Add tests for fixup_silent_linux()
bootm: Update fixup_silent_linux() to return an error
bootm: Rename fixup_silent_linux()
bootm: Add a bool parameter to bootm_process_cmdline_env()
bootm: Use size rather than length for CONSOLE_ARG
bootm: Split out bootargs environment reading / writing
bootm: Update bootm_process_cmdline_env() to use flags
bootm: Allow updating the bootargs in a buffer
x86: zimage: Add silent-console processing
bootm: Support string substitution in bootargs

 README                |  16 +++
 arch/Kconfig          |   2 +
 arch/x86/lib/zimage.c |  14 +++
 cmd/nvedit.c          |   6 +-
 common/Kconfig.boot   |  20 ++++
 common/bootm.c        | 206 +++++++++++++++++++++++++++++------
 include/bootm.h       |  40 +++++++
 include/search.h      |  11 +-
 include/test/suites.h |   1 +
 lib/hashtable.c       |  12 +--
 test/Makefile         |   1 +
 test/bootm.c          | 243 ++++++++++++++++++++++++++++++++++++++++++
 test/cmd_ut.c         |   1 +
 test/env/hashtable.c  |   2 +-
 14 files changed, 534 insertions(+), 41 deletions(-)
 create mode 100644 test/bootm.c
Signature · 1 line
2.29.0.rc1.297.gfa9743e501-goog