mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Subject: [PATCH 00/10] bootm: refactor to prepare multiple initrd support
Date: Mon,  5 Jan 2026 09:03:32 +0100	[thread overview]
Message-ID: <20260105080653.3240497-1-a.fatoum@barebox.org> (raw)

Linux can transparently handle concatenated individually compressed CPIOs
just fine, but so far, the concantenation needed to happen before bootm
is called.

This series prepares for supporting initrd concatenation by refactoring
the bootm code to make it easier to extend in a follow-up series.

No functional change intended.

Ahmad Fatoum (10):
  bootm: set image_data::initrd_res at a single place
  bootm: fit: split support into dedicated file
  bootm: uimage: split support into dedicated file
  filetype: introduce filetype_fit
  bootm: refactor for readability and extensibility
  memory: move release_sdram_region into header
  resource: make NULL in release_[sdram_]region a no-op
  common: elf: use release_region unconditionally
  memory: always print errors on request_sdram_region failure
  memory: drop now duplicate request_sdram_region error messages

 arch/arm/cpu/armv7r-mpu.c |   6 +-
 arch/arm/cpu/bootm-fip.c  |  11 +-
 arch/arm/cpu/mmu_32.c     |   4 +-
 arch/arm/lib32/bootm.c    |  13 +-
 arch/arm/lib32/bootz.c    |   7 +-
 common/Makefile           |   2 +
 common/bootm-fit.c        | 176 ++++++++++++++++++
 common/bootm-uimage.c     | 176 ++++++++++++++++++
 common/bootm.c            | 376 ++++++--------------------------------
 common/elf.c              |  11 +-
 common/filetype.c         |   1 +
 common/image-fit.c        |  11 +-
 common/memory.c           |  25 +--
 common/resource.c         |   2 +
 common/uimage.c           |  12 +-
 fs/pstore/ram_core.c      |   7 +-
 include/bootm-fit.h       |  70 +++++++
 include/bootm-uimage.h    |  57 ++++++
 include/filetype.h        |   7 +
 include/memory.h          |  45 ++++-
 lib/libfile.c             |   5 +-
 21 files changed, 625 insertions(+), 399 deletions(-)
 create mode 100644 common/bootm-fit.c
 create mode 100644 common/bootm-uimage.c
 create mode 100644 include/bootm-fit.h
 create mode 100644 include/bootm-uimage.h

-- 
2.47.3




             reply	other threads:[~2026-01-05  8:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05  8:03 Ahmad Fatoum [this message]
2026-01-05  8:03 ` [PATCH 01/10] bootm: set image_data::initrd_res at a single place Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 02/10] bootm: fit: split support into dedicated file Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 03/10] bootm: uimage: " Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 04/10] filetype: introduce filetype_fit Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 05/10] bootm: refactor for readability and extensibility Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 06/10] memory: move release_sdram_region into header Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 07/10] resource: make NULL in release_[sdram_]region a no-op Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 08/10] common: elf: use release_region unconditionally Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 09/10] memory: always print errors on request_sdram_region failure Ahmad Fatoum
2026-01-05  8:03 ` [PATCH 10/10] memory: drop now duplicate request_sdram_region error messages Ahmad Fatoum
2026-01-09  8:20 ` [PATCH 00/10] bootm: refactor to prepare multiple initrd support 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=20260105080653.3240497-1-a.fatoum@barebox.org \
    --to=a.fatoum@barebox.org \
    --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