Support kernel 2.4, 2.6 and 3.0 on x86 machine only. Distributions test refer to item C.
Before driver installation. Make sure system with c compiler and kernel development
package.
D.1 Driver install
Please create a directory under root directory, e.g /temp, do commands:
# cd /
# mkdir temp
After get driver file "wch_vx.x.x.x.tar.gz". Copy file to /temp
directory, then extract and install, do commands:
# cp wch_vx.x.x.x.tar.gz /temp
# cd /temp
# tar xvfz wch_vx.x.x.x.tar.gz
# cd /temp/wch
# make clean ; make install
*************************************************************
* If system is Suse 9.0 and errors occur when *
* "make clean ; make install", do commands: *
* *
* # cd /usr/src/linux/ *
* # make cloneconfig *
* # make dep *
* *
* then do "make clean ; make install" again in /temp/wch *
*************************************************************
Load driver module, do command:
# modprobe wch
or
# insmod /temp/wch/driver/wch.ko (wch.o for kernel 2.4)
Check driver module, do command:
# lsmod | grep wch
Unload driver, do command:
# rmmod wch
D.2 Device node creation
Each serial port has one device node which is named "ttyWCH?",
maximum up to 256 serial ports.
This setp will be done when do "make clean ; make install", if
device nodes aren't in /dev, do commands:
E.1
After finish item D. Edit /etc/rc.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add "modprobe wch" in last line.
E.2
After finish item D.
Edit /etc/rc.d/boot.local for loading driver automatic after system bootup.
Use vi or other editor to open boot.local, and add "modprobe wch" in last line.
Edit /etc/rc.d/halt.lAfter finish item D. Edit /etc/rc.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add "modprobe wch" in last line.ocal for unloading driver when system halt.
Use vi or other editor to open halt.local, and add "rmmod wch" in last line.
E.3
After finish item D. Edit /etc/init.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add words as below in last line.
modprobe wch
E.4
After finish item D. Edit /etc/rc.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add words as below in last lien.
modprobe wch
E.5
In general, other distributions will loading driver automatic after system bootup.
If it doesn't, please refer to item E.1 or E.2. or E.3 or E.4