From: Tom Rini <trini@konsulko.com>
To: Dorde Stojicevic <dorde.stojicevic@rohde-schwarz.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Re: [PATCH] arm: Backward compatibility to U-Boot v2020.04
Date: Tue, 3 Feb 2026 11:00:02 -0600 [thread overview]
Message-ID: <20260203170002.GO2603314@bill-the-cat> (raw)
In-Reply-To: <25380f75dd2443c0a882bcce78503511@rohde-schwarz.com>
[-- Attachment #1: Type: text/plain, Size: 2550 bytes --]
On Tue, Feb 03, 2026 at 03:41:05PM +0000, Dorde Stojicevic wrote:
> From ae3f90922f5c31bd6198deb149edb9476ecfe4ef Mon Sep 17 00:00:00 2001
> From: Dorde Stojicevic dorde.stojicevic@rohde-schwarz.com<mailto:dorde.stojicevic@rohde-schwarz.com>
> Date: Tue, 3 Feb 2026 14:48:36 +0100
> Subject: [PATCH] arm: Backward compatibility to U-Boot v2020.04 Series-to: u-boot@lists.denx.de<mailto:u-boot@lists.denx.de> Series-version: 1
> Signed-off-by: Dorde Stojicevic dorde.stojicevic@rohde-schwarz.com<mailto:dorde.stojicevic@rohde-schwarz.com>
>
> Cover-letter:
> Backward compatibility with U-Boot v2020.04
> Needed in order to boot LynxSecure Hypervisor, otherwise
> U-Boot will fail at this position and reset the controller
> END
> Commit-notes:
> Backward compatibility with U-Boot v2020.04
> Needed in order to boot LynxSecure Hypervisor, otherwise
> U-Boot will fail at this position and reset the controller
> END
> ---
> boot/bootm.c | 27 ++++++++++++---------------
> 1 file changed, 12 insertions(+), 15 deletions(-)
This is an interesting find. And everything Quentin said applies. Also,
the patch as-sent doesn't apply cleanly due to spacing issues, possibly
from copy/paste to your email client?
Now, taking this patch and re-formatting things a bit, if do a "git diff
--ignore-all-space":
diff --git a/boot/bootm.c b/boot/bootm.c
index 4bdca22ea8cf..9743051160ed 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -684,11 +684,7 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress)
int ret;
ret = booti_setup(load, &relocated_addr, &image_size, false);
- if (ret) {
- printf("Failed to prep arm64 kernel (err=%d)\n", ret);
- return BOOTM_ERR_RESET;
- }
-
+ if (ret == 0) {
/* Handle BOOTM_STATE_LOADOS */
if (relocated_addr != load) {
printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n",
Is the interesting part. And you say this is on ARM, so we look at
booti_setup in arch/arm/lib/image.c. The failure cases of the function
is only "Bad Linux ARM64 Image magic!". So what are you trying to boot
here, and is it really acting like a Linux Kernel "Image" file, which
has a specific magic value? Or are we falling down to this case when we
should not be?
Since it sounds like you can reproduce this rather easily, it might be
good to use "git bisect" to narrow down which exact commit broke your
use case, and we can work from there.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-02-03 17:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-03 15:41 [PATCH] arm: Backward compatibility to U-Boot v2020.04 Dorde Stojicevic
2026-02-03 16:42 ` Quentin Schulz
2026-02-03 17:00 ` Tom Rini [this message]
2026-02-05 12:20 ` Dorde Stojicevic
2026-02-06 1:54 ` Tom Rini
2026-02-06 6:28 ` Dorde Stojicevic
2026-02-06 15:03 ` Tom Rini
2026-02-06 15:17 ` Dorde Stojicevic
2026-02-06 15:32 ` Tom Rini
2026-02-24 7:30 ` Dorde Stojicevic
2026-02-25 22:24 ` Tom Rini
2026-02-26 8:15 ` Dorde Stojicevic
2026-02-26 15:26 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260203170002.GO2603314@bill-the-cat \
--to=trini@konsulko.com \
--cc=dorde.stojicevic@rohde-schwarz.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.