home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 1: Linux / CD1.iso / doc / HOWTO / mini / GTEK-BBS-550 < prev    next >
Text File  |  1998-10-14  |  4KB  |  137 lines

  1.  
  2.    _
  3.    
  4.    GTEK BBS-550 with Linux mini-HOWTO _
  5.    
  6.    by Wajihuddin Ahmed <wahmed@sdnp.org.pk>
  7.    
  8.    v1.1, 20 August 1997
  9.    
  10.    
  11.      _________________________________________________________________
  12.    
  13.    _
  14.    
  15.    GTEK's BBS-550 is a 8-port serial card with 16C550 UARTS. Only one IRQ
  16.    can be used for all 8 ports. It does not require any driver on Linux
  17.    therefore the kernel does not have to be recompiled but the kernel
  18.    should have serial support. _
  19.    
  20.    
  21.      _________________________________________________________________
  22.    
  23.    
  24.    
  25.    1. What I/O addresses to use?
  26.    2. The rc.serial file and IRQ selection
  27.    3. Setup of uugetty
  28.    4. Final checking...
  29.    
  30.    
  31.      _________________________________________________________________
  32.    
  33.    
  34.    
  35.    1. For detailed information of configuring serial ports on Linux refer
  36.    to the Serial-HOWTO. Thats where I started from.
  37.    
  38.    I have setup the BBS-550 to use I/O address from 0x100 to 0x140 on my
  39.    Linux box (Slackware 2.3, kernel 1.3.93). The main reason being that
  40.    the above _address space was vacant_ in my computer. Page 4 of the
  41.    manual gives the jumper settings. Also this range of I/O addresses is
  42.    seldom used by any other hardware. Just to make sure that this space
  43.    is available on your machine, use the IOMAP.EXE utility which is on
  44.    the GTEK floppy disk.
  45.    
  46.    
  47.      _________________________________________________________________
  48.    
  49.    
  50.    
  51.    2. After you have installed the card on your computer _you need to
  52.    configure the serial ports_. This is quite easy since the rc.serial
  53.    file already has entries for BOCA 8 port card which can be used for
  54.    the GTEK. Here is my rc.serial file. _Don't forget_ to execute it from
  55.    the rc.S file by uncommenting the line that executes it.
  56.    
  57.    --
  58.    
  59.    #!/bin/sh
  60.    # /etc/rc.serial
  61.    # Initializes the serial ports on your system
  62.    # Version 2.01
  63.    cd /dev
  64.    SETSERIAL="/bin/setserial -a"
  65.    PORTS=`echo cua? cua??`
  66.    echo -n "Configuring serial ports...."
  67.    # Do wild interrupt detection
  68.    #
  69.    #${SETSERIAL} -W ${PORTS}
  70.    # Do AUTOMATIC_IRQ probing
  71.    #
  72.    #AUTO_IRQ=auto_irq
  73.    ${SETSERIAL} /dev/cua16 uart 16550A port 0x100 irq 5
  74.    ${SETSERIAL} /dev/cua17 uart 16550A port 0x108 irq 5
  75.    ${SETSERIAL} /dev/cua18 uart 16550A port 0x110 irq 5
  76.    ${SETSERIAL} /dev/cua19 uart 16550A port 0x118 irq 5
  77.    ${SETSERIAL} /dev/cua20 uart 16550A port 0x120 irq 5
  78.    #${SETSERIAL} /dev/cua21 uart 16550A port 0x128 irq 5
  79.    #${SETSERIAL} /dev/cua22 uart 16550A port 0x130 irq 5
  80.    #${SETSERIAL} /dev/cua23 uart 16550A port 0x138 irq 5
  81.    echo "done."
  82.    ${SETSERIAL} -bg ${PORTS}
  83.    
  84.    -- _
  85.    
  86.    Notice that i have used IRQ 5_. Refer to page 6 of the GTEK manual on
  87.    howto set the IRQ.
  88.    
  89.    
  90.      _________________________________________________________________
  91.    
  92.    
  93.    
  94.    3. I am using uugetty for dial-in's. Here is an extract from my
  95.    /etc/inittab file (sys V).
  96.    
  97.    
  98.    
  99.    s1:45:respawn:/sbin/uugetty ttyS16 38400 vt100
  100.    s2:45:respawn:/sbin/uugetty ttyS17 38400 vt100
  101.    s3:45:respawn:/sbin/uugetty ttyS18 38400 vt100
  102.    s4:45:respawn:/sbin/uugetty ttyS19 38400 vt100
  103.    s5:45:respawn:/sbin/uugetty ttyS20 57600 vt100
  104.    #s6:45:respawn:/sbin/uugetty ttyS21 38400 vt100
  105.    #s7:45:respawn:/sbin/uugetty ttyS22 38400 vt100
  106.    #s8:45:respawn:/sbin/uugetty ttyS23 38400 vt100
  107.    
  108.    
  109.    
  110.    Make sure that you have the corresponding entries in the
  111.    /etc/gettydefs file. Also don't forget to make new uugetty
  112.    configuration files in the /etc/default directory.
  113.    
  114.    
  115.      _________________________________________________________________
  116.    
  117.    
  118.    
  119.    4. At boot up the kernel _will not_ report the new tty's.
  120.    
  121.    The serial ports are configured when the rc.serial script is run. You
  122.    can see that on the screen during boot up.
  123.    
  124.    ps ax _should show the uugetty connected_. Here is part of my ps
  125.    output.
  126.    
  127.    18208 ? S 0:00 /sbin/uugetty ttyS18 38400 vt100
  128.    18247 ? S 0:00 /sbin/uugetty ttyS20 57600 vt100
  129.    18254 ? S 0:00 /sbin/uugetty ttyS19 38400 vt100
  130.    18258 ? S 0:00 /sbin/uugetty ttyS17 38400 vt100
  131.    18260 ? S 0:00 /sbin/uugetty ttyS16 38400 vt100
  132.    
  133.    Finally test the board by dialing out (using cuaXX) and then dialing
  134.    in (ttySXX).
  135.    
  136.    Good Luck!
  137.