From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 00/13] bootm: prepare loadable abstraction rework
Date: Mon, 9 Feb 2026 19:10:39 +0100 [thread overview]
Message-ID: <20260209181138.2023065-1-a.fatoum@pengutronix.de> (raw)
v1 -> v2:
- Dropped "efi: payload: bootm: fix memory corruption on initrd load error":
Sent out separately
- Dropped "bootm: cache os_file for appendroot purposes"
Preparatory patch that has been superseded for the second part of
this rework
- Move memory_bank_lookup_region() closer to the bootm_load()
functions, and make sure same argument are used for both.
- Switch over efi_loader_bootm as well by using bootm_load_os
- In fit_open, propagate error for short reads correctly
- add kernel-doc for open_fdt, resize_region,
file_read_and_detect_boot_image_type
- export file_read_and_detect_boot_image_type for future use
- fix intermittent regression for initrd loading
- resize_region: return error on resizing to 0 size (Sascha)
- resize_region: check that there is no conflict with child resources
(Sascha)
Despite previous work to move out uImage and FIT-specific parts out of
the bootm code, common/boot.c still has a number of places where code
checks if it's a FIT image, a uImage or a plain file.
This series lays the groundwork for a second series that will:
- Introduce the concept of a loadable for deferred boot component loading
- Switch all code to generate loadables once at the start and then
extracting them later on, irrespective of their origin
- Implement a more robust and powerful override mechanim, where
individual loadables can be switched against each other
Before we can do that, we however need to refactor the code a bit and
add some helpers that are going to be used.
Ahmad Fatoum (13):
FIT: implement fit_count_images
FIT: add image index argument to fit_open_image
resource: implement gap-aware lookup_region
bootm: give bootm_load_ functions an end address
bootm: store separate image_type and kernel_type
bootm: fit: move length calculation into fit_open
libfile: factor out zero-page resistant read_file as
__read_full_anywhere
resource: implement resize_region
bootm: rename image_data::os/initrd with _uimage suffix
uimage: record original file name in uimage_handle
bootm: factor out file detection into helper
efi: payload: bootm: add dry run support
efi: initrd: make efi_initrd_register initrd pointer param const
arch/arm/lib32/bootm.c | 26 +++--
arch/arm/lib64/armlinux.c | 14 +--
arch/arm/mach-at91/bootm-barebox.c | 7 +-
arch/arm/mach-imx/imx-v3-image.c | 7 +-
arch/arm/mach-layerscape/pblimage.c | 7 +-
arch/arm/mach-rockchip/bootm.c | 13 ++-
arch/arm/mach-zynq/bootm-zynqimg.c | 7 +-
arch/kvx/lib/bootm.c | 17 ++-
arch/powerpc/lib/ppclinux.c | 15 ++-
common/booti.c | 33 +++---
common/bootm-fit.c | 30 +++--
common/bootm-uimage.c | 38 +++---
common/bootm.c | 173 ++++++++++++++++++----------
common/image-fit.c | 108 ++++++++++-------
common/memory.c | 25 ++++
common/resource.c | 95 +++++++++++++++
common/uimage.c | 2 +
drivers/of/overlay.c | 8 +-
efi/initrd.c | 4 +-
efi/loader/bootm.c | 41 ++++---
efi/payload/bootm.c | 15 +--
include/bootm.h | 25 ++--
include/efi/initrd.h | 2 +-
include/image-fit.h | 33 +++++-
include/image.h | 1 +
include/libfile.h | 3 +
include/linux/ioport.h | 13 ++-
include/memory.h | 2 +
lib/libfile.c | 79 +++++++++++++
29 files changed, 596 insertions(+), 247 deletions(-)
--
2.47.3
next reply other threads:[~2026-02-09 18:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 18:10 Ahmad Fatoum [this message]
2026-02-09 18:10 ` [PATCH v2 01/13] FIT: implement fit_count_images Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 02/13] FIT: add image index argument to fit_open_image Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 03/13] resource: implement gap-aware lookup_region Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 04/13] bootm: give bootm_load_ functions an end address Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 05/13] bootm: store separate image_type and kernel_type Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 06/13] bootm: fit: move length calculation into fit_open Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 07/13] libfile: factor out zero-page resistant read_file as __read_full_anywhere Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 08/13] resource: implement resize_region Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 09/13] bootm: rename image_data::os/initrd with _uimage suffix Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 10/13] uimage: record original file name in uimage_handle Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 11/13] bootm: factor out file detection into helper Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 12/13] efi: payload: bootm: add dry run support Ahmad Fatoum
2026-02-09 18:10 ` [PATCH v2 13/13] efi: initrd: make efi_initrd_register initrd pointer param const Ahmad Fatoum
2026-02-13 14:07 ` [PATCH v2 00/13] bootm: prepare loadable abstraction rework Sascha Hauer
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=20260209181138.2023065-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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