old-www/HOWTO/GTEK-BBS-550.html

77 lines
4.7 KiB
HTML

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>GTEK BBS-550 with Linux mini-HOWTO</TITLE>
<META NAME="Template" CONTENT="C:\MSOFFICE\OFFICE\html.dot">
</HEAD>
<BODY LINK="#0000ff" VLINK="#800080">
<B><FONT FACE="Arial" SIZE=4><P>GTEK BBS-550 with Linux mini-HOWTO</P>
</B></FONT><FONT FACE="Courier New" SIZE=2><P>by Wajihuddin Ahmed &lt;wahmed@sdnp.org.pk&gt;</P>
<P>v1.1, 20 August 1997</P>
</FONT><P><HR></P>
<I><P>GTEK's BBS-550 is a 8-port serial card with 16C550 UARTS. Only one IRQ can be used for all 8 ports. It does not require any driver on Linux therefore the kernel does not have to be recompiled but the kernel should have serial support. </P>
</I><P><HR></P>
<P>1. What <TT>I/O </TT>addresses to use? <BR>
2. The <FONT FACE="Courier New" SIZE=2>rc.serial</FONT> file and <TT>IRQ</TT> selection <BR>
3. Setup of <FONT FACE="Courier New" SIZE=2>uugetty</FONT> <BR>
4. Final checking... </P>
<P><HR></P>
<FONT SIZE=5><P>1</FONT>. For detailed information of configuring serial ports on Linux refer to the Serial-HOWTO. Thats where I started from. </P>
<P>I have setup the BBS-550 to use <TT>I/O</TT> address from <FONT FACE="Courier New" SIZE=2>0x100</FONT> to <FONT FACE="Courier New" SIZE=2>0x140</FONT> on my Linux box (Slackware 2.3, kernel 1.3.93). The main reason being that the above <B>address space was vacant</B> in my computer. Page 4 of the manual gives the jumper settings. Also this range of I/O addresses is seldom used by any other hardware. Just to make sure that this space is available on your machine, use the IOMAP.EXE utility which is on the GTEK floppy disk.</P>
<P><HR></P>
<FONT SIZE=5><P>2</FONT>. After you have installed the card on your computer <B>you need to configure the serial ports</B>. This is quite easy since the <TT>rc.serial</TT> file already has entries for BOCA 8 port card which can be used for the GTEK. Here is my <TT>rc.serial</TT> file. <B>Don't forget</B> to execute it from the <TT>rc.S</TT> file by uncommenting the line that executes it. </P>
<P>--</P>
<CODE><P>#!/bin/sh<BR>
# /etc/rc.serial<BR>
# Initializes the serial ports on your system <BR>
# Version 2.01 <BR>
cd /dev <BR>
SETSERIAL="/bin/setserial -a" <BR>
PORTS=`echo cua? cua??`<BR>
echo -n "Configuring serial ports...." &nbsp; <BR>
# Do wild interrupt detection <BR>
# <BR>
#${SETSERIAL} -W ${PORTS} &nbsp; <BR>
# Do AUTOMATIC_IRQ probing <BR>
# <BR>
#AUTO_IRQ=auto_irq &nbsp; <BR>
${SETSERIAL} /dev/cua16 uart 16550A port 0x100 irq 5 <BR>
${SETSERIAL} /dev/cua17 uart 16550A port 0x108 irq 5 <BR>
${SETSERIAL} /dev/cua18 uart 16550A port 0x110 irq 5 <BR>
${SETSERIAL} /dev/cua19 uart 16550A port 0x118 irq 5 <BR>
${SETSERIAL} /dev/cua20 uart 16550A port 0x120 irq 5 <BR>
#${SETSERIAL} /dev/cua21 uart 16550A port 0x128 irq 5 <BR>
#${SETSERIAL} /dev/cua22 uart 16550A port 0x130 irq 5 <BR>
#${SETSERIAL} /dev/cua23 uart 16550A port 0x138 irq 5 <BR>
echo "done." <BR>
${SETSERIAL} -bg ${PORTS} </P>
</CODE><P>--</P>
<B><P>Notice that i have used IRQ 5</B>. Refer to page 6 of the GTEK manual on howto set the IRQ.</P>
<P><HR></P>
<FONT SIZE=5><P>3</FONT>. I am using <TT>uugetty</TT> for dial-in's. Here is an extract from my <TT>/etc/inittab</TT> file (sys V).</P>
<P>&nbsp;</P>
<CODE><P>&#9;s1:45:respawn:/sbin/uugetty ttyS16 38400 vt100<BR>
&#9;s2:45:respawn:/sbin/uugetty ttyS17 38400 vt100<BR>
&#9;s3:45:respawn:/sbin/uugetty ttyS18 38400 vt100<BR>
&#9;s4:45:respawn:/sbin/uugetty ttyS19 38400 vt100<BR>
&#9;s5:45:respawn:/sbin/uugetty ttyS20 57600 vt100<BR>
&#9;#s6:45:respawn:/sbin/uugetty ttyS21 38400 vt100<BR>
&#9;#s7:45:respawn:/sbin/uugetty ttyS22 38400 vt100<BR>
&#9;#s8:45:respawn:/sbin/uugetty ttyS23 38400 vt100</P>
</CODE><P>&nbsp;</P>
<P>Make sure that you have the corresponding entries in the <TT>/etc/gettydefs</TT> file. Also don't forget to make new uugetty configuration files in the <TT>/etc/default</TT> directory. </P>
<P><HR></P>
<FONT SIZE=5><P>4</FONT>. At boot up the kernel <STRONG>will not</STRONG> report the new tty's.&nbsp;</P>
<P>The serial ports are configured when the <FONT FACE="Courier New" SIZE=2>rc.serial</FONT> script is run. You can see that on the screen during boot up.</P>
<TT><P>ps ax</TT> <STRONG>should show the uugetty connected</STRONG>. Here is part of my <FONT FACE="Courier New" SIZE=2>ps</FONT> output.</P>
<CODE><P>18208 ? S 0:00 /sbin/uugetty ttyS18 38400 vt100<BR>
18247 ? S 0:00 /sbin/uugetty ttyS20 57600 vt100 <BR>
18254 ? S 0:00 /sbin/uugetty ttyS19 38400 vt100 <BR>
18258 ? S 0:00 /sbin/uugetty ttyS17 38400 vt100 <BR>
18260 ? S 0:00 /sbin/uugetty ttyS16 38400 vt100 </P>
</CODE><P>Finally test the board by dialing out (using <TT>cuaXX</TT>) and then dialing in (<TT>ttySXX</TT>).</P>
<P>Good Luck!</P></BODY>
</HTML>