: SGI Octane (IP30) Patches, Part three, Early Console
Subsystems (2)
The third patch is one that should never go into mainline, as it's the early console patch for the Impact graphics boards, and it's pretty hackish. But extremely useful for debugging, and I dare say, one of the best early consoles you can get.
It's posted in case anyone takes a stab at things, and needs to debug something.
Best method is to only patch it in when needed, and then reverse it out when
the problem is solved.
Plus, posting patches to the internet helps in case a drive crashes and you lose everything!
Cheers!,
--Kumba
Signature · 5 lines
Unofficial Gentoo/MIPS Hermit & Kernel Monkey "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic
arch/mips/kernel/setup.c +2 -0
@@ -555,6 +555,7 @@ static void __init resource_init(void) } } +void impactsr_earlyinit (void );void __init setup_arch (char **cmdline_p) {cpu_probe ();
@@ -570,6 +571,7 @@ void __init setup_arch(char **cmdline_p)cpu_report ();check_bugs_early (); +impactsr_earlyinit ();#if defined(CONFIG_VT )#if defined(CONFIG_VGA_CONSOLE ) conswitchp = &vga_con;
drivers/video/Kconfig +9 -0
@@ -19,6 +19,15 @@ config VIDEO_OUTPUT_CONTROL This framework adds support for low-level control of the video output switch. +config FB_IMPACTSR_EARLY + tristate "SGI Octane ImpactSR Early Console Support" + depends on SGI_IP30 + ---help--- + SGI Octane ImpactSR (SI/SSI/MXI/SE/SSE/MXE) Early Console support. + + Exetremely basic grahics console useful for debugging early kernel + output on SGI Octane systems. Not useful for day-to-day use. + menuconfig FB tristate "Support for frame buffer devices" ---help---
drivers/video/Makefile +1 -0
@@ -118,6 +118,7 @@ obj-$(CONFIG_FB_XILINX) += xil obj-$(CONFIG_FB_OMAP) += omap/ obj-$(CONFIG_XEN_FBDEV_FRONTEND) += xen-fbfront.o obj-$(CONFIG_FB_IMPACTSR) += impactsr.o +obj-$(CONFIG_FB_IMPACTSR_EARLY) += impactsr_early.o obj-$(CONFIG_FB_ODYSSEY) += odyssey.o # Platform or fallback drivers go here
drivers/video/impactsr_early.c +185 -0
185 lines not on this page · raw message
kernel/printk.c +2 -0
@@ -529,8 +529,10 @@ static void call_console_drivers(unsigne_call_console_drivers (start_print, end, msg_level); } +extern void impactsr_earlychar (unsigned char c,unsigned f);static void emit_log_char (char c) { +impactsr_earlychar (c,0xa0a0a0 );LOG_BUF (log_end) = c; log_end++;if (log_end - log_start > log_buf_len)