LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1174|回复: 9

modem,配置问题?536ep modem

[复制链接]
发表于 2003-6-17 15:01:39 | 显示全部楼层 |阅读模式
我是按以下方法安装,我的536ep modem。
可我用,系统起动,已经显示,536ep-boot
我在网络设置,里还是检测不到modem.
在KPPP里,选/dev/modem,再查询,就出现无穷的等待,而且键盘失灵,可系统却没有死啊,
选ttyS2和ttys3。显示,modem忙
有什么办法解决啊,还有是不我那里出错了。


[root@localhost root]# lspci
00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset AGP Bridge (rev 04)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 05)
00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 05)
00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 05)
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 05)
00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 05)
00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 05)
00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
02:03.0 Communication controller: Intel Corp. 536EP Data Fax Modem
[root@localhost root]# ls
anaconda-ks.cfg  install.log         Intel536-460-1-R90  tools
Desktop          install.log.syslog  Intel536-460-R80    znwb
[root@localhost root]# cd Intel536-460-1-R90
[root@localhost Intel536-460-1-R90]# make clean
cd coredrv; make clean
make[1]: Entering directory `/root/Intel536-460-1-R90/coredrv'
rm -f *.o *~ core
make[1]: Leaving directory `/root/Intel536-460-1-R90/coredrv'
cd serialdrv;  make clean
make[1]: Entering directory `/root/Intel536-460-1-R90/serialdrv'
rm -f *.o *~ core
make[1]: Leaving directory `/root/Intel536-460-1-R90/serialdrv'
rm -f *.o
rm -f *.o
[root@localhost Intel536-460-1-R90]# make 536ep
   Module precompile check
   Current running kernel is: 2.4.20-8
   /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: 没有那个文件或目录
   autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: 没有那个文件或目录
   version.h matches running kernel
cd coredrv; make \
       "STN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" \
        536ep;
make[1]: Entering directory `/root/Intel536-460-1-R90/coredrv'
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc    -c -o coredrv.o coredrv.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc    -c -o clmmain.o clmmain.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc    -c -o rts.o rts.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc    -c -o task.o task.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc    -c -o uart.o uart.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc    -c -o wwh_dflt.o wwh_dflt.c
ld -r coredrv.o clmmain.o rts.o task.o uart.o wwh_dflt.o 536epcore.lib -o 536epcore.o
make[1]: Leaving directory `/root/Intel536-460-1-R90/coredrv'
cp coredrv/536epcore.o .
cd serialdrv; make \
       "STN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" \
       536ep;
make[1]: Entering directory `/root/Intel536-460-1-R90/serialdrv'
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc    -c -o softserial.o softserial.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc    -c -o softserial_io.o softserial_io.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc    -c -o softserial_ioctl.o softserial_ioctl.c
ld -r softserial.o softserial_io.o softserial_ioctl.o -o 536ep.o
make[1]: Leaving directory `/root/Intel536-460-1-R90/serialdrv'
cp serialdrv/536ep.o .
[root@localhost Intel536-460-1-R90]# make install
bash 536ep-inst
running kernel 2.4.20-8
installing hamregistry, used for persistant storage
installing 536ep module
installing 536ep core module
redhat hamboot rc2.d and rc3.d scripts
starting module and utilities
done
[root@localhost Intel536-460-1-R90]#
发表于 2003-6-18 21:59:13 | 显示全部楼层
在KPPP里,选/dev/modem,再查询,就出现无穷的等待,而且键盘失灵,可系统却没有死啊,
选ttyS2和ttys3。显示,modem忙


再换一下别的设备。里面有好多可以选择的。再来试试看
 楼主| 发表于 2003-6-19 09:14:37 | 显示全部楼层
今天 ,把modem换了个PCI插槽,在tts0和tts1都能查询到,但查询结果可是空的,其它的都一样。不知什么原因。
发表于 2003-6-19 22:24:58 | 显示全部楼层
这个猫应该说没有问题 ,不过对于硬件来说,问题出的是有点复杂。

用redhat-config-network来设置一下猫 ,看一下何如?
发表于 2003-6-20 08:49:52 | 显示全部楼层

应是设备块对应不对的引起的问题

我在Dell C840 笔记本上设置pctel内猫上网,曾遇到过这一问题。

