Skip to content

bootm: refactor to prepare multiple initrd support

Ahmad Fatoum barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10bootm: set image_data::initrd_res at a single placecommon/bootm.c+10 -120 replies
2/10bootm: fit: split support into dedicated filecommon/Makefile common/bootm-fit.c common/bootm.c +1 more+271 -1410 replies
3/10bootm: uimage: split support into dedicated filecommon/Makefile common/bootm-uimage.c common/bootm.c +1 more+243 -1340 replies
4/10filetype: introduce filetype_fitcommon/bootm.c common/filetype.c common/image-fit.c +1 more+21 -50 replies
5/10bootm: refactor for readability and extensibilitycommon/bootm.c+32 -390 replies
6/10memory: move release_sdram_region into headercommon/memory.c include/memory.h+5 -60 replies
7/10resource: make NULL in release_[sdram_]region a no-oparch/arm/cpu/bootm-fip.c arch/arm/lib32/bootz.c common/bootm.c +2 more+14 -210 replies
8/10common: elf: use release_region unconditionallycommon/elf.c+1 -60 replies
9/10memory: always print errors on request_sdram_region failurearch/arm/cpu/armv7r-mpu.c arch/arm/cpu/bootm-fip.c arch/arm/cpu/mmu_32.c +3 more+54 -250 replies
10/10memory: drop now duplicate request_sdram_region error messagesarch/arm/lib32/bootm.c arch/arm/lib32/bootz.c common/bootm-fit.c +3 more+10 -460 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/10] bootm: refactor to prepare multiple initrd support

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
Signature · 1 line
2.47.3