当前位置: 技术问答>linux和unix
请教各位老手,这个猫驱动怎么用?
来源: 互联网 发布时间:2015-06-06
本文导语: 有这样几个文件: src/serial/Makefile Makefile for serial modem driver src/serial/ptserial.c Serial modem driver (modified from Theodore Ts'o's serial.c) lib/pctel.o ...
有这样几个文件:
src/serial/Makefile Makefile for serial modem driver
src/serial/ptserial.c Serial modem driver
(modified from Theodore Ts'o's serial.c)
lib/pctel.o Installable modem driver
lib/control.a Relocatable object for Controller module
lib/dsp.a Relocatable object for DSP module
lib/hal.a Relocatable object for HAL module
include/pctel.h Header file for ptserial.c
include/halwraps.h Header file for interfaces to HAL module
README This file
说明中这样写:
HOW TO USE THE MODEM DRIVER?
========================================================================
If pctel.o compiles and links successfully, you can use 'insmod' to
install it. The current driver source uses the major number 62
and minor number 79 (which maps into /dev/ttyS15). You can change the
major number by changing the PCTEL_MAJOR #define. To change the minor
number, you need to modify the rs_table[] array, and the corresponding
ttyS# will change. The minor number value is 64 + port #.
Make sure you have a char device node for /dev/ttyS15. Login as root
and use the 'mknod' command:
mknod /dev/ttyS15 c 62 79
You may want to use 'chgrp uucp /dev/ttyS15' to change its group owner
and 'chmod 666 /dev/ttyS15' to grant read/write access to other users.
/dev/ttyS15 will behave like a regular serial device. Open the port
with a terminal application (e.g. Seyon). Make sure it is
configured to use /dev/ttyS15.
You probably want to create another device node named /dev/modem (or
create a symbolic link using "ln -s",as some terminal and PPP dialer
applications use that name as its default.
If you opened /dev/ttyS15 successfully with a terminal application,
you can type in AT commands to interface with the modem (please
consult PC-TEL AT Command Summary Document for more information).
我应该编译哪几个文件,如何编译?
src/serial/Makefile Makefile for serial modem driver
src/serial/ptserial.c Serial modem driver
(modified from Theodore Ts'o's serial.c)
lib/pctel.o Installable modem driver
lib/control.a Relocatable object for Controller module
lib/dsp.a Relocatable object for DSP module
lib/hal.a Relocatable object for HAL module
include/pctel.h Header file for ptserial.c
include/halwraps.h Header file for interfaces to HAL module
README This file
说明中这样写:
HOW TO USE THE MODEM DRIVER?
========================================================================
If pctel.o compiles and links successfully, you can use 'insmod' to
install it. The current driver source uses the major number 62
and minor number 79 (which maps into /dev/ttyS15). You can change the
major number by changing the PCTEL_MAJOR #define. To change the minor
number, you need to modify the rs_table[] array, and the corresponding
ttyS# will change. The minor number value is 64 + port #.
Make sure you have a char device node for /dev/ttyS15. Login as root
and use the 'mknod' command:
mknod /dev/ttyS15 c 62 79
You may want to use 'chgrp uucp /dev/ttyS15' to change its group owner
and 'chmod 666 /dev/ttyS15' to grant read/write access to other users.
/dev/ttyS15 will behave like a regular serial device. Open the port
with a terminal application (e.g. Seyon). Make sure it is
configured to use /dev/ttyS15.
You probably want to create another device node named /dev/modem (or
create a symbolic link using "ln -s",as some terminal and PPP dialer
applications use that name as its default.
If you opened /dev/ttyS15 successfully with a terminal application,
you can type in AT commands to interface with the modem (please
consult PC-TEL AT Command Summary Document for more information).
我应该编译哪几个文件,如何编译?
|
如果lib/pctel.o存在就不用编译, 直接
# insmod pctel.o
否则我想应该make 一下就可以了.
# insmod pctel.o
否则我想应该make 一下就可以了.