* [PATCH] bootm: do not hang on failure
@ 2021-02-17 11:55 Heinrich Schuchardt
2021-02-18 4:45 ` Simon Glass
2021-04-13 14:27 ` Tom Rini
0 siblings, 2 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2021-02-17 11:55 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
arch/arm/lib/bootm.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 11af9e2fb9..f60ee3a7e6 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -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(¶ms);
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] bootm: do not hang on failure
2021-02-17 11:55 [PATCH] bootm: do not hang on failure Heinrich Schuchardt
@ 2021-02-18 4:45 ` Simon Glass
2021-04-11 12:28 ` Heinrich Schuchardt
2021-04-13 14:27 ` Tom Rini
1 sibling, 1 reply; 4+ messages in thread
From: Simon Glass @ 2021-02-18 4:45 UTC (permalink / raw)
To: u-boot
On Wed, 17 Feb 2021 at 04:56, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> 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.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> arch/arm/lib/bootm.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] bootm: do not hang on failure
2021-02-18 4:45 ` Simon Glass
@ 2021-04-11 12:28 ` Heinrich Schuchardt
0 siblings, 0 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2021-04-11 12:28 UTC (permalink / raw)
To: u-boot
On 2/18/21 5:45 AM, Simon Glass wrote:
> On Wed, 17 Feb 2021 at 04:56, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>>
>> 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.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>> arch/arm/lib/bootm.c | 7 ++-----
>> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
Hello Tom,
this reviewed patch is currently in status NEW assigned to you. Please,
consider it for your next miscellaneous pull.
Best regards
Heinrich
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] bootm: do not hang on failure
2021-02-17 11:55 [PATCH] bootm: do not hang on failure Heinrich Schuchardt
2021-02-18 4:45 ` Simon Glass
@ 2021-04-13 14:27 ` Tom Rini
1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2021-04-13 14:27 UTC (permalink / raw)
To: u-boot
On Wed, Feb 17, 2021 at 12:55:54PM +0100, Heinrich Schuchardt wrote:
> 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.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-04-13 14:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 11:55 [PATCH] bootm: do not hang on failure Heinrich Schuchardt
2021-02-18 4:45 ` Simon Glass
2021-04-11 12:28 ` Heinrich Schuchardt
2021-04-13 14:27 ` 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.