查看硬件的芯片
# lspci -v
发现modem能找到,显示如下
02:01.0 Communication controller: Intel Corp. 536EP Data Fax Modem
Subsystem: Intel Corp.: Unknown device 1005
Flags: bus master, medium devsel, latency 32, IRQ 5
Memory at ea000000 (32-bit, non-PRefetchable) [size=4M]
Capabilities: [e0] Power Management version 2
去intel下载536ep的驱动来,我下载了http://downloadfinder.intel.com/scripts-df-external/ProdUCt_Filter.aspx?ProductID=977&lang=zho
三个版本(我的是rh9,主要安装是rh9),然后按照readme提示,如下操作。
1. login as ROOT
#以root登录
2. extract the archive into a Directory with "tar -zxvf <archivename>.tgz"
#解压缩档案文件
3. cd into the directory it created.
#进入刚解压缩创建的文件夹
4. Type: make clean
#输入make clean,将那些个文件的后缀什么的都去掉了。
5. Type: make 536
#make 536编译536
6. Type: make install
#执行安装
可是问题出现了
输入make clean 如下:
[root@localhost intel-536EP-2.56.76.1]# make clean
cd coredrv; make clean
make[1]: Entering directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.1/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.1/coredrv'
rm -f *.o *.ko
输入make 536就报错了。说/lib/modules...没有 autoconf.h这个文件,我用find查下/lib/modules目录,有一堆这种文件。
[root@localhost intel-536EP-2.56.76.1]# make 536
Module precompile check
Current running kernel is: 2.4.20-8
/lib/modules... autoconf.h does not exist
please install kernel source
make: *** [check] Error 1
虽然报错,但学是抱着一线希望试下能否安装,,结果还是出错了。(有时装MySQL时也报错,但最后都能行的:P)
然后再执行 make install
[root@localhost intel-536EP-2.56.76.1]# make install
rm -f /etc/hamregistry.bin
bash Intel536_inst
running kernel 2.4.20-8
installing hamregistry, used for persistant storage
installing Intel536 driver
install: stat‘Intel536.o’失败: 没有那个文件或目录
make: *** [install] Error 1
用调制解调器上网,linux系统提示说还是找不到驱动,重启也没有用。三个版本均安装过。我的系统是redhat 9,内核是2.4.20.8。
不知道是什么原因导致问题的出现。盼望解答!谢谢!
虽然出现了问题,但总的说来还是进步了的,至少知道此款猫是Intel Corp. 536EP Data Fax Modem,而且是有驱动的,并不是厂商所言无接口之类。我想在Linux下拨号上网一定会实现了。。。感谢各位的帮助,,学习linux的确是件快乐的事。。
我已经正确编译了intel 536ep modem,可是还是上不了网。用互联网配置工具还是检测不到modem,可惜啊。再找些资料来看,完了把过程分享给大家。
[root@localhost dev]# /usr/bin/wvdial --chat bellsouth
也可以执行一下步骤,第一行就显示Intel536模块已加载
[root@localhost root]# lsmod
Module Size Used by Tainted: PF
Intel536 1040516 0 (unused)
再执行一下# dmesg命令,查看硬件及相关信息.
[root@localhost root]# dmesg grep tty
[root@localhost dev]# dmesg
PCI: Found IRQ 5 for device 02:01.0
PCI: Found IRQ 5 for device 02:01.0
[root@localhost root]# /usr/bin/wvdial --chat bellsouth
查看网络配置,
[root@localhost root]# ifconfig
[root@localhost root]# wvdial
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer Defaults] does not exist in wvdial.conf.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
以下是安装过程
无法查到 localhost 的互联网地址,这将妨碍 GNOME 正常操作。
把 localhost 加到 /etc/hosts 文件中也许能解决这个问题。
第一步,查看硬件信息,找到Intel Corp. 536EP Data Fax Modem,这一步很重要,凡是装硬件都应该先查看是什么芯片.而不只是理所当然的认自己购买时的牌子.
[root@localhost root]# lspci
找到536ep的猫
02:01.0 Communication controller: Intel Corp. 536EP Data Fax Modem
Subsystem: Intel Corp.: Unknown device 1005
Flags: bus master, medium devsel, latency 32, IRQ 5
Memory at ea000000 (32-bit, non-prefetchable) [size=4M]
Capabilities: [e0] Power Management version 2
第二步,找出redhat的第二张安装光盘安装内核,假如装了就不用在装.
[root@127 root]# cd /mnt/cdrom/RedHat/RPMS
[root@127 RPMS]# find ker*
kernel-doc-2.4.20-8.i386.rpm
kernel-source-2.4.20-8.i386.rpm
kernel-utils-2.4-8.29.i386.rpm
[root@127 RPMS]# rpm -ivh kernel-source-*
Preparing... ########################################### [100%]
package kernel-source-2.4.20-8 is already installed
第三步,下载Intel 536EP驱动,Intel官方下载地址:http://downloadfinder.intel.com/scri...??搜搜,Intel 536EP driver,结果多的是,找到与自己内核(# uname -a 查看内核)相同的安装包.
http://www.intel.com/design/modems/s...ep,537ep等等)
http://linmodems.technion.ac.il/packages/Intel/ (Linux下modem驱动下载地址,支持intel 536ep,537ep等等)
第四步,解压缩安装包,安装536EP Modem驱动
1. login as ROOT
#以root登录 [root@127 root]# cd /root/.gnome-desktop/Software/drivers
2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"
#解压缩档案文件 [root@127 drivers]# tar -zxvf intel-536ep-4.69-rh9-up.tgz
3. cd into the directory it created.
#进入刚解压缩创建的文件夹,仔细阅读readme.txt文件,这里有详悉说明
[root@127 Intel536-460]# cd /root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.0-rh9-UP
4. Type: make clean
#输入make clean
5. Type: make 536
#make 536编译536
6. Type: make install
#执行安装
这样执行以上三步后,一般就没问题了.但我一开始还是碰到了如下错误:
[root@127 intel-536EP-2.56.76.0-rh9-UP]# make clean
cd coredrv; make clean
make[1]: Entering directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.0-rh9-UP/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.0-rh9-UP/coredrv'
rm -f *.o *.ko
[root@127 intel-536EP-2.56.76.0-rh9-UP]# make 536
Module precompile check
Current running kernel is: 2.4.20-8
/lib/modules... autoconf.h does not exist
please install kernel source
make: *** [check] Error 1
[root@127 intel-536EP-2.56.76.0-rh9-UP]# make install
rm -f /etc/hamregistry.bin
bash Intel536_inst
running kernel 2.4.20-8
installing hamregistry, used for persistant storage
installing Intel536 driver
install: stat‘Intel536.o’失败: 没有那个文件或目录
make: *** [install] Error 1
[root@127 intel-536EP-2.56.76.0-rh9-UP]#
可能是前面装内核是有问题.之前我采取过如下措施.
安装内核时也试了一下方法.可依然没有用.
redhat下面的安装方法(估计)应该是这样的:
1 确认已经安装kernel-source,版本和当前运行的内核一致
2 cd /usr/src/linux-2.4
vi Makefile
把Makefile文件最前面和kernel version相关的4行内容根据现在运行内核版本修改好,一般把最后的custem去掉就行了
3 make mrproper
4 cp configs/xxxx.config .config xxxx根据你当前的内核选择CPU型号以及是否smp
5 make dep
6 然后再按照intel文档编译modem驱动
最后在红旗社区Subbo的帮助下,强制安装一次内核源码,就成功了.
# rpm -ivh kernel-source-2.4.20-8.i386.rpm --force
然后再执行前面的.
Type: make clean
#输入make clean
Type: make 536
#make 536编译536
Type: make install
#执行安装
starting module and utilities
depmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/char/536ep.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/char/Intel536.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/video/nvidia.o
done
第四步,接下来第四步就是上网了.
通过系统工具>互联网配置工具,通过调置解调器,让系统自动找到modem.
或在终端输入# minicom来上网.
[root@localhost root]# /usr/bin/wvdial --chat bellsouth
查看网络配置,
[root@localhost root]# ifconfig
[root@localhost root]# wvdial
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer Defaults] does not exist in wvdial.conf.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
返回OK表示猫可以拨号了.
[root@localhost dev]# /usr/bin/wvdial --chat bellsouth
也可以执行一下步骤,第一行就显示Intel536模块已加载
[root@localhost root]# lsmod
Module Size Used by Tainted: PF
Intel536 1040516 0 (unused)
再执行一下# dmesg命令,查看硬件及相关信息.
[root@localhost root]# dmesg grep tty
[root@localhost dev]# dmesg
PCI: Found IRQ 5 for device 02:01.0
PCI: Found IRQ 5 for device 02:01.0
lspci能检测到是intel 536ep modem
用wvdialconf自动创建.conf文件.会自动检测modem
[root@localhost bin]# wvdialconf /etc/wvdial.conf
Scanning your serial ports for a modem.
###自动创建是到USB15就停至了.
[root@localhost root]# wvdialconf /etc/wvdial.conf
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Port Scan<*1>: S2 S3 S4 S5 S6 S7 S8 S9
Port Scan<*1>: S10 S11 S12 S13 S14 S15 S16 S17
Port Scan<*1>: S18 S19 S20 S21 S22 S23 S24 S25
Port Scan<*1>: S26 S27 S28 S29 S30 S31 SA0 SA1
Port Scan<*1>: SA2 SC0 SC1 SC2 SC3 SI0 SI1 SI2
Port Scan<*1>: SI3 SI4 SI5 SI6 SI7 SI8 SI9 SI10
Port Scan<*1>: SI11 SI12 SI13 SI14 SI15 SR0 SR1 SR2
Port Scan<*1>: SR3 SR4 SR5 SR6 SR7 SR8 SR9 SR10
Port Scan<*1>: SR11 SR12 SR13 SR14 SR15 SR16 SR17 SR18
Port Scan<*1>: SR19 SR20 SR21 SR22 SR23 SR24 SR25 SR26
Port Scan<*1>: SR27 SR28 SR29 SR30 SR31 SR256 SR257 SR258
Port Scan<*1>: SR259 SR260 SR261 SR262 SR263 SR264 SR265 SR266
Port Scan<*1>: SR267 SR268 SR269 SR270 SR271 SR272 SR273 SR274
Port Scan<*1>: SR275 SR276 SR277 SR278 SR279 SR280 SR281 SR282
Port Scan<*1>: SR283 SR284 SR285 SR286 SR287 USB0 USB1 USB2
Port Scan<*1>: USB3 USB4 USB5 USB6 USB7 USB8 USB9 USB10
Port Scan<*1>: USB11 USB12 USB13 USB14 USB15
自己加个conf文件如下,结果出现没有拨号音.
#wvdial.conf文件
[Dialer Defaults]
Modem = /dev/modem
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+GCI=20
Dial Command = ATDT
Phone = 95788
Username = 95788
PassWord = 95788
#Ask Password = 1
Stupid Mode = 0
#############
[root@localhost root]# wvdial
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+GCI=20
AT+GCI=20
OK
--> Modem initialized.
--> Sending: ATDT95788a
--> Waiting for carrier.
ATDT95788
NO DIALTONE
--> No dial tone.
--> Disconnecting at Sat Jul 2 10:06:17 2005
[root@localhost root]#
###################配置向导激活时出错(如图),无法激活,能听见嘀的一声响然后有嘀的一声响,前一声与windows下拨号声音同,后一声与挂断声音相同.
Failed to activate ppp0 with error 8
[root@localhost dev]# /usr/bin/wvdial --chat bellsouth
也可以执行一下步骤,显示Intel536模块已加载
[root@localhost root]# lsmod
Module Size Used by Tainted: PF
Intel536 1040516 0
再执行一下# dmesg命令,查看硬件及相关信息.
[root@localhost dev]# dmesg grep tty
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
[root@localhost dev]# dmesg
PCI: Found IRQ 5 for device 02:01.0
PCI: Found IRQ 5 for device 02:01.0
要查看/dev/modem指向了何处
[root@localhost sbin]# file /dev/modem
/dev/modem: symbolic link to /dev/536ep
问题终于彻底解决,我现在就是在linux 9下上的网,很方便的喔. 特地过来高速大家一声,激动啊!!我想在windows下能用的东西,linux肯定也能用.的确这个过程让我回味...太感谢大家了.可惜原来的linux删除了,好多配置都要重来......但仍然很兴奋....
我去http://linmodems.technion.ac.il/packages/Intel/537/ 下载intel-537SP-2.37.50.1.tgz版本的驱动(其他版本估计也可以,我没有都试).安装后就能正常拨号,用互联网配置向导或wvdial或kppp都行.速度也很正常.同时也适用其他linux系统或版本.用这支猫的朋友不用担心在linux下上网了.
以下是查询ifconfig的信息.与windows下ipconfig一样噢.
[root@localhost intel-537SP-2.37.50.0]# ipconfig
bash: ipconfig: command not found
[root@localhost intel-537SP-2.37.50.0]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:29491 errors:0 dropped:0 overruns:0 frame:0
TX packets:29491 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2022507 (1.9 Mb) TX bytes:2022507 (1.9 Mb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:211.159.156.232 P-t-P:192.168.254.19 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:917 errors:1 dropped:0 overruns:0 frame:0
TX packets:810 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:469114 (458.1 Kb) TX bytes:96427 (94.1 Kb)
新闻热点
疑难解答