Skip to content

xen/arm: Support compressed uImages

Michal Orzel xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/arm: Move kernel_uimage_probe definition after kernel_decompressxen/arch/arm/kernel.c+73 -730 replies
2/2xen/arm: Add support for booting gzip compressed uImagesdocs/misc/arm/booting.txt xen/arch/arm/kernel.c+72 -125 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAyan Kumar HalderJulien Grall
1/2R-b A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] xen/arm: Support compressed uImages

This series adds support for booting gzip compressed images with u-boot header. Currently Xen does not support such images because we are trying to decompress the kernel before probing uImage header.

The problem can be solved using 2 different approaches:
1) Split uImage probing into 2 stages. The first stage is called before decompression, does the usual probing and sets up correctly module start address and size by taking the uImage header size into account. The second stage is called after decompression to update the zimage.{kernel_addr,len}.

2) Call the decompression function (modified to take gzip offset) from within the uImage probing to avoid the split and to make the function self-containing. This way the only case for falling through to try to probe other image types is when there is no u-boot header detected.

In this series the second approach is taken that results in a better looking code.

Michal Orzel (2):
xen/arm: Move kernel_uimage_probe definition after kernel_decompress xen/arm: Add support for booting gzip compressed uImages

 docs/misc/arm/booting.txt |   3 -
 xen/arch/arm/kernel.c     | 225 ++++++++++++++++++++++++--------------
 2 files changed, 144 insertions(+), 84 deletions(-)
Signature · 1 line
2.25.1