All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: Backward compatibility to U-Boot v2020.04
@ 2026-02-03 15:41 Dorde Stojicevic
  2026-02-03 16:42 ` Quentin Schulz
  2026-02-03 17:00 ` Tom Rini
  0 siblings, 2 replies; 16+ messages in thread
From: Dorde Stojicevic @ 2026-02-03 15:41 UTC (permalink / raw)
  To: u-boot@lists.denx.de

[-- Attachment #1: Type: text/plain, Size: 3327 bytes --]

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

diff --git a/boot/bootm.c b/boot/bootm.c
index 4bdca22ea8c..c90c36a6988 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -684,22 +684,19 @@ 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",
+                                      load, relocated_addr,
+                                      relocated_addr + image_size);
+                               memmove((void *)relocated_addr, load_buf, image_size);
+                       }
+
+                       images->ep = relocated_addr;
+                       images->os.start = relocated_addr;
+                       images->os.end = relocated_addr + image_size;
                }
-
-               /* Handle BOOTM_STATE_LOADOS */
-               if (relocated_addr != load) {
-                       printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n",
-                              load, relocated_addr,
-                              relocated_addr + image_size);
-                       memmove((void *)relocated_addr, load_buf, image_size);
-               }
-
-               images->ep = relocated_addr;
-               images->os.start = relocated_addr;
-               images->os.end = relocated_addr + image_size;
        }

        if (CONFIG_IS_ENABLED(LMB)) {
--
2.53.0


Dorde Stojicevic

Networks and Cybersecurity

Rohde & Schwarz SIT GmbH
Hemminger Strasse 41 | 70499 Stuttgart-Weilimdorf | Germany
Phone: +4971169945195

Internet: www.rohde-schwarz.com



Geschäftsführer / Managing Director: Ralf Koenzen
Aufsichtsratsvorsitzender / Chair of the Supervisory Board: Mario Paoli
Sitz / Registered Office: Stuttgart
Handelsregister / Commercial Register: AG Stuttgart HRB 759 934
Umsatzsteuer-Identifikationsnummer (USt-IdNr.) / VAT Identification No.: DE 121 963 283
Elektro-Altgeräte Register (EAR) / WEEE Register No.: DE 877 727 67


[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 9150 bytes --]

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

end of thread, other threads:[~2026-08-06 20:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
2026-07-31  6:46                     ` Dorde Stojicevic
2026-07-31 10:10                       ` Patrick Deiber
     [not found]     ` <CAFLszTh7F9K+NqyOxSzs7G_+MgNURFrLyGuK3WJhdNndvwQZpA@mail.gmail.com>
2026-08-06 20:58       ` 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.