summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordzu <dzu>2003-10-24 13:14:45 +0000
committerdzu <dzu>2003-10-24 13:14:45 +0000
commit8cb8143ef7e490c13512cbdf688faf39f5aa4179 (patch)
tree295195ef829bca08061ee62e62f7ac2a6d74cdeb
parent4654af27b894277c9e3dac5359f6b3e74d1405ac (diff)
downloadblackbird-obmc-uboot-8cb8143ef7e490c13512cbdf688faf39f5aa4179.tar.gz
blackbird-obmc-uboot-8cb8143ef7e490c13512cbdf688faf39f5aa4179.zip
* Correct header printing for multi-image files in do_bootm()
* Make CONFIG_SILENT_CONSOLE work with CONFIG_AUTOBOOT_KEYED
-rw-r--r--CHANGELOG4
-rw-r--r--common/cmd_bootm.c2
-rw-r--r--common/main.c27
3 files changed, 32 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index abd42a0b0f..0bb085b1cf 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,10 @@
Changes for U-Boot 1.0.0:
======================================================================
+* Correct header printing for multi-image files in do_bootm()
+
+* Make CONFIG_SILENT_CONSOLE work with CONFIG_AUTOBOOT_KEYED
+
* Fix PCI problems on PPChameleon board
* Patch by Steven Scholz, 18 Oct 2003:
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index abdac2385a..07cda5658a 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -205,7 +205,7 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
SHOW_BOOT_PROGRESS (3);
/* for multi-file images we need the data part, too */
- print_image_hdr (hdr);
+ print_image_hdr (addr);
data = addr + sizeof(image_header_t);
len = ntohl(hdr->ih_size);
diff --git a/common/main.c b/common/main.c
index 73f8ff9f0b..a0c9fe889f 100644
--- a/common/main.c
+++ b/common/main.c
@@ -102,6 +102,18 @@ static __inline__ int abortboot(int bootdelay)
u_int presskey_max = 0;
u_int i;
+#ifdef CONFIG_SILENT_CONSOLE
+ {
+ DECLARE_GLOBAL_DATA_PTR;
+
+ if (gd->flags & GD_FLG_SILENT) {
+ /* Restore serial console */
+ console_assign (stdout, "serial");
+ console_assign (stderr, "serial");
+ }
+ }
+#endif
+
# ifdef CONFIG_AUTOBOOT_PROMPT
printf (CONFIG_AUTOBOOT_PROMPT, bootdelay);
# endif
@@ -180,6 +192,21 @@ static __inline__ int abortboot(int bootdelay)
printf("key timeout\n");
# endif
+#ifdef CONFIG_SILENT_CONSOLE
+ {
+ DECLARE_GLOBAL_DATA_PTR;
+
+ if (abort) {
+ /* permanently enable normal console output */
+ gd->flags &= ~(GD_FLG_SILENT);
+ } else if (gd->flags & GD_FLG_SILENT) {
+ /* Restore silent console */
+ console_assign (stdout, "nulldev");
+ console_assign (stderr, "nulldev");
+ }
+ }
+#endif
+
return abort;
}
OpenPOWER on IntegriCloud