sgi prom console
Hi,
This patch gets the sgi prom console outputting again, and eliminates the "cannot open initial console" error. Unfortunately, all output from userland goes to the serial port, not the the prom console. Looking at the code, this isn't at all surprising; the prom console pretends to be 4,64, ttyS0. It's quite beyond me how the prom console could ever have worked for userland.
Index: drivers/char/mem.c
===================================================================
RCS file: /cvs/linux/drivers/char/mem.c,v
retrieving revision 1.35
char/mem.c +6 -0
@@ -49,6 +49,9 @@#ifdef CONFIG_PROM_CONSOLE extern void prom_con_init (void );#endif +#ifdef CONFIG_SGI_PROM_CONSOLE +extern void sgi_prom_console_init (void ); +#endif #ifdef CONFIG_MDA_CONSOLE extern void mda_console_init (void );#endif
@@ -632,6 +635,9 @@#endif #if defined (CONFIG_PROM_CONSOLE )prom_con_init (); +#endif +#if defined (CONFIG_SGI_PROM_CONSOLE ) +sgi_prom_console_init ();#endif #if defined (CONFIG_MDA_CONSOLE )mda_console_init ();
Signature · 4 lines
Keith M Wesolowski <[email protected]> http://foobazco.org/~wesolows/ (( Project Foobazco Coordinator and Network Administrator )) aiieeeeeeee! "The list of people so amazingly stupid they can't even tie their shoes?" "Yeah, you know, /etc/passwd."
Quoted 6 lines · Keith M Wesolowski
This patch gets the sgi prom console outputting again, and eliminates the "cannot open initial console" error. Unfortunately, all output from userland goes to the serial port, not the the prom console. Looking at the code, this isn't at all surprising; the prom console pretends to be 4,64, ttyS0. It's quite beyond me how the prom console could ever have worked for userland.
Ok, patch applied.
Ralf
Quoted 7 lines · Keith M Wesolowski
This patch gets the sgi prom console outputting again, and eliminates the "cannot open initial console" error. Unfortunately, all output from userland goes to the serial port, not the the prom console. Looking at the code, this isn't at all surprising; the prom console pretends to be 4,64, ttyS0. It's quite beyond me how the prom console could ever have worked for userland.
It never has :) - There is a major difference between the console for the Kernel (Really called console in the kernel) and a TTY. The TTY implementation for the Prom Console has never been done from what i see in the code - Although this would be quiet helpful to do a full implementation for a TTY as we than had the possibility to boot the Indigo2 etc with Framebuffer/Keyboard.
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-5201-669912 "If you're not having fun right now, you're wasting your time."