mbox series

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

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

Message

Orzel, Michal Jan. 31, 2023, 3:13 p.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 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     | 197 +++++++++++++++++++++++---------------
 2 files changed, 118 insertions(+), 82 deletions(-)