www.digi.com
  Advanced Search
Product Selector
     
  Technical Support
Drivers

Firmware Upgrades

FAQs

Product Documentation

Cabling

Support Tools

Legacy Products

About Digi Support

Knowledge Base

Online Support Request

FTP Site



Related Links
Inside Out Networks


 
Solutions Partners Support and Training Corporate Info Where to Buy Order Where to Buy Site Map Contact Us
Home > Support >kbase >
Installing PC/X and ISA ClassicBoard Adapters in Linux
Installing PC/X and ISA ClassicBoard Adapters in Linux Installing PC/X and ISA ClassicBoard Adapters in Linux

  1. Initial Configuration
      Determine the I/O Addresses:

      • ClassicBoard:
        Run DOS configuration util (cfg) or use isapnp in linux.
      • PC/4, PC/8:
        Configurable via DIP switches on the board itself.
      • PC/16: I/O Addresses are fixed via PAL chips on the board. See table of I/O addresses in the manual.

      Determine the IRQ used by the board.

  2. Create the device files
      Devices are created via the mknod command. You will need to use mknod to create a device file for each port.
      mknod [port] [type] [major] [minor]
        [port] = the device file to be created
        [type] = c
        [major] = the major # of your other ttyS devices
        [minor] = the next minor #, following the sequence of your existing devices
        

      The first Digi port should be ttyS4 or higher on most systems.

      For Example: 
          
        # ls -l /dev/ttyS*
        crw-------   1 root     tty        4,  64 Mar  7 14:52 /dev/ttyS0
        crw-------   1 root     tty        4,  65 Mar  7 14:52 /dev/ttyS1
        crw-------   1 root     tty        4,  66 Mar  7 14:52 /dev/ttyS2
        crw-------   1 root     tty        4,  67 Mar  7 14:52 /dev/ttyS3
        # mknod /dev/ttyS4 c 4 68
        # mknod /dev/ttyS5 c 4 69
        # mknod /dev/ttyS6 c 4 70
        # mknod /dev/ttyS7 c 4 71
        # chgrp tty /dev/ttyS*
        # ls -l /dev/ttyS*
        crw-------   1 root     tty        4,  64 Mar  7 14:52 /dev/ttyS0
        crw-------   1 root     tty        4,  65 Mar  7 14:52 /dev/ttyS1
        crw-------   1 root     tty        4,  66 Mar  7 14:52 /dev/ttyS2
        crw-------   1 root     tty        4,  67 Mar  7 14:52 /dev/ttyS3
        crw-------   1 root     tty        4,  68 Mar  7 14:52 /dev/ttyS4
        crw-------   1 root     tty        4,  69 Mar  7 14:52 /dev/ttyS5
        crw-------   1 root     tty        4,  70 Mar  7 14:52 /dev/ttyS6
        crw-------   1 root     tty        4,  71 Mar  7 14:52 /dev/ttyS7
        

  3. Configure the ports in Linux

      For each port, issue:
      setserial /dev/ttyS[#] ^fourport port [IO] irq [IRQ] uart [UART]
      Notes:
        I/O should usually be entered in as a hex address (0x100, etc) and each port must have a unique I/O address. Digi's documentation gives addresses in hex values.
        The setserial commands need to be run again each time the machine is rebooted. If you want them to remain configured, we recommend adding them to the appropriate startup script in your distribution of linux. (i.e. rc.serial)

      For Example:

      • 8 port board, using I/O Addresses in the range of the first physical serial port, and the irq the 1st and 3rd serial ports normally use:
        
        setserial /dev/ttyS4 ^fourport port 0x110 irq 4 uart 16650
        setserial /dev/ttyS5 ^fourport port 0x118 irq 4 uart 16650
        setserial /dev/ttyS6 ^fourport port 0x120 irq 4 uart 16650
        setserial /dev/ttyS7 ^fourport port 0x128 irq 4 uart 16650
        setserial /dev/ttyS8 ^fourport port 0x130 irq 4 uart 16650
        setserial /dev/ttyS9 ^fourport port 0x138 irq 4 uart 16650
        setserial /dev/ttyS10 ^fourport port 0x140 irq 4 uart 16650
        setserial /dev/ttyS11 ^fourport port 0x148 irq 4 uart 16650
        
        Notes:

          In order to use the resources of the 2nd serial port, substitute 3 for irq, and the following for I/O addresses:
          0x210, 0x218, 0x220, 0x228, 0x230, 0x238, 0x240, 0x248
          For a board with 4 ports, one would only use the first four lines of the example.
          The previous example is valid for the ClassicBoard. For the PC/X, substitute proper information where appropriate (i.e. uart).

      Some older versions of setserial require the following command, as well:

      setserial /dev/ttyS[first#] set_multiport port1 [IO] mask1 0xf match1 0xf
      	Use Oxf for 4 ports
      	Use 0xff for 8 ports, 
              or  0xffff for 16 ports.
      	Use port2, mask2, match2 for a second board.
      
     

    solutions | partner programs | corporate info | support and training | where to buy
    site map | contact us | press releases |
    events | promotions | advertising

    Copyright © 1996-2001 Digi International. All rights reserved.