All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] bootm: Handle compressed arm64 images with bootm
@ 2023-11-05 20:03 Simon Glass
  2023-11-05 20:03 ` [PATCH 1/4] bootm: Allow ignoring the load address with kernel_noload Simon Glass
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Simon Glass @ 2023-11-05 20:03 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Marek Vasut, Simon Glass, Eddie James,
	Heinrich Schuchardt, Ilias Apalodimas, Joe Hershberger,
	Marc Kleine-Budde, Marek Vasut, Mattijs Korpershoek,
	Ralph Siemsen, Safae Ouajih, Sean Anderson, Sean Anderson

This little series corrects a problem I noticed with arm64 images,
where the kernel is not recognised:

   ## Loading kernel from FIT Image at 10000000 ...
      Using 'conf-930' configuration
      Verifying Hash Integrity ... OK
      Trying 'kernel' kernel subimage
        Description:  Linux-6.6.0-rc7-next-20231024-00003-g259c196f194c
        Type:         Kernel Image (no loading done)
        Compression:  gzip compressed
        Data Start:   0x10000138
        Data Size:    13667956 Bytes = 13 MiB
      Verifying Hash Integrity ... OK
   Bad Linux ARM64 Image magic!

The problem is that the arm64 magic is checked before the image is
decompressed.

Another issue is that the load address is read from the 'load' property
even with a kernel_noload image. This means that the kernel is loaded
to address 0, which may not be valid on the board. We can use the
kernel_addr_r environment variable instead.

A patch is included to show the kernel load-address, so it is easy to
see what is going on.


Simon Glass (4):
  bootm: Allow ignoring the load address with kernel_noload
  bootm: Move arm64-image processing later
  image: Show the load address when decompressing
  image: Correct load_bug typo

 boot/bootm.c    | 61 ++++++++++++++++++++++++++++++-------------------
 boot/image.c    | 13 +++++++----
 include/image.h |  2 +-
 3 files changed, 48 insertions(+), 28 deletions(-)

-- 
2.42.0.869.gea05f2083d-goog


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

end of thread, other threads:[~2023-11-07 19:04 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-05 20:03 [PATCH 0/4] bootm: Handle compressed arm64 images with bootm Simon Glass
2023-11-05 20:03 ` [PATCH 1/4] bootm: Allow ignoring the load address with kernel_noload Simon Glass
2023-11-05 21:19   ` Tom Rini
2023-11-06 17:25     ` Simon Glass
2023-11-06 18:30       ` Tom Rini
2023-11-06 19:58         ` Simon Glass
2023-11-06 20:15           ` Tom Rini
2023-11-07  1:09             ` Simon Glass
2023-11-05 20:03 ` [PATCH 2/4] bootm: Move arm64-image processing later Simon Glass
2023-11-05 21:20   ` Tom Rini
2023-11-06 17:25     ` Simon Glass
2023-11-05 20:03 ` [PATCH 3/4] image: Show the load address when decompressing Simon Glass
2023-11-05 20:03 ` [PATCH 4/4] image: Correct load_bug typo Simon Glass
2023-11-05 20:06 ` [PATCH 0/4] bootm: Handle compressed arm64 images with bootm Simon Glass
2023-11-07  9:56 ` Rasmus Villemoes
2023-11-07 12:23   ` Simon Glass
2023-11-07 13:04     ` Tom Rini
2023-11-07 13:31       ` Simon Glass
2023-11-07 13:49         ` Tom Rini
2023-11-07 14:30           ` Simon Glass
2023-11-07 19:04             ` Tom Rini

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.