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

Michal Orzel posted 2 patches 1 year, 2 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230202084905.6950-1-michal.orzel@amd.com
docs/misc/arm/booting.txt |   3 -
xen/arch/arm/kernel.c     | 225 ++++++++++++++++++++++++--------------
2 files changed, 144 insertions(+), 84 deletions(-)
[PATCH v2 0/2] xen/arm: Support compressed uImages
Posted by Michal Orzel 1 year, 2 months ago
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(-)

-- 
2.25.1