mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
boot: Support decompressing non-kernel OS images
Sometimes the kernel is built as an EFI application rather than a binary. We still want to support compression for this case. For arm64 the entry point is set later in the bootm_load_os() function, since these images are typically relocated due to the 2MB-alignment requirement of arm64 images. But since the EFI image is not in the same format, we need to update the entry point earlier. Set the entry point always, for kernel_noload to resolve this problem. It should be harmless to do this always. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4f6dd25800
commit
99abd60d59
1 changed files with 1 additions and 0 deletions
|
@ -644,6 +644,7 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress)
|
|||
if (!load)
|
||||
return 1;
|
||||
os.load = load;
|
||||
images->ep = load;
|
||||
debug("Allocated %lx bytes at %lx for kernel (size %lx) decompression\n",
|
||||
req_size, load, image_len);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue