Skip to content
Snippets Groups Projects
Commit be2e5a09 authored by Joe Hershberger's avatar Joe Hershberger Committed by Tom Rini
Browse files

Allow u-boot to be silent without forcing Linux to be


That's a bit presumptuous of you, u-boot!

Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 55011539
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ static int do_imls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); ...@@ -88,7 +88,7 @@ static int do_imls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
#include <linux/err.h> #include <linux/err.h>
#include <nand.h> #include <nand.h>
#ifdef CONFIG_SILENT_CONSOLE #if defined(CONFIG_SILENT_CONSOLE) && !defined(CONFIG_SILENT_U_BOOT_ONLY)
static void fixup_silent_linux(void); static void fixup_silent_linux(void);
#endif #endif
...@@ -694,7 +694,7 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -694,7 +694,7 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
bootstage_mark(BOOTSTAGE_ID_CHECK_BOOT_OS); bootstage_mark(BOOTSTAGE_ID_CHECK_BOOT_OS);
#ifdef CONFIG_SILENT_CONSOLE #if defined(CONFIG_SILENT_CONSOLE) && !defined(CONFIG_SILENT_U_BOOT_ONLY)
if (images.os.os == IH_OS_LINUX) if (images.os.os == IH_OS_LINUX)
fixup_silent_linux(); fixup_silent_linux();
#endif #endif
...@@ -1413,7 +1413,7 @@ U_BOOT_CMD( ...@@ -1413,7 +1413,7 @@ U_BOOT_CMD(
/*******************************************************************/ /*******************************************************************/
/* helper routines */ /* helper routines */
/*******************************************************************/ /*******************************************************************/
#ifdef CONFIG_SILENT_CONSOLE #if defined(CONFIG_SILENT_CONSOLE) && !defined(CONFIG_SILENT_U_BOOT_ONLY)
static void fixup_silent_linux(void) static void fixup_silent_linux(void)
{ {
char buf[256], *start, *end; char buf[256], *start, *end;
...@@ -1806,7 +1806,7 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -1806,7 +1806,7 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
usb_stop(); usb_stop();
#endif #endif
#ifdef CONFIG_SILENT_CONSOLE #if defined(CONFIG_SILENT_CONSOLE) && !defined(CONFIG_SILENT_U_BOOT_ONLY)
fixup_silent_linux(); fixup_silent_linux();
#endif #endif
arch_preboot_os(); arch_preboot_os();
......
...@@ -23,4 +23,6 @@ The following actions are taken if "silent" is set at boot time: ...@@ -23,4 +23,6 @@ The following actions are taken if "silent" is set at boot time:
- When booting a linux kernel, the "bootargs" are fixed up so that - When booting a linux kernel, the "bootargs" are fixed up so that
the argument "console=" will be in the command line, no matter how the argument "console=" will be in the command line, no matter how
it was set in "bootargs" before. it was set in "bootargs" before. If you don't want the linux command
line to be affected, define CONFIG_SILENT_U_BOOT_ONLY in your board
config file as well, and this part of the feature will be disabled.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment