mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
The patch introduces the CRITICAL feature of POST tests. If the test marked as POST_CRITICAL fails then the alternative, post_critical, boot-command is used. If this command is not defined then U-Boot enters into interactive mode.
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
This commit is contained in:
parent
8f15d4addd
commit
b428f6a8c6
14 changed files with 37 additions and 4 deletions
|
@ -40,7 +40,7 @@
|
|||
|
||||
#include <post.h>
|
||||
|
||||
#ifdef CONFIG_SILENT_CONSOLE
|
||||
#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST)
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
#endif
|
||||
|
||||
|
@ -369,6 +369,12 @@ void main_loop (void)
|
|||
init_cmd_timeout ();
|
||||
# endif /* CONFIG_BOOT_RETRY_TIME */
|
||||
|
||||
#ifdef CONFIG_POST
|
||||
if (gd->flags & GD_FLG_POSTFAIL) {
|
||||
s = getenv("failbootcmd");
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_POST */
|
||||
#ifdef CONFIG_BOOTCOUNT_LIMIT
|
||||
if (bootlimit && (bootcount > bootlimit)) {
|
||||
printf ("Warning: Bootlimit (%u) exceeded. Using altbootcmd.\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue