Date:2011-09-06 16:41:25 (8 years 2 months ago)
Author:Xiangfu Liu
Commit:ae29c39802838fba7c457640c9d762d1b154d53a
Message:uboot-xburst: enable-silent-console.patch

Files: package/uboot-xburst/patches/310-enable-silent-console.patch (1 diff)

Change Details

package/uboot-xburst/patches/310-enable-silent-console.patch
1Index: u-boot-2010.06/include/configs/nanonote.h
2===================================================================
3--- u-boot-2010.06.orig/include/configs/nanonote.h 2011-08-29 12:59:47.520570290 +0200
4@@ -99,6 +99,8 @@
5 #define CONFIG_SYS_MEMTEST_START 0x80100000
6 #define CONFIG_SYS_MEMTEST_END 0x80800000
7
8+#define CONFIG_SILENT_CONSOLE 1 /* Enable silent console */
9+
10 /*
11  * Environment
12  */
13Index: u-boot-2010.06/common/console.c
14===================================================================
15--- u-boot-2010.06.orig/common/console.c 2011-08-29 13:18:53.987163122 +0200
16@@ -628,6 +628,14 @@
17
18     gd->flags |= GD_FLG_DEVINIT; /* device initialization completed */
19
20+#ifdef CONFIG_SILENT_CONSOLE
21+ /* Check one more time the contents of the silent environment
22+ * variable, because if the environment is loaded from NAND it was
23+ * not available when console_init_f() was called */
24+ if (getenv("silent") != NULL)
25+ gd->flags |= GD_FLG_SILENT;
26+#endif
27+
28     stdio_print_current_devices();
29
30 #ifdef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
31@@ -703,6 +711,14 @@
32
33     gd->flags |= GD_FLG_DEVINIT; /* device initialization completed */
34
35+#ifdef CONFIG_SILENT_CONSOLE
36+ /* Check one more time the contents of the silent environment
37+ * variable, because if the environment is loaded from NAND it was
38+ * not available when console_init_f() was called */
39+ if (getenv("silent") != NULL)
40+ gd->flags |= GD_FLG_SILENT;
41+#endif
42+
43     stdio_print_current_devices();
44
45     /* Setting environment variables */

Archive Download the corresponding diff file



interactive