⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 isa总线设备
💻 TXT
📖 第 1 页 / 共 2 页
字号:
=============================================================================       MOXA PC104 Communication Module Driver Installation Guide		         for Linux Kernel 2.4.x, 2.6.x	       Copyright (C) 2007, Moxa Technologies Co, Ltd.=============================================================================Date: 04/16/2007Content0. Note1. Introduction2. System Requirement3. Installation   3.1 Hardware installation   3.2 Driver files      3.3 Device naming convention   3.4 Module driver configuration      3.5 Static driver configuration for Linux kernel 2.4.x and 2.6.x.   3.6 Custom configuration   3.7 Verify driver installation4. Utilities5. Setserial6. Troubleshooting-----------------------------------------------------------------------------0. Note   0.1 Installation step summary.            Hardware installation:      	Refer to the "3.1 Hardware installation".      	      Software/driver installation:	   	        0.1.1 Extract the Moxa driver: Refer to the "3.2 Driver files".                0.1.2 There are two methods to install Moxa driver: module & static. If           you want to use module method, refer to the "3.4 Module driver          configuration". If you want to use static method, refer to the          "3.5 & 3.6 Static driver configuration".-----------------------------------------------------------------------------1. Introduction   The PC104 Communication Module Linux driver supports following multiport    boards.    -CA-132, CA-132I series     2 ports multiport board.    -CA-104 series,      4 ports multiport board.   This driver and installation procedure have been developed upon Linux Kernel   2.4.x and 2.6.x. This driver supports Intel x86 hardware platform. In order    to maintain compatibility, this version has also been properly tested with    RedHat, Mandrake, Fedora and S.u.S.E Linux. However, if compatibility    problem occurs, please contact Moxa at support@moxa.com.tw.   In addition to device driver, useful utilities are also provided in this   version. They are    - mpdiag     Diagnostic program for displaying installed Moxa      		 Communication Module.    - mpmon      Monitor program to observe data count and line status signals.    - mpterm     A simple terminal program which is useful in testing serial	         ports.   All the drivers and utilities are published in form of source code under   GNU General Public License in this version. Please refer to GNU General   Public License announcement in each source code file for more detail.   In Moxa's Web sites, you may always find latest driver at    http://web.moxa.com.   This version of driver can be installed as Loadable Module (Module driver)   or built-in into kernel (Static driver). You may refer to following   installation procedure for suitable one. Before you install the driver,   please refer to hardware installation procedure in the User's Manual.   We assume the user should be familiar with following documents.   - Serial-HOWTO   - Kernel-HOWTO-----------------------------------------------------------------------------2. System Requirement   - Hardware platform: Intel x86 machine   - Kernel version: 2.4.x or 2.6.x   - gcc version 2.72 or later   - Maximum 4 boards can be installed in combination-----------------------------------------------------------------------------3. Installation   3.1 Hardware installation   3.2 Driver files      3.3 Device naming convention   3.4 Module driver configuration      3.5 Static driver configuration for Linux kernel 2.4.x, 2.6.x.   3.6 Custom configuration   3.7 Verify driver installation                       3.1 Hardware installation       There is only one type of bus, PC104 Bus, for PC104 Communication       Module.       You'll have to configure  I/O address, Interrupt Vector       as well as IRQ before installing this driver. Please refer to hardware       installation procedure in User's Manual before proceed any further.   3.2 Driver files       The driver file may be obtained from ftp, CD-ROM or floppy disk. The       first step, anyway, is to copy driver file "mxpcdrv.tgz" into specified       directory. e.g. /moxa. The execute commands as below.       # cd /        # mkdir moxa 		       # cd /moxa       # tar xvf /dev/fd0               or              # cd /       # mkdir moxa       # cd /moxa       # cp /mnt/cdrom/<driver directory>/mxpcdrv.tgz .       # tar xvfz mxpcdrv.tgz   3.3 Device naming convention          You may find all the driver and utilities files in /moxa/mxpcdrv.       Following installation procedure depends on the model you'd like to       run the driver. If you prefer module driver, please refer to 3.4.       If static driver is required, please refer to 3.5 & 3.6.       Dialin and callout port       -----------------------       This driver remains traditional serial device properties. There are       two special file name for each serial port. One is dial-in port       which is named "ttyNxx". For callout port, the naming convention       is "cunxx".       Device naming when more than 2 boards installed       -----------------------------------------------       Naming convention for each PC104 Communication Module is pre-defined        as below.       Board Num.	 Dial-in Port	      Callout port       1st board	ttyN0  - ttyN7	      cun0  - cun7       2nd board	ttyN8  - ttyN15       cun8  - cun15       3rd board	ttyN16 - ttyN23       cun16 - cun23       4th board	ttyN24 - ttyN31       cun24 - cun31              !!!!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!       Under Kernel 2.6 the cun Device is Obsolete. So use ttyN*       device instead.       !!!!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!       Board sequence       --------------       This driver will activate PC104 Bus boards according to the parameter set       in the driver. Therefore the board number is sorted by the I/O address        of PC104 Bus boards.   3.4 Module driver configuration       Module driver is easiest way to install. If you prefer static driver       installation, please skip this paragraph.              ------------- Prepare to use the MOXA driver--------------------         3.4.1 Create tty device with correct major number          Before using MOXA driver, your system must have the tty devices           which are created with driver's major number. We offer one shell          script "mpmknod" to simplify the procedure.           This step is only needed to be executed once. But you still          need to do this procedure when:          a. You change the driver's major number. Please refer the "3.7"             section.          b. Your total installed MOXA boards number is changed. Maybe you              add/delete one MOXA board.          c. You want to change the tty name. This needs to modify the              shell script "mpmknod"          The procedure is:                    # cd /moxa/mxpcdrv/driver          # ./mpmknod          This shell script will require the major number for dial-in           device and callout device to create tty device. You also need           to specify the total installed MOXA board number. Default major           numbers for dial-in device and callout device are 34, 41. If          you need to change to other number, please refer section "3.7"          for more detailed procedure.          Mpmknod will delete any special files occupying the same device           naming.                 3.4.2 Build the MOXA driver and utilities          Before using the MOXA driver and utilities, you need compile the          all the source code. This step is only need to be executed once.          But you still re-compile the source code if you modify the source          code. For example, if you change the driver's major number (see           "3.7" section), then you need to do this step again.                              Find "Makefile" in /moxa/mxpcdrv, then run          # make clean; make install                    !!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!           For Red Hat 9, Red Hat Enterprise Linux AS3/ES3/WS3 & Fedora Core1:          # make clean; make installsp1	  For Red Hat Enterprise Linux AS4/ES4/WS4:	  # make clean; make installsp2          !!!!!!!!!! NOTE !!!!!!!!!!!!!!!!! 	  The driver files "mxpcdrv.o" and utilities will be properly compiled	  and copied to system directories respectively.                  ------------- Load MOXA driver--------------------         3.4.3 Load the MOXA driver            # modprobe mxpcdrv <argument>	  will activate the module driver. You may run "lsmod" to check	  if "mxpcdrv.o" is activated. Because the MOXA board is PC104 Bus 	  module, the <argument> is needed. 	  Please refer to section "3.4.5" for more information.         ------------- Load MOXA driver on boot --------------------         3.4.4 For the above description, you may manually execute           "modprobe mxpcdrv <argument>" to activate this driver and           run "rmmod mxpcdrv" to remove it.           However, it's better to have a boot time configuration to           eliminate manual operation. Boot time configuration can be           achieved by rc file. We offer one "rc.mxpcdrv" file to simplify           the procedure under "moxa/mxpcdrv/driver".                     Because you use PC104 Bus board, please modify the "modprobe ..." 	  command to add the argument (see "3.4.5" section). After modifying 	  the rc.mxpcdrv, please try to execute 	  "/moxa/mxpcdrv/driver/rc.mxpcdrv"           manually to make sure the modification is ok. If any error           encountered, please try to modify again. If the modification is           completed, follow the below step.	  	  Run following command for setting rc files.	  # cd /moxa/mxpcdrv/driver	  # cp ./rc.mxpcdrv /etc/rc.d	  # cd /etc/rc.d	  Check "rc.serial" is existed or not. If "rc.serial" doesn't exist, 	  create it by vi, run "chmod 755 rc.serial" to change the permission.	  You also need to create link under /etc:		# ln -s /etc/rc.d/rc.serial /etc/rc.serial	  Add "/etc/rc.d/rc.mxpcdrv" in last line of rc.serial.          Reboot and check if mxpcdrv.o activated by "lsmod" command.       3.4.5. If you'd like to drive PC104 Communication Module in the system,           you'll have to add parameter to specify I/O address, Inteuuprt	  Vector Address and IRQ of given board while activating mxpcdrv. 	  The format for parameters are as follows.	      modprobe mxpcdrv ioaddr=0x???,0x???,0x???,0x???			       iovect=0x???,0x???,0x???,0x??? irq=?,?,?,?					|      |     |	  |					|      |     |	  +- 4th ISA board					|      |     +------ 3rd ISA board					|      +------------ 2nd ISA board					+------------------- 1st ISA board

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -