From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: fpg@pengutronix.de, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH RFT 0/9] efi: payload: allow passing arguments to UKIs
Date: Wed, 26 Aug 2026 14:17:04 +0200 [thread overview]
Message-ID: <20260826121956.2936414-1-a.fatoum@pengutronix.de> (raw)
UKIs look like a kernel image, but barebox doesn't detect them as one,
which has barebox treat them as it would treat e.g. an EFI shell: An
executable it can start, but can't pass arguments to and that it assumes
will return to it when it exits.
This doesn't hold of course as a UKI should never return execution to
barebox.
Additionally, to select a UKI profile, barebox will need to add an @N
(where N identifies the profile by number) as the very first load
option.
This is also enabled by this series.
@Fabian, can you give this a test and see if it works for you?
Ahmad Fatoum (9):
common: bootargs: drop legacy bootargs fallback with FLEXIBLE_BOOTARGS
globalvar: skip empty variables in globalvar_get_match()
efi: payload: always shutdown barebox when booting
efi: payload: honour bootm dryrun in the EFI application handler
efi: payload: pass shell arguments as load options to executed images
efi: add global.efi.bootargs for bootm'd EFI applications
Documentation: efi: describe load options handling
test: py: efiloader: check global.efi.bootargs reaches the kernel
common: bootargs: don't leave linux_bootargs dangling after free
Documentation/boards/efi.rst | 53 ++++++++++++-
.../migration-guides/migration-master.rst | 16 ++++
Documentation/user/booting-linux.rst | 12 ++-
common/boot.c | 1 +
common/bootargs.c | 15 ++--
common/globalvar.c | 6 +-
efi/Makefile | 2 +-
efi/bootargs.c | 65 ++++++++++++++++
efi/loader/bootm.c | 27 ++++---
efi/payload/bootm.c | 23 +++++-
efi/payload/image.c | 76 ++++++++++++++-----
efi/payload/image.h | 3 +-
include/efi/bootargs.h | 9 +++
test/py/test_linux_efiloader.py | 6 ++
test/py/test_shell.py | 26 +++++++
15 files changed, 293 insertions(+), 47 deletions(-)
create mode 100644 efi/bootargs.c
create mode 100644 include/efi/bootargs.h
--
2.47.3
next reply other threads:[~2026-08-26 12:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 12:17 Ahmad Fatoum [this message]
2026-08-26 12:17 ` [PATCH RFT 1/9] common: bootargs: drop legacy bootargs fallback with FLEXIBLE_BOOTARGS Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 2/9] globalvar: skip empty variables in globalvar_get_match() Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 3/9] efi: payload: always shutdown barebox when booting Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 4/9] efi: payload: honour bootm dryrun in the EFI application handler Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 5/9] efi: payload: pass shell arguments as load options to executed images Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 6/9] efi: add global.efi.bootargs for bootm'd EFI applications Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 7/9] Documentation: efi: describe load options handling Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 8/9] test: py: efiloader: check global.efi.bootargs reaches the kernel Ahmad Fatoum
2026-08-26 12:17 ` [PATCH RFT 9/9] common: bootargs: don't leave linux_bootargs dangling after free Ahmad Fatoum
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=20260826121956.2936414-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=fpg@pengutronix.de \
/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