LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: zhanghui

我用的是实达5600smartPCI内置猫,上不了网

[复制链接]
 楼主| 发表于 2002-11-23 13:02:01 | 显示全部楼层

是interstar smart5600PCI

还有,在minicom -s  中的serial prot setup 一项中,serial device :/dev/modem 是要改成,
device :/dev/ttys1
还是要改成
device :/dev/ttyS1 ?

我以前用ttyS2试过,结果用minicom命令就死掉了,什么键都没反应.

是不是要修改中断号和i/o呢?我觉得这应该是唯一的,不会是多种可能性.请各位指教.在windows中modem中断号为9,但在linux /proc/ioports 中中断号为5
master capable,Latency=64,i/o at 0X400[0x40f]

还有,我的/dev/中没有modem,是不是要重建一个目录呢?
发表于 2002-11-23 16:31:09 | 显示全部楼层
这样来试一下。。
#ln -s /dev/ttyS1 /dev/modem
试一下,有问题,咱们再研究..
 楼主| 发表于 2002-11-24 18:28:32 | 显示全部楼层

今天下午,

我把驱动重装了一遍,以前没搞明白readme中的意思,现在驱动安装成功了,现在的问题是:

#ln -s /dev/ttyS1 /dve/modem
#minicom
minicom:cannot open /dev/modem,is a directory

这是怎么回事呢?我不明白,请大家指教.谢谢了.
 楼主| 发表于 2002-11-24 21:20:04 | 显示全部楼层

?

?
发表于 2002-11-24 21:22:46 | 显示全部楼层
#ln -s /dev/ttys1 /dev/modem
再试一下。
发表于 2002-11-24 21:25:12 | 显示全部楼层
我用的intel v92 ham 5628c内置moden,把驱动装上了,可rh8就是不认,说系统没找到猫。
 楼主| 发表于 2002-11-25 11:38:56 | 显示全部楼层

大家看一下驱动程序里的reademe文件.

Smart Link Ltd.
http://www.smlink.com
Apr 12, 2002


Smart Link Soft Modem for Linux
-------------------------------


Introduction
============

This is Smart Link Soft Modem for Linux version 2.6. It provides
full-featured 56K Voice Fax Modem.


Features
========

Modem: V.90, V.34, V.32bis, V.23, V.22, V.21, Bell 103/212.
Flow control: V.42, MNP 2-4.
Compression: V.44, V.42bis, MNP5.
Fax: Class 1.
Voice: ADPCM voice compression, Digital Answering Machine.


Requirements
============

CPU: Intel Pentiumi II, Celron. AMD K6, Cyrix 400MHz or higher.
Memory: 64MB (may work also with 32MB).
OS: Linux 2.4 series.


Supported Hardware
==================

HAMR5600 based AMR/CNR/MDC/ACR modem cards on the following Southbridge
chips:
- Intel ICH0, ICH2
- Via 686A, 686B, 8231, 8233
- SiS 961, 630
- ALI 1535.
SmartPCI56, SmartPCI561 based PCI modem cards.
SmartUSB56 based USB modem.


Installation
============

1. Unpack tar.gz package file:

        $ gzip -dc slmdm-2.6.X.tar.gz | tar xf -

2. 'cd' to package directory:

        $ cd slmdm-2.6.X

3. Review and edit (if need) 'Makefile'.

   Note: Probably you will want to correct in Makefile path to your
         local linux kernel header files:

                 KERNEL_INCLUDES=/path/to/linux/include

         Another way is to pass command line the parameter while
         running 'make':

                 $ make KERNEL_INCLUDES=/path/to/linux/include ...

4. Run 'make' command to compile package:

        $ make

