Skip to contentSkip to conversation

bootm: do not hang on failure

PATCH New Heinrich Schuchardt 3 participants 4 messages Feb 17, 2021 – Apr 13, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bootm: do not hang on failure

On ARMv8 systems

    load mmc 0:1 $loadaddr  vmlinuz-5.10.0-3-arm64
    booti

leads to a hanging system requiring to physically reset the system:

FDT and ATAGS support not compiled in - hanging ### ERROR ### Please RESET the board ###

For systems where physical access is difficult hanging is a poor choice. It is preferable to reset the system when U-Boot reaches a state that is not recoverable.

---
 arch/arm/lib/bootm.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
arch/arm/lib/bootm.c +2 -5
index 11af9e2fb9..f60ee3a7e6 100644
@@ -16,7 +16,6 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
-#include <hang.h>
 #include <lmb.h>
 #include <log.h>
 #include <asm/global_data.h>
@@ -249,8 +248,7 @@ static void boot_prep_linux(bootm_headers_t *images)
 #ifdef CONFIG_OF_LIBFDT
 		debug("using: FDT\n");
 		if (image_setup_linux(images)) {
-			printf("FDT creation failed! hanging...");
-			hang();
+			panic("FDT creation failed!");
 		}
 #endif
 	} else if (BOOTM_ENABLE_TAGS) {
@@ -283,8 +281,7 @@ static void boot_prep_linux(bootm_headers_t *images)
 		setup_board_tags(&params);
 		setup_end_tag(gd->bd);
 	} else {
-		printf("FDT and ATAGS support not compiled in - hanging\n");
-		hang();
+		panic("FDT and ATAGS support not compiled in\n");
 	}
 
 	board_prep_linux(images);

--
2.30.0

#1 lore raw

PATCH 1/1 bootm: do not hang on failure

Quoted 11 lines · Heinrich Schuchardt

On ARMv8 systems

    load mmc 0:1 $loadaddr  vmlinuz-5.10.0-3-arm64
    booti

leads to a hanging system requiring to physically reset the system:

FDT and ATAGS support not compiled in - hanging ### ERROR ### Please RESET the board ###

Quoted 8 lines

For systems where physical access is difficult hanging is a poor choice. It is preferable to reset the system when U-Boot reaches a state that is not recoverable.

---
 arch/arm/lib/bootm.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
#2 lore raw

PATCH 1/1 bootm: do not hang on failure

Quoted 16 lines · Simon Glass
Quoted 15 lines · Heinrich Schuchardt

On ARMv8 systems

     load mmc 0:1 $loadaddr  vmlinuz-5.10.0-3-arm64
     booti

leads to a hanging system requiring to physically reset the system:

FDT and ATAGS support not compiled in - hanging ### ERROR ### Please RESET the board ###

For systems where physical access is difficult hanging is a poor choice. It is preferable to reset the system when U-Boot reaches a state that is not recoverable.

Quoted 7 lines
Quoted 4 lines
---
  arch/arm/lib/bootm.c | 7 ++-----
  1 file changed, 2 insertions(+), 5 deletions(-)

Hello Tom,

this reviewed patch is currently in status NEW assigned to you. Please, consider it for your next miscellaneous pull.

Best regards

Heinrich

#3 lore raw

PATCH 1/1 bootm: do not hang on failure

In reply to Heinrich Schuchardt
Quoted 10 lines · Heinrich Schuchardt

On ARMv8 systems

    load mmc 0:1 $loadaddr  vmlinuz-5.10.0-3-arm64
    booti

leads to a hanging system requiring to physically reset the system:

FDT and ATAGS support not compiled in - hanging ### ERROR ### Please RESET the board ###

Quoted 6 lines

For systems where physical access is difficult hanging is a poor choice. It is preferable to reset the system when U-Boot reaches a state that is not recoverable.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210413/720ab6e2/attachment.sig>