mbox series

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

Message ID 20230202084905.6950-1-michal.orzel@amd.com (mailing list archive)
Headers show
Series xen/arm: Support compressed uImages | expand

Message

Michal Orzel Feb. 2, 2023, 8:49 a.m. UTC
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(-)