[comp.unix.xenix.sco] COM3 & COM4 on XENIX 2.3.2

mort@dhump.lakesys.COM (Marty Wiedmeyer) (10/23/90)

I have a 386/20 clone (Citus 386 DT) running XENIX 2.3.2. GT

It came with 4 serial ports, 2 on a multi function card (HD
& floppy controller, 2 serial & 1 parallel ports) and 2 on a
serial/parallel card.

/dev/tty1[aA] and /dev/tty2[aA] work just fine, however I am having
one heck of a time getting tty3[aA] and tty4[aA] to be recognized.
They (3 & 4) are not seen at boot, so mknod doesn't work.

SCO sez that COM3 & 4 aren't supported as serial devices. If you want
more than 2 terminals/modems, you have to have a multi port card.

But, he said that he remembers that some have done it! And that he'd
"seen it on the net".

Has someone done this successfully???

Your help is greatly appreciated!

Marty Wiedmeyer
-- 
mort@dhump.lakesys.com 				uunet!marque!dhump!mort

mort@dhump.lakesys.COM (Marty Wiedmeyer) (10/24/90)

In article <15@dhump.lakesys.COM> I wrote:

 [stuff about XENIX 386 2.3.2 GT not seeing COM3 & 4]

>SCO sez that COM3 & 4 aren't supported as serial devices. If you want
>more than 2 terminals/modems, you have to have a multi port card.

>But, he said that he remembers that some have done it! And that he'd
>"seen it on the net".

I've received the article The gentleman from SCO referred to. Thanks!

I'm willing to mail it to anyone else who's trying to get COM3 & 4
serial ports running. The method is _unsupported_ by SCO. Use at your
own risk. (I may risk it :-).

Marty Wiedmeyer

-- 
mort@dhump.lakesys.com 				uunet!marque!dhump!mort

alan@mq.com (Alan H. Mintz) (10/25/90)

In article <15@dhump.lakesys.COM>, mort@dhump.lakesys.COM (Marty Wiedmeyer) writes:
...
> SCO sez that COM3 & 4 aren't supported as serial devices. If you want
> more than 2 terminals/modems, you have to have a multi port card.
> 
> But, he said that he remembers that some have done it! And that he'd
> "seen it on the net".

I saw it too. I saved it. Ordinarily I would mail this, but there have
been a number of recent requests. Here it is (edited):


From: karl@robot.uucp (Karl-P. Huestegge)
Newsgroups: comp.unix.xenix.sco
Message-ID: <1990Sep22.025355.8768@robot.uucp>
Organization: K.-P. Huestegge, Sytemanalyse und Beratung, Berlin
Posted: Sat Sep 22 03:53:55 1990

All you have to do is:

   1. Configure the Hardware:
        COM1: Adress x3f8   IRQ 4
        COM2: Adress x2f8   IRQ 3
        COM3: Adress x3e8   IRQ 5
        COM4: Adress x2e8   IRQ 9 (PC-AT) = IRQ 2 (PC-XT)

   2. Edit the Files
	/usr/sys/conf/master
>/usr/sys/io/sioconf.c

   3. Relink your kernel.
    
   4. Make the nodes /dev/tty3[aA] /dev/tty4[aA]

That's all.

Explained more detailed:

1. Configuring the Hardware:

   COM1 and COM2 Ports are standard - no problem.
   I took a 2 port standard serial card.

   For COM3 and COM4 I took another card of the same type
   and jumpered the 'alternate' adresses x3e8 for the 
   1st port (which will become COM3) and x2e8 for the 
   2nd port of this card (becomes COM4).

   Now the only problem is to get two free Interrupts.
   I took IRQ 5 for COM3 (no more second lineprinter)
   and IRQ 9 for COM4 (free in most systems).

	[ Stuff about how to modify hardware for IRQ2/9 deleted. I'll mail ]
	[ if necessary	Ed.]

2. Configuring the kernel:
 
*  Edit the file /usr/sys/io/sioconf.c and append two new entries
   for COM3 and COM4:
   board # 2(3), enum-type IBM_BOARD, no of ports 1, int-vec 5(25),
   minor dev 4(12), port adress 3e8(2e8), int poll adr offs 0, port inc 0,
   8250-int control 8(=MCRBIT3) 

   {2,IBM_BOARD,  1,5,4,  (sd)0x3e8,0,     0,MCRBIT3}, /*ibm COM3*/
   {3,IBM_BOARD,  1,25,12,(sd)0x2e8,0,     0,MCRBIT3}, /*ibm COM4*/
                    ^^
                    for all slave-PIC interrupts you have to add
                    octal '30':  1+30=31(octal) == 25(dec)
                                      -----------------
*  Edit /usr/sys/conf/master:                        vv
      line 'sio': replace int-vect '33 and 34' with '31 and 5'.
      line 'pa' : delete interrupt entry 5 and set vsiz=1.
      line 'ex' : delete interrupt entry 31 and set vsiz=0.

3. Recompile the kernel with 'make' and copy the new kernel to /.
[ Clearer: cd /usr/sys/conf ; ./link_xenix ; ./hdinstall        Ed.]

4. Make the tty nodes

      mknod /dev/tty3a c 5 4
      mknod /dev/tty3A c 5 132
      mknod /dev/tty4a c 5 12
      mknod /dev/tty4A c 5 140

5. Reboot and enjoy.

Karl-Peter Huestegge                       karl@robot.UUCP
Niedstr. 19                                (karl@netmbx.UUCP)
1 Berlin Friedenau                         ..tmpmbx!einoed!utopia!robot!karl
+49 (0)30-851 81 98



-- 
< Alan H. Mintz             | Voice +1 714 980 1034       >
< Micro-Quick Systems, Inc. | FAX   +1 714 944 3995       >
< 10384 Hillside Road       | uucp:     ...!uunet!mq!alan >
< Alta Loma, CA  91701 USA  | Internet: alan@MQ.COM       >