希望我的解决经验对你为帮助。
在互联网配置设置向导中,设备一定要和系统安装猫后分配的设备块名对应,否则就会出现你所提出的问题。这可能需手工指定,如我设置时modem,硬件对应块名为ttyS15,设置向导下拉菜单中就没有。

你可查看驱动程序中的Makefile 文件,在install 部分中应可看到系统如何分配安装猫后设备块名。 :p
发表于 2003-6-20 09:55:17 | 显示全部楼层

clz0989

你是如何完成的?我现在就是这样的,在redhat-config-network设置时,下拉菜单中就没有指定的设备,自己输入/dev/modem也不行,怎样增添进去?原来在REDHAT 8中安装完驱动程序后系统自己就生成了,有两个网络设备可以被激活,一个是ETH0,另一个就是PPP0,但现在升级了系统反而不行了。特别郁闷。没办法,只好用KPPP。
发表于 2003-6-20 10:40:35 | 显示全部楼层

指定的设备指定方法

直接在下拉菜单中手工输入分配安装后的设备块名(驱动程序中的Makefile 文件在install 部分中应可查出)。 另,一般来说,猫对应/dev/modem或/dev/modem0, 但应为一软连接,可用ls -l /dev/modem 或ls -l /dev/modem0 查看,如我的为 /dev/modem0--->/dev/ttyS15,
故在手工输入中应输入/dev/ttyS15(也许是ttyS15,机器不在身边,记不清了,你可试试) :p ;)
 楼主| 发表于 2003-6-20 13:34:41 | 显示全部楼层
以下是536ep的安装 说明书。


ReadMe file for the
Intel?536EP V.92 chipset Linux driver

contents:
1.  License
2.  Release Notes
3.  Installation
4.  File Descriptions
5.  International Users
6.  Beta Tester appreciation
7.  Security issues
8.  Compilation issues
    a. Instructions for Debian Users
    b. Kernel Source
9.  What is the Hamregistry?
10. what's v92 and v44?
11. The Hamregistry tool (for persistance)
12. Known Bugs/Issues
13. Comments, ideas, problems, fixes

-------------------------------------------------------------------------------
1. LICENSE

IMPORTANT - read the file "LICENSE.txt" for the INTEL SOFTWARE LICENSE
AGREEMENT BEFORE COPYING, INSTALLING OR USING.

-------------------------------------------------------------------------------
2. Release Notes

      This release supports 2.4.x kernels.

      This release is not compatible with kernels prior to 2.4.

      The 536EP corecode binary was compiled with gcc version 3.2

      v92 support added:  modem on hold AT command set,
      PCM upstream, v44, and quick connect are implemented.                         

      Linux Compatability tests are performed on the latest or previous
      versions of the following distributions: Mandrake, RedHat, and SuSE

-------------------------------------------------------------------------------
3.  INSTALLATION

Prerequisites:
   1. root access
   2. bash shell to run install scripts
   3. a 536EP modem
   4. KERNEL SOURCE HEADERS FOR THE KERNEL YOU ARE RUNNING.
      and programming development tools installed as well

6 steps to install
   1. login as ROOT
   2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"
   3. cd into the directory it created.
   4. Type: make clean
   5. Type: make 536ep
   6. Type: make install


Please examine the 536ep-inst script if you have a different distribution.

The driver is split in two.  A serial driver and core driver.
The core driver must be loaded first since the serial driver depends on it.
The serial driver registers itself as character device
   major number 240, minor number 1.


ATTENTION:  if the driver compiles but the script just wont work for you.
   Here are the bare minimum steps to get your modem to work.

   0.  log in as root.
   1.  insmod -f 536epcore.o
   2.  insmod -f 536ep.o
   2a. you can start "hamregistry" at this point if you wish.
   3.  rm /dev/536ep
   4.  mknod /dev/536ep c 240 1   (note "240" is the default, if it does not
       work see what /proc/devices says 536ep's major number is)
   5.  ln -s /dev/536ep /dev/modem
   6.  start a comm application like minicom and use the modem.
   7.  see section 3 (International Users) for info on setting the correct
       country settings.


-------------------------------------------------------------------------------
4.  FILE DESCRIPTIONS

536ep-inst installation script to install 536ep modules and supporting files


files copied to /lib/modules/(kernel-version)/misc
   536epcore.o        driver core code module
   536ep.o        pseudo serial driver for 536ep, depends on 536epcore.o

files copied to  /etc/rc.d/...  (path differes per distribution)
   536ep-boot                boot scrip to start and stop 536ep modules

files copied to /usr/sbin
   hamregistry        hamregistry is the "registry" like tool that the modem uses to
   get and store persistant data such as county info and profile strings.

files copied to /etc
   hamregistry.bin        file that stores the initial persistant data for modem.


-------------------------------------------------------------------------------
5.  INTERNATIONAL USERS

hamregistry will store the last country setting you
set in the modem.

in minicom (or equivalent comm application)
the commmand to change country setting is "AT+GCI="
the command takes a t.35 country code in hexadecimal.
below is a list of currently supported t.35 country codes.
you can also put this "AT" command in the init string of
the comm application you are using.

if you are a CTR-21 country I think you should be able to
choose a CTR-21 country on the list and be ok.  but
that's no guarantee.
The same goes for countries that are "USA" compatable.
(this table also exist in the source file wwh_dflt.c that
ships with the 536epcore driver)

inspect the wwh_dflt.c file provided to find out what your country's t.35 code is.

-------------------------------------------------------------------------------
6.  Thanks to the following beta testers for their valuable input and
    suggestions during the HaM 333 beta test between January 2 - 26, 2001

Dorian S. Araneda
Sean Walbran
Rob Clark
Marvin Stodolsky
Dominique Duval
Roman Krais
Ulrich Guenther
Marcelino Viana Pinheiro
Thomas S. Iversen
Jospeh Teichman
Michel Bartolone (MED)
Ramon Gonzalez Montoiro
Ryoji Kawagishi
Torsten Vogel
"jandro"
Ian Carr-de Avelon
Helga Weindl
Ed Casas
Bernhard Hoelcker
Alexander "Sasha" Voytov
Albert Woo
Peter Hirschmann

and all of the helpful Linux HaM users
around the world and at www.linmodems.org

-------------------------------------------------------------------------------
7. Security issues

the 536ep-inst and 536ep-boot file install the files and device nodes as
root for the owner and group.  
this will cause problems for those who want to user the modem to dialout
using an account other than root.

In SuSE, "dialout" is the group used to install the files and device node.
This way, anyone belonging to the "dialout" group can use the modem to dialout.
(take a look at /etc/group)

I did not want the script to allow full access of the modem to everyone without
"root" knowing.

Edit the 536ep-boot and 536ep-inst scripts to fit your needs.

-------------------------------------------------------------------------------
8. Compile issues
   a. this driver will now compile with the this path:
   /lib/modules/<kernel version>/build/include
   the 2.4.4+ kernels says to copy the /boot/vmlinuz.version.h
   over to the kernel build path.  I have the makefile do this
   if this file exists.  You must install the kernel source
   code anyways.  It should be on your distribution's CD.


-------------------------------------------------------------------------------
9.  What is the Hamregistry?
   The hamregistery is an application that stores data for the 536ep driver onto
   the disk.  hamregistry stores information from the driver that needs to
   persist from reboot to reboot such as you current country setting.
      The 536ep-inst install script and the 536ep-boot script start this utility
      automatically for you.
   If this tool is not present when the driver gets used your profile,
   quickconnect, and current country setting will not be saved but the driver
   should still work fine.        The only step that would need to be done is to
   make sure that the driver is set to the correct country with
   at+gci= (see section 5)


-------------------------------------------------------------------------------
10. What's v92 and v44?  

   a. modem on hold: (ISP and your ISP dialer must also support this)
      This will allow you to pause your ppp connection to answer an incoming
      call. You will need call waiting, dialer, and ISP support for this to
      work.  When you are done with the call you can resume your ppp connection
      without having to reconnect.  The AT command set for this feature exist
      in the driver.

   b, pcm upstream:
      (ISP must also support this, as of version 4.32 I
       dont know any ISP's that do)
      This will allow faster upload speeds.
      to enable: at+pig=0
      to disable: at+pig=1

   c. quickconnect:
      Once you make a call to a v92 modem, your phoneline characteristics are
      stored.  Whenever you make a new v92 connection it will use this data
      to make the call negotiation  quicker (approx 10 seconds).
      to enable: at+pqc=0  at+pss=0
      to disable: at+pss=2

   d. v44: (ISP must also support this)
      A better compression protocol than v42 which can give you better transfer
      speeds.

-------------------------------------------------------------------------------
11. The Hamregistry tool
   
   The hamregistry tool is used to provide persistance of settings across
   reboots.  The haminst and hamboot scripts automatically setup and start
   the hamregistry background task for the modem to use.
   The hamregistry tool has command line arguments for those who wish to
   customize persistant settings.  To use these command lines
   you must first stop the driver with "bash hamboot stop".
   Once the driver has been stopped you may run hamregistry with one of these
   arguments to store into the /etc/hamregistry.bin persistance file:
   (supply value for items in < >)
      -mfg <Modem manufactures name>
      -mod <Modem model name>
      -hookflash  <0,1,2>
        hookflash method:  0=(default)without tone  1=with tone  2=reserved
      -v92rptopt  <0,1>
        control v92 reporting:   0=PCM upsteam only       1=(default) all v92
      -gpio_lpohd <0,1>
        Handset Hook detection:  0=not supported          1=(default)supported
      -currentcountry <t.35 code>

   This info is written to the /etc/hamregistry.bin file.
   If hamregistry.bin exists along with the installation files, haminst will
   copy it to /etc/hamregistry.bin when installing the modem.

-------------------------------------------------------------------------------
12. Known Bugs/Issues

   a. If you see this message
      "536ep:rs_open: DSP did not reset. try again or restart computer"
      and you KNOW you have a HaM modem installed
      Disable "NP OS" in your bios.  There is a problem with the driver and
      linux PNP.  After a time, Linux PNP will disable the card and the driver
      currently can not reenable itself.
   b. Be aware that the build replaces your
      /lib/module/<kernver>//build/include/linux/version.h file with
      /boot/vmlinuz.version.h
      (this is what Linus T. told me to do with a compiler error)
   c. There may be an incompatibility with DevFS. The 536ep device may be located
      in /dev/tts/536ep
      instead of /dev/536ep.  Be aware of this and link /dev/modem to the 536ep
      device that corresponds to your setup.
   e. Incase you are having problems making a ppp connection try using wvidal
      with this information below. execute the script and it will have wvdial
      make the ppp connection

   ------my script----------------------
   #! /bin/sh
   /usr/sbin/pppd -detach lock asyncmap 00000000 \
      defaultroute debug /dev/modem 57600 \
      ipparam ppp0 linkname ppp0 \
      noauth \
      connect "/usr/bin/wvdial --chat bellsouth"

   ------my /etc/wvdial.conf section ---
   [Dialer bellsouth]
   Modem = /dev/modem
   Baud = 57600
   Init1 = ATZ
   Inti2 = ATQ0 V1 E1 S0=0 &C1 &D2
   Dial Command = ATDT
   Phone = 6859500
   Username = myloginname
   Password = mysecretpassword
   #Ask Password = 1
   Stupid Mode = 0
   ------------------


-------------------------------------------------------------------------------
13. Comments, ideas, problems, fixes? please contact:

Linux Voice Band Modems (VBM) of Intel Residential Access Division (RAD)

vbm.linux@intel.com
http://developer.intel.com/design/modems/

To restrict email volume, please email only development related issues that are
needed to fix a bug or improve the driver. General questions on how to use the
Linux may not be responed to.

Other resources and information on Linux controllerless modems can be found on
these usefull sites

http://www.linmodems.org
        and
http://linmodems.technion.ac.il
 楼主| 发表于 2003-6-20 13:35:27 | 显示全部楼层
是不是出错了,

[root@localhost Intel536-460-1-R90]#
insmod: a module named 536epcore already exists
[root@localhost Intel536-460-1-R90]# insmod -f 536ep.o
insmod: a module named 536ep already exists
[root@localhost Intel536-460-1-R90]#
发表于 2003-6-25 01:03:51 | 显示全部楼层
最初由 xjl98116 发表
是不是出错了,

[root@localhost Intel536-460-1-R90]#
insmod: a module named 536epcore already exists
[root@localhost Intel536-460-1-R90]# insmod -f 536ep.o
insmod: a module named 536ep already exists
[root@localhost Intel536-460-1-R90]#


这说明已经安装上驱动了。
设置一下KPPP就行了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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