All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xen/arm: Support compressed uImages
@ 2023-01-31 15:13 Michal Orzel
  2023-01-31 15:13 ` [PATCH 1/2] xen/arm: Move kernel_uimage_probe definition after kernel_decompress Michal Orzel
  2023-01-31 15:13 ` [PATCH 2/2] xen/arm: Add support for booting gzip compressed uImages Michal Orzel
  0 siblings, 2 replies; 14+ messages in thread
From: Michal Orzel @ 2023-01-31 15:13 UTC (permalink / raw)
  To: xen-devel
  Cc: Michal Orzel, Stefano Stabellini, Julien Grall, Bertrand Marquis,
	Volodymyr Babchuk, ayankuma

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(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-02-02  8:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-31 15:13 [PATCH 0/2] xen/arm: Support compressed uImages Michal Orzel
2023-01-31 15:13 ` [PATCH 1/2] xen/arm: Move kernel_uimage_probe definition after kernel_decompress Michal Orzel
2023-01-31 19:07   ` Ayan Kumar Halder
2023-01-31 19:54   ` Julien Grall
2023-01-31 15:13 ` [PATCH 2/2] xen/arm: Add support for booting gzip compressed uImages Michal Orzel
2023-01-31 19:06   ` Ayan Kumar Halder
2023-01-31 20:20   ` Julien Grall
2023-02-01  9:48     ` Michal Orzel
2023-02-01 10:13       ` Julien Grall
2023-02-01 11:01         ` Michal Orzel
2023-02-01 11:20           ` Julien Grall
2023-02-01 12:56             ` Michal Orzel
2023-02-01 18:54               ` Julien Grall
2023-02-02  8:06                 ` Michal Orzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.