Re: RS/6000 installation


Subject: Re: RS/6000 installation
From: Olaf Hering (olh@suse.de)
Date: Mon Jan 31 2000 - 05:08:52 MST


On Sun, Jan 30, Dan Burcaw wrote:

> > I don't have a video card install in my F50 so I've never been able to get
> > YD installed (can't make the install fly in a terminal/null modem cable
> > scenario).
>
> I'm working on a kernel with serial console support for RS/6000s.

Try this patch, I don't know where it come from:
It requires that you must set CHRP as processor type.

diff -urN linux/drivers/char/serial.c linux-clean/drivers/char/serial.c
--- linux/drivers/char/serial.c Mon Jan 24 21:28:29 2000
+++ linux-clean/drivers/char/serial.c Mon Jan 24 21:27:51 2000
@@ -32,6 +32,10 @@
  * 4/98: Added changes to support the ARM architecture proposed by
  * Russell King
  *
+ * 9/99: Modifications for PPC architecture to prevent kernel panics
+ * on PowerMacs
+ * Ani Joshi <ajoshi@wam.umd.edu>
+ *
  * This module exports the following rs232 io functions:
  *
  * int rs_init(void);
@@ -3117,7 +3121,6 @@
                                 rs_table[i].irq = 0;
         }
 #endif
- show_serial_version();
 
         /* Initialize the tty_driver structure */
         
@@ -3171,9 +3174,21 @@
         callout_driver.proc_entry = 0;
 
         if (tty_register_driver(&serial_driver))
+#if defined(CONFIG_PMAC)
+ printk("Couldn't register rs232 serial driver\n");
+ return -1;
+#else
                 panic("Couldn't register serial driver\n");
+#endif
         if (tty_register_driver(&callout_driver))
+#if defined(CONFIG_PMAC)
+ printk("Couldn't register callout driver\n");
+ return -1;
+#else
                 panic("Couldn't register callout driver\n");
+#endif
+
+ show_serial_version();
         
         for (i = 0, state = rs_table; i < NR_PORTS; i++,state++) {
                 state->magic = SSTATE_MAGIC;
         /* Set up devices .. */

Gruss Olaf

-- 
 $ man 1 current_release

BUGS Users never read manuals...



This archive was generated by hypermail 2a24 : Tue Feb 01 2000 - 17:50:59 MST