Software Installation
the source code if you modify the source code. For example, if you change the driver's
major number (see Section 3.7), then you will need to redo this step.
Find "Makefile" in /moxa/mxser, and then run
# make clean; make install
The driver files "mxser.o" and utilities will be properly compiled and copied to system
directories, respectively.
3. Load the MOXA driver
# insmod mxser <argument>
will activate the module driver. You may run "lsmod" to check if "mxser.o" is
activated. If the MOXA board is an ISA board, the <argument> is needed. Please refer
to section "3.4.5" for more information.
Based on the above description, you may manually execute "insmod mxser" to activate
this driver and run "rmmod mxser" to remove it. However, it's better to have a boot
time configuration to eliminate the need for manual operation. a boot time
configuration can be achieved with an rc file. We offer one "rc.mxser" file to simplify
the procedure under "moxa/mxser/driver".
But if you are using an ISA board, you must modify the "insmod ..." command to add
the argument (see Section 3.4.5). After modifying the rc.mxser, try executing
"/moxa/mxser/driver/rc.mxser" manually to make sure the modification is okay. If any
errors are encountered, try modifying again. Once the modification is complete, follow
the steps given below.
Run the following command for setting rc files.
# cd /moxa/mxser/driver
# cp ./rc.mxser /etc/rc.d
# cd /etc/rc.d
Check if the file "rc.serial" exists. If "rc.serial" does not exist, create the file using vi
editor. Run "chmod 755 rc.serial" to change the permission. Add "/etc/rc.d/rc.mxser"
in last line,
Reboot and check if moxa.o activated by "lsmod" command.
Static driver configuration
(for Linux kernel 2.2.14 or above, including 2.4.x)
Note: To use the static driver, you must install the Linux kernel source package.
1. Back up the built-in driver in the kernel.
# cd /usr/src/linux/drivers/char
Industio CP-134U Series User’s Manual
3-41