LinuxSir.cn,穿越时空的Linuxsir!

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

请教在redhat 9下用modem(intel536ep)上网的问题

[复制链接]
发表于 2005-6-14 20:33:51 | 显示全部楼层 |阅读模式
查看硬件的芯片
# 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/ ... ID=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时也报错,但最后都能行的)
然后再执行 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的确是件快乐的事。。
发表于 2005-6-15 08:43:33 | 显示全部楼层
帮顶。我机器上也有这个卡,照着做了,也是同样的错误。我的是debian sarge,2.6.11.11
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-20 12:16:37 | 显示全部楼层
谢谢,已经有不少朋友遇到类似问题了。我正在大力推动这个问题的解决,我相信已经有很多朋友解决了这个问题的。就像最初装linux,apache,tomcat,mysql等等等,都有很多问题,但我想任何问题都有解决文字的。希望热心朋友帮助解答。。。。先谢过了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-24 17:41:16 | 显示全部楼层
问题解决,强制安装一次内核就能装上猫了。
但还是无法检测到modem。不知具体在linux下上网应该怎么做,都仔细看了教程啦。 按部做还是检测不好猫猫啊。minicom能行,但不知如何上网。。。。
回复 支持 反对

使用道具 举报

发表于 2005-6-24 18:17:38 | 显示全部楼层
你把其他的一些库装上啊。。。你的情况是根本没编译成功,从何谈起安装成功呢?
http://linmodems.technion.ac.il
用心看看,里面有很详细的编译过程
回复 支持 反对

使用道具 举报

发表于 2005-6-24 18:18:36 | 显示全部楼层
可能需要修改Makefile的。。。。情仔细看清readme再编译
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-26 13:04:01 | 显示全部楼层
我已经正确编译了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
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-26 13:09:48 | 显示全部楼层

以下是安装过程,现在不知道该如何拨号上网

无法查到 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/ ... ogle上搜搜,Intel 536EP driver,结果多的是,找到与自己内核(# uname -a 查看内核)相同的安装包.
http://www.intel.com/design/mode ... 536ep,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
回复 支持 反对

使用道具 举报

发表于 2005-6-27 06:22:35 | 显示全部楼层
先用wvdialconf /etc/wvdial.conf创建配置文件
然后看看readme,是不是有daemon要启动?
然后看看创建了哪个tty.....我的是/dev/ttySL0,你的应该不同,也可以做个symbol到/dev/modem,自己看情况处理,如果以上条件符合的话,wvdialconf会自动检测到modem设备,并写在wvdial.conf中。。然后手动修改wvdial.conf把用户名,密码什么的写上去。。。然后执行wvdial就可以了,基本上是自动的,不行的话,好像要在wvdial.conf加上一条stupid mode = on......作用是在dial以后自动起pppd
回复 支持 反对

使用道具 举报

发表于 2005-6-27 06:30:00 | 显示全部楼层
还有顺便提一下,如果系统没问题的话,不要一天到晚强行什么什么的,什么强行安装源码啊,错误以后再强行make install啊,都不是很好的习惯,每一步都确定对了就可以了,毕竟写驱动的人不是白痴。。。
你上面第三步错了,根本没找到module啊,接下来的怎么可以用呢。。。强行安装多次源码modules的目录可能不同了。。。看看/lib/modules/是不是有几个源码文件夹啦。。。。
自己看着办吧,留一个就好,
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
这三个模块记得留下来
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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