|
发表于 2005-7-1 20:59:52
|
显示全部楼层
第一步,查看硬件信息,找到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 查看内核)相同的安装包.我用的是RedHat Linux 9下载了intel-536ep-4.69-rh9-up.tgz以及intel-536ep-4.69-rh9-smp.tgz.
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-smp.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-SMP
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-SMP]# make clean
cd coredrv; make clean
make[1]: Entering directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.0-rh9-SMP/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.0-rh9-SMP/coredrv'
rm -f *.o *.ko
[root@127 intel-536EP-2.56.76.0-rh9-SMP]# 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-SMP]# 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-SMP]#
可能是前面装内核是有问题.之前我采取过如下措施.
安装内核时也试了一下方法.可依然没有用.
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
再执行一下# 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
注意: 如果编译后还不能工作.可以执行如下操作.
0. log in as root.
1. insmod -f Intel536.o (Intel536.ko for kernel 2.6)
2. you can start "hamregistry &" at this point if you wish.
[root@localhost intel-536EP-2.56.76.0-rh9-SMP]# hamregistry &
[2] 9847
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.
[root@localhost root]# ps ax | grep pppd
4958 ttyS2 S 0:00 pppd lock modem crtscts asyncmap 00000000 defaultroute usepeerdns user 95788 remotename ppp0 nodetach /dev/ttyS2 57600 ipparam ppp0 linkname ppp0 call ppp0 noauth
4988 pts/0 S 0:00 grep pppd
出错了
[root@localhost intel-536EP-2.56.76.0-rh9-UP]# wvdial
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer Defaults] does not exist in wvdial.conf.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT95788
--> Waiting for carrier.
ATDT95788
NO DIALTONE
--> No dial tone.
--> Disconnecting at Mon Jun 27 22:23:16 2005 |
|