*BSD News Article 48808


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!fauern!news.tu-chemnitz.de!irz401!theatre.pandora.sax.de!mw
From: mw@theatre.pandora.sax.de (Martin Welk)
Subject: Re: Help: more than 2 com ports
Organization: Private Site, Member of Individual Network e. V.
Message-ID: <DDC464.99L@theatre.pandora.sax.de>
References: <3tnab5$h54@tpone.telepac.pt> <3tnion$fsf@toads.pgh.pa.us> <1995Jul17.180614.10901@RedBrick.COM> <40nhhq$4pd@news.cs.tu-berlin.de>
Date: Tue, 15 Aug 1995 04:22:52 GMT
Lines: 53

In article <40nhhq$4pd@news.cs.tu-berlin.de>,
Jan Sladky <diameter@cs.tu-berlin.de> wrote:

>YES PLEASE, i want to set up a print/plot server with more than 4 input ports.
>what modifications do i have to make to run more than 4 ports in a pc ?
>Do i have to make some changes to the kernel or some drivers ?

Our sax.de domain server has five serial ports, my own machine just
four, but it works on both :-)

Assuming that you're going to use serial ports (ah, that makes me
remember that Jordan once said something like ``I shouldn't assume
things'' to a friend a while ago :-) ) that should work without
problems, if all serial ports have an own hardware interrupt line
(IRQ) and an own port address. If you expect many data input from
those ports at high data rates it would also help if you use some
16550A type FIFO UARTs with buffered I/O as otherwise you may run
into some silo overflows.

Then take a look at /sys/i386/conf/GENERIC and configure your own
kernel:

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr

Change it so it fits to your configuration. You should insert the
port addresses here to fix the SIOs to a specific address and I'm
sure you have to reconfigure the IRQs.

Build the new kernel.

You still have to check if the necessary devices exist unter /dev.
These are tty*d*, here ttyd1, ttyd2, ttyd3, ttyd3 and their lock and
init state devices (man sio.)

Look at /etc/rc.serial to find a place to configure them.
Configuration means speed, word size, parity, hardware handshaking
and so on - this depends on your printers and the wires you're going
to use.

But don't ask me how to configure the lpr printer system.
I haven't done that yet :-)

Bye,
    Martin
-- 
 /| /|        | /| /       \      ,,You know, there's a lot of opportunities,
/ |/ | artin  |/ |/ elk     \                 if you're knowing to take them,
                             \      you know, there's a lot of opportunities,
mw@pandora.sax.de             \            if there aren't you can make them,
Meissen, Germany, Europe       \         make or break them!'' (Tennant/Lowe)