[root@dvhome vspd.tmp]# rpm -ivh ./vspd-1.11-linux.i586.rpm
Preparing... ####################### [100%]
- vspd ######################### [100%]
[root@dvhome vspd.tmp]# tar xvfz ./vspd-1.11-linux.tar.gz -C /
usr/local/vspd-1.11-dist/
usr/local/vspd-1.11-dist/bin/
usr/local/vspd-1.11-dist/bin/vsptty
usr/local/vspd-1.11-dist/bin/vspd.sh.in
usr/local/vspd-1.11-dist/bin/vspm.sh.in
.... (skipped) ....
usr/local/vspd-1.11-dist/remove.sh
usr/local/vspd-1.11-dist/configure
usr/local/vspd-1.11-dist/README
[root@dvhome vspd.tmp]# uname -a >> ./report.txt
[root@dvhome vspd.tmp]# rpm -ivv ./vspd-1.11-linux.i586.rpm 2>> ./report.txt
[root@dvhome local]# ls -l /usr/local/vspd-1.11-dist/
total 84
drwxr-xr-x 2 root root 4096 Dec 7 01:20 bin/
-rwx------ 1 root root 47674 Dec 2 11:13 configure*
drwxr-xr-x 2 root root 4096 Dec 7 01:20 etc/
drwxr-xr-x 2 root root 4096 Dec 2 11:13 include/
-rwx------ 1 root root 2595 Dec 2 11:13 install.sh*
drwxr-xr-x 3 root root 4096 Dec 7 01:20 lib/
drwxr-xr-x 2 root root 4096 Dec 7 01:20 man/
-rw-r--r-- 1 root root 3720 Dec 2 11:13 README
-rwx------ 1 root root 714 Dec 2 11:13 remove.sh*
drwxr-xr-x 2 root root 4096 Dec 7 01:20 sbin/
[root@dvorkin local]# ls -1 -R /usr/local/vspd-1.11-dist/
/usr/local/vspd-1.11-dist/:
bin/
/* binaries and startup scripts templates */
configure*
/* configuration script for building VSP module */
etc/
/* configuration files templates */
include/
/*
[root@dvhome local]# cd /usr/local/vspd-1.11-dist/
[root@dvhome vspd-1.11-dist]# ./install.sh /usr/local/vspd
installing to /usr/local/vspd
creating cache ./config.cache
checking for target KERNEL... ok
checking for target KERNEL name... linux
checking for target KERNEL version... 2.4.22-10mdk
checking for target KERNEL subversion... 2.4
checking for target KERNEL path... /usr/src/linux-2.4.22-10mdk
checking for target MAKE_ARGS... make
checking for DEVFS... ok
********************* checking for required programms ******************
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for install... /usr/bin/install
checking for cp... /bin/cp
****************** checking for required header files ******************
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for ctype.h... yes
*********************** checking for functions *************************
checking for strerror... yes
************************ current settings ******************************
CC: gcc
CXX version: gcc-3.3.1 (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CXXFLAGS:
EXTRA_DEFINES:
EXTRA_SOURCES:
Using kernel: linux
Using kernel version: 2.4.22-10mdk
Using kernel subversion: 2.4
********************** making config.h and Makefile ********************
updating cache ./config.cache
creating ./config.status
creating lib/src/_makewrapper
creating lib/src/Makefile
creating lib/src/linux/Makefile-2.4
creating ./bin/vspd.sh
creating ./bin/vspm.sh
creating ./etc/vspd.conf
compiling the vspm kernel module ...
gcc -Wall -O2 -fomit-frame-pointer -I./ -D__KERNEL__ -DLINUX -DMODULE -DEXPORT_SYMTAB
-I/usr/src/linux-2.4.22-10mdk/include/ -c vspm.c -o ../vspm.ko
/* line split for documentation purposes - the two above should be one line. */
... (skipped) ...
installing ...
installing vspm ...
installing vspd ...
setting runlevels for vspm ...
setting runlevels for vspd ...
[root@dvorkin vspd-1.11-dist]# ls -1 -R /usr/local/vspd/
/usr/local/vspd/:
bin/
/* vsptty and startup scripts */
etc/
/* configuration files */
lib/
/* compiled VSPModule */
man/
/* manuals and docs*/
sbin/
/* VSPDaemon directory */
var/
/* logs directory */
/usr/local/vspd/bin:
vspd.sh*
/* VSPDaemon startup script */
vspm.sh*
/* VSPModule startup script */
vsptty*
/* simple tty interaction programm */
/usr/local/vspd/etc:
vspd.conf
/* running VSPDaemon configuration */
vspd.conf.in
/* VSPDaemon configuration template */
vspd.conf.sample
/* VSPDaemon configuration example */
vspm.conf
/* VSPModule configuration */
/usr/local/vspd/lib:
vspm.ko*
/* VSPModule compiled binary */
/usr/local/vspd/man:
vspd
vspm
/* VSPDaemon and VSPModule manuals */
/usr/local/vspd/sbin:
vspd*
/* VSPDaemon binary */
/usr/local/vspd/var:
/* directory for log files */
[root@dvorkin vspd-1.11-dist]# ./install.sh
You don't have to install to the same path
Use ./install.sh
[root@dvorkin vspd-1.11-dist]# ./
[root@dvorkin vspd-1.11-dist]# ./configure --help
Usage: configure [options] [host]
Options:
Configuration:
--cache-file=FILE cache test results in FILE
... (skipped) ...
--enable and --with options recognized:
--with-kernel=
[root@dvorkin vspd-1.11-dist]# cd /usr/local/vspd-1.11-dist/
[root@dvorkin vspd-1.11-dist]# uname -a >> ./report.txt
[root@dvorkin vspd-1.11-dist]# ./install.sh /usr/local/vspd >> ./report.txt 2>> ./report.txt
[root@dvorkin vspd-1.11-dist]# cat ./lib/src/Makefile >> ./report.txt
[root@dvorkin vspd-1.11-dist]# cat ./lib/src/linux/* >> ./report.txt
[root@dvorkin vspd-1.11-dist]# ls /usr/local/vspd/etc/
[root@dvorkin src]# ls -1 /usr/local/vspd/etc
vspd.conf
/* VSPDaemon configuration file */
vspd.conf.in
/* VSPDaemon configuration template */
vspd.conf.sample
/* VSPDaemon configuration example */
vspm.conf
/* VSPModule configuration file */
[root@dvorkin etc]# cat /usr/local/vspd/etc/vspm.conf
# Virtual Serial Port module config file
# Copyright (C) 2003, Tibbo Technology Inc.
# ----- module section
# You may use # as comment
# For example if you want to set MAXDEV as default,
# you have to comment the string
# "MAXDEV=100" -> "#MAXDEV=100"
# maximum number of devices
# default MAXDEV=128
#MAXDEV=128
# major number for serial devices
# set major number, if you aren't using devfs
# default MAJOR0=100
MAJOR0=100
# major number for daemon devices
MAJOR1=101
# debug level
# 0 = no debug
# 1 = simple kernel messages
# 2 = development debug
# 3 = development debug with
[root@dvorkin etc]# cat /usr/local/vspd/etc/vspd.conf
...(skipped)...
[root@dvorkin etc]# ls -l /etc/rc.d/init.d/vsp*
-rwxr--r-- 1 root root 2439 Dec 7 12:28 /etc/rc.d/init.d/vspm*
-rwxr--r-- 1 root root 2290 Dec 7 12:28 /etc/rc.d/init.d/vspd*
[root@dvorkin etc]# /etc/rc.d/init.d/vspd
Usage /etc/rc.d/init.d/vspd {start|stop|restart|reloadconf|status|extstatus}
[root@dvorkin etc]# /etc/rc.d/init.d/vspm
Usage /etc/rc.d/init.d/vspm {start|stop|restart|status|conf|modinfo}
[root@dvorkin etc]# /etc/rc.d/init.d/vspm start
installing vspm.ko module to kernel... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspm restart
removing vspm.ko module from kernel... [ OK ]
installing vspm.ko module to kernel... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspm status
vspm.ko module is loaded
[root@dvorkin etc]# /etc/rc.d/init.d/vspm conf
module name: vspm.ko
module path: /usr/local/vspd/lib/
module conf: /usr/local/vspd/etc/vspm.conf
insmod : /sbin/insmod
rmmod : /sbin/rmmod
lsmod : /sbin/lsmod
modinfo : /sbin/modinfo
[root@dvorkin etc]# /etc/rc.d/init.d/vspm modinfo
filename: /usr/local/vspd/lib/vspm.ko
description: "Virtual Serial Port driver"
author: "(C) by Tibbo Technology Inc., 2004"
license: "GPL"
parm: major0 int, description "Major number for tty devices"
parm: major1 int, description "Major number for daemon interface devices"
parm: debug int, description "Debug level (0-2)"
parm: maxdev int, description "Max. number of devices"
[root@dvorkin etc]# /etc/rc.d/init.d/vspd start
starting vspd... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspd restart
stopping vspd... [ OK ]
starting vspd... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspd reloadconf
tell vspd to reload configuration... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspd status
vspd is loaded
[root@dvorkin etc]# /etc/rc.d/init.d/vspd extstatus
vspd is loaded
[root@dvorkin etc]# /etc/rc.d/init.d/vspd stop
stopping vspd... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspd extstatus
/var/run/vspd.pid not found
vspd is NOT loaded
[root@dvorkin etc]# /etc/rc.d/init.d/vspm start
installing vspm.ko module to kernel... [ OK ]
[root@dvorkin etc]# /etc/rc.d/init.d/vspd start
starting vspd... [ OK ]
[root@dvorkin etc]# ls -l -R /dev/vsp*
/dev/vsp:
total 0
crw------- 1 root root 101, 0 Jan 1 1970 vspd0
... (skipped) ...
crw------- 1 root root 101, 0 Jan 1 1970 vspd127
crw------- 1 root root 101, 0 Jan 1 1970 vsps0
... (skipped) ...
crw------- 1 root root 101, 0 Jan 1 1970 vsps127
[root@dvorkin etc]# uname -a >> ./report.txt
[root@dvorkin etc]# /etc/rc.d/init.d/vspm start >> ./report.txt
[root@dvorkin etc]# /etc/rc.d/init.d/vspd start >> ./report.txt
[root@dvorkin etc]# cat /usr/local/vspd/etc/vspm.conf >> ./report.txt
[root@dvorkin etc]# cat /usr/local/vspd/etc/vspd.conf >> ./report.txt
[root@dvorkin etc]# tail -n 1000 /var/log/messages >> ./report.txt
[root@dvorkin etc]# tail -n 1000 /usr/local/vspd/var/vspd.log >> ./report.txt
[root@dvorkin etc]# tail -n 1000 /usr/local/vspd/var/dev.0.log >> ./report.txt
#/etc/rc.d/init.d/vspd stop
#/etc/rc.d/init.d/vspm stop
DEBUG=0
DEBUG=3
#/etc/rc.d/init.d/vspm start
(1st console):#cat /dev/vsp/vsps0
(2nd console):#echo "testing - vspD" > /dev/vsp/vspd0
(1st console):#cat /dev/vsp/vspd0
(2nd console):#echo "testing - vspS" > /dev/vsp/vsps0
[root@dvorkin etc]# /etc/rc.d/init.d/vspd start
[root@dvorkin etc]# ps auxw | grep "vspd"
[root@dvorkin etc]# /etc/rc.d/init.d/vspd extstatus
[root@dvorkin etc]# tail -f /usr/local/vspd/var/dev.0.log
[root@dvorkin etc]# /etc/rc.d/init.d/vspd restart
#minicom -o
press
, press
#minicom -o vsps0
(console 2)#tail -f /usr/local/vspd/var/dev.0.log
(console 3)#telnet 10.1.1.1 3500
/dev/vsps
[vspm] ioct1_D CMD0x5415 bad magic
[vspm] ioct1_D CMD0x5401 bad magic
[vspm] ioct1_D CMD0x5402 bad magic
[vspm] ioct1_D CMD0x5418 bad magic