* [parisc-linux] iodc console patch
@ 1999-10-27 21:46 Thomas Bogendoerfer
1999-11-08 20:09 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Bogendoerfer @ 1999-10-27 21:46 UTC (permalink / raw)
To: parisc-linux
To get a sash prompt on my 715/33 I need the patch below. Even if this
patch isn't release quality something like that is needed to get the
iodc console going.
Because I still have some problems with the first few printed lines, I
haven't checked it into cvs. Hope it helps others as well. Ohh and changing
"console=ttyS0" to "console=tty" in boot_code/ipl_c.c is required, too.
Thomas.
Index: arch/parisc/kernel/pdc_cons.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/pdc_cons.c,v
retrieving revision 1.24
diff -u -r1.24 pdc_cons.c
--- arch/parisc/kernel/pdc_cons.c 1999/10/27 18:38:21 1.24
+++ arch/parisc/kernel/pdc_cons.c 1999/10/27 21:44:25
@@ -146,6 +146,8 @@
memcpy(&PAGE0->mem_kbd, &PAGE0->mem_cons, sizeof(PAGE0->mem_cons));
/* register the pdc console */
+#ifndef CONFIG_IODC_CONSOLE
register_console(&pdc_cons);
+#endif
#endif
}
Index: arch/parisc/kernel/setup.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/setup.c,v
retrieving revision 1.70
diff -u -r1.70 setup.c
--- arch/parisc/kernel/setup.c 1999/10/25 16:39:29 1.70
+++ arch/parisc/kernel/setup.c 1999/10/27 21:44:25
@@ -655,6 +655,12 @@
extern asmlinkage void __init start_kernel(void);
extern char _bss_start; /* the very first BSS-byte, defined in head.S */
+#ifdef CONFIG_VT
+#ifdef CONFIG_IODC_CONSOLE
+extern void iodc_con_init(void);
+#endif
+#endif
+
__initfunc(void start_parisc(unsigned long new_memory_start,
char *bootloader_command_line))
{
@@ -672,6 +678,12 @@
}
}
pdc_console_init();
+#ifdef CONFIG_VT
+#ifdef CONFIG_IODC_CONSOLE
+ conswitchp = &prom_con;
+ iodc_con_init();
+#endif
+#endif
printk("The Kernel has started...\n");
@@ -726,21 +738,10 @@
start_kernel(); /* now we start our kernel ! */
}
-#ifdef CONFIG_VT
-#ifdef CONFIG_IODC_CONSOLE
-extern void iodc_con_init(void);
-#endif
-#endif
__initfunc(void setup_arch(char **cmdline_p,
unsigned long * memory_start_p, unsigned long * memory_end_p))
{
-#ifdef CONFIG_VT
-#ifdef CONFIG_IODC_CONSOLE
- iodc_con_init();
-#endif
-#endif
-
*cmdline_p = &saved_command_line[0]; // set the ptr to the command-line
initrd_below_start_ok = 1;
--
This device has completely bogus header. Compaq scores again :-|
It's a host bridge, but it should be called ghost bridge instead ;^)
[Martin `MJ' Mares on linux-kernel]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [parisc-linux] iodc console patch
1999-10-27 21:46 [parisc-linux] iodc console patch Thomas Bogendoerfer
@ 1999-11-08 20:09 ` Matthew Wilcox
1999-11-08 21:23 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 1999-11-08 20:09 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: parisc-linux
On Wed, Oct 27, 1999 at 11:46:59PM +0200, Thomas Bogendoerfer wrote:
> To get a sash prompt on my 715/33 I need the patch below. Even if this
> patch isn't release quality something like that is needed to get the
> iodc console going.
>
> Because I still have some problems with the first few printed lines, I
> haven't checked it into cvs. Hope it helps others as well. Ohh and changing
> "console=ttyS0" to "console=tty" in boot_code/ipl_c.c is required, too.
I've just checked in something similar. You should also disable
CONFIG_VT_CONSOLE, or you'll see all lines printed twice. I think it
will now work out of the box for the 715/33 if you have the right .config.
--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [parisc-linux] iodc console patch
1999-11-08 20:09 ` Matthew Wilcox
@ 1999-11-08 21:23 ` Matthew Wilcox
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 1999-11-08 21:23 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Thomas Bogendoerfer, parisc-linux
On Mon, Nov 08, 1999 at 09:09:24PM +0100, Matthew Wilcox wrote:
> I've just checked in something similar. You should also disable
> CONFIG_VT_CONSOLE, or you'll see all lines printed twice. I think it
> will now work out of the box for the 715/33 if you have the right .config.
*ahem*. Of course, if you do, it will be unable to open an initial
console and panic. Oops. Don't do this for the moment :-)
--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-11-08 21:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-27 21:46 [parisc-linux] iodc console patch Thomas Bogendoerfer
1999-11-08 20:09 ` Matthew Wilcox
1999-11-08 21:23 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox