* Add config option EARLY_SERIAL_CONSOLE to enable early
printk's to be directed to the serial console.
Based on linux-next
Signed-off-by: Mike Travis <travis@sgi.com>
---
---
arch/x86/Kconfig.debug | 9 +++++++++
arch/x86/kernel/early_printk.c | 4 ++++
2 files changed, 13 insertions(+)
--- linux-2.6-next.orig/arch/x86/Kconfig.debug
+++ linux-2.6-next/arch/x86/Kconfig.debug
@@ -29,6 +29,15 @@ config EARLY_PRINTK
with klogd/syslogd or the X server. You should normally N here,
unless you want to debug such a crash.
+config EARLY_SERIAL_CONSOLE
+ bool "Early Serial Console"
+ default m
+ help
+ Initializes the early console to be the serial port. The default
+ is to use the VGA console.
+
+ This is useful for server systems that do not have a VGA console.
+
config DEBUG_STACKOVERFLOW
bool "Check for stack overflows"
depends on DEBUG_KERNEL
--- linux-2.6-next.orig/arch/x86/kernel/early_printk.c
+++ linux-2.6-next/arch/x86/kernel/early_printk.c
@@ -193,7 +193,11 @@ static struct console simnow_console = {
};
/* Direct interface for emergencies */
+#ifdef CONFIG_EARLY_SERIAL_CONSOLE
+static struct console *early_console = &early_serial_console;
+#else
static struct console *early_console = &early_vga_console;
+#endif
static int early_console_initialized;
void early_printk(const char *fmt, ...)
--
--
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| KAMEZAWA Hiroyuki | Re: 2.6.24-rc3-mm1 |
| Ingo Molnar | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: Data corruption issue with splice() on 2.6.27.10 |
| Patrick McHardy | Re: [GIT]: Networking |
