mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
bootm: don't call booti_setup for EFI images
On the arm64 architecture booti_setup() is called for EFI FIT images.
This function call fails because EFI images typically do not have a
kernel signature.
Check that the operating system property "os" of the image is "linux"
before invoking booti_setup().
Fixes: 487b5fa6de
("bootm: Handle kernel_noload on arm64")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a61e6ad769
commit
4533b3d0a3
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ static int bootm_find_os(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
|
||||
if (images.os.type == IH_TYPE_KERNEL_NOLOAD) {
|
||||
if (IS_ENABLED(CONFIG_CMD_BOOTI) &&
|
||||
images.os.arch == IH_ARCH_ARM64) {
|
||||
images.os.arch == IH_ARCH_ARM64 &&
|
||||
images.os.os == IH_OS_LINUX) {
|
||||
ulong image_addr;
|
||||
ulong image_size;
|
||||
|
||||
|
|
Loading…
Reference in a new issue