5. Install.

   If you are going to use AMR/CNR/PCI modem type (as superuser):

        # make install-amr

   , or

        # make install-usb

   if you are going to use USB modem.

   It will install:
   - modem kernel modules slmdm.o (modem core), slfax.o (fax)
     into '/lib/modules/<kernel-version>/misc' directory
     (standard linux modules' directory).
   - hardware specific kernel module slamrmo.o (for AMR/CNR/PCI) or
     slusb.o (for USB) into '/lib/modules/<kernel-version>/misc'
     directory (standard linux modules' directory).
   - country settings data file 'country.dat' into directory '/etc'.

   Also it will:
   - create character tty device entry '/dev/ttySL0' with major
     number 212 and symbolic link 'dev/modem'.
   - config you '/etc/modules.conf' file in order to provide
     possibility for loading the modem modules into kernel on demand
     automatically by kmod, when you are going to use them.

   Note: currently you cannot use both AMR/CNR/PCI and USB Modems.

6. Config modem country.

   You can configure you current country by using module parameters
   'country' or 'country_code'.
   Add 'options' directive line to file '/etc/modules.conf':

        options slmdm country=<MyCountry>

   , for example

        options slmdm country=USA

   , or use module parameter while module loading:

        # modprobe slmdm country=<MyCountry>

   Use 'slver -c' to see list of all supported countries and their
   codes (utility 'slver' may be found in package directory).

   Note: Command ATI7 shows installed country setting.

7. Using the modem.

   Installation will automatically create character tty device entry
   '/dev/ttySL0' with major number 212 and symbolic link '/dev/modem'.
   Use one of them as modem device for your dialing application.

8. Uninstallation.

   In package directory just type:

        # make uninstall


Using RPM
=========

1. Build SRPM and RPM from tar.gz package:

   In order to build RPM and SRPM run command:

        # rpm -ta slmdm-2.6.X.tar.gz

   It will build in your RPM directory:
   - slmdm-2.6.X-Y.src.rpm       - Source SRPM package
   - slmdm-2.6.X-Y.i386.rpm      - Core Modem RPM package
   - slmdm-amr-2.6.X-Y.i386.rpm  - AMR/CNR/PCI Modem driver
   - slmdm-usb-2.6.X-Y.i386.rpm  - USB Modem driver

2. Install

   To install Modem core package run:

        # rpm -i /path/to/slmdm-2.6.X-Y.i386.rpm

   To install Modem hw driver run:

        # rpm -i /path/to/slmdm-amr-2.6.X-Y.i386.rpm

   if you are going to use AMR/CNR/PCI Modem, or

        # rpm -i /path/to/slmdm-usb-2.6.X-Y.i386.rpm

   if you are going to use SmartUSB56 Modem.

   Note: currently you cannot install and use both AMR/CNR/PCI and USB Modems.

3. Uninstall.

        # rpm -e slmdm slmdm-<amr|usb>


Getting Started
===============

After successful installation and configuration modules will be loaded on
demand if you are using 'kmod' in linux kernel.

Also you can load modules by hand:

        # modprobe slamrmo

if you are using AMR/CNR/PCI modem, or

        # modprobe slusb

if you are using SmartUSB56 Modem.


Troubleshooting
===============

If you get an error message during installation/configuration or loading
the modules like 'slmdm.o: unresolve symbols ...' it may mean that
package was prepared for different linux kernel version that you have.
Run command 'slver -k' (may be found in package directory) to see what
version of linux kernel was used for preparing package.

Unfortunately it is no so flexible currently (we are working about it) to
support all versions of linux kernel. So try to obtain appropriate release
of the modem package or upgrade kernel.

Please report the problem to your modem provider or to us
(support@smlink.com).


Customization
=============

Look at 'editme.c' file in package directory.


Feedback
========

Please send any feedbacks to Smart Link. See the Smart Link
web site for contact information (www.smlink.com) or to
support@smlink.com.

我是用的这样的命令:
#tar xvzf slmdm-2.6.16_i386.tar.gz
#cd slmdm-2.6.16-i386
#vi Makefile
把  KERNEL_INCLUDES=/path/to/linux/include
改成
KERNEL_INCLUDES=/usr/scr/linux-2.4.7-10/include
:wq
#make
#make install
结果显示:
...
ln -sf /dev/ttySL0 /dev/modem
#modules slmdm country=Chinese
按照它的readme文件来说,就是把ttySL0或是/dev/modem当作modem
来用,可是我用minicom命令根本不行的.
#minicom
minicom:cannot open /dev/modem,is a ierectory

这是不是说,/dev/./ttySL0 和/dev/modem都可当作modem设备来用?可是我的modem是装在/dev/ttyS1上的啊,怎么才能把它们连接起来呢?请各位不吝赐教.谢谢.
发表于 2002-11-25 12:32:50 | 显示全部楼层
这样来试一下。把/dev/modem改名。
#mv /dev/modem /dev/modemBAK
然后再建一个链接。。。要看一下这个文件是不是真正存在。/dev/ttySL0
#more /dev/ttySL0,如果没有这个文件,我们建链接也没有用。。。
#ln -s /dev/ttySL0 /dev/modem

不知道在安装的时候,用没有用过这个 # make install-amr 命令。试一下。。。。。。
 楼主| 发表于 2002-11-25 19:09:35 | 显示全部楼层

我用的这个命令:

# make install-amr 就显示出make的帮助文件.
#make install
install -D -M 644 slmdm.o //bib/modules/2.4.7-10/misc/slmdm.o
install -D -M 644 slfax.o //bib/modules/2.4.7-10/misc/slfax.o
install -D -M 644 slamrm.o //bib/modules/2.4.7-10/misc/slamrm.o
install -D -M 755 country.dat /etc/coutry.dat

rm -f /dev/ttySL0
mknod -m 666 /dev/ttySL0 c 212 0
ln -sf ./ttySL0 /dev/modem

这就是说,它把ttySL0给删掉了,但是在/dev/./内有ttySL0
那我该怎么办呢?
发表于 2002-11-25 23:03:50 | 显示全部楼层
然后用kppp来设置一下拔号。如果还是找不到猫,就用我上面说的办法来试一下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表