歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 在redhat 9下用modem(intel536ep)上網

在redhat 9下用modem(intel536ep)上網

日期:2017/2/27 9:30:27   编辑:更多Linux

查看硬件的芯片# lspci -v

發現modem能找到,顯示如下02:01.0 Communication controller: Intel Corp. 536EP Data Fax ModemSubsystem: Intel Corp.: Unknown device 1005Flags: bus master, medium devsel, latency 32, IRQ 5Memory 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 cleancd coredrv; make cleanmake[1]: Entering directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.1/coredrv'rm -f *.ko *.o *~ coremake[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 536Module precompile checkCurrent running kernel is: 2.4.20-8/lib/modules... autoconf.h does not existplease install kernel sourcemake: *** [check] Error 1

雖然報錯,但學是抱著一線希望試下能否安裝,,結果還是出錯了。(有時裝mysql時也報錯,但最後都能行的:P)然後再執行 make install[root@localhost intel-536EP-2.56.76.1]# make installrm -f /etc/hamregistry.binbash Intel536_instrunning kernel 2.4.20-8installing hamregistry, used for persistant storageinstalling Intel536 driverinstall: 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]# lsmodModule Size Used by Tainted: PFIntel536 1040516 0 (unused)再執行一下# dmesg命令,查看硬件及相關信息.[root@localhost root]# dmesg grep tty[root@localhost dev]# dmesgPCI: Found IRQ 5 for device 02:01.0PCI: 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: ATZATZOK

以下是安裝過程無法查到 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 ModemSubsystem: Intel Corp.: Unknown device 1005Flags: bus master, medium devsel, latency 32, IRQ 5Memory 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.rpmkernel-source-2.4.20-8.i386.rpmkernel-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/drivers2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"#解壓縮檔案文件 [root@127 drivers]# tar -zxvf intel-536ep-4.69-rh9-up.tgz3. 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-UP4. Type: make clean#輸入make clean5. Type: make 536#make 536編譯5366. Type: make install#執行安裝

這樣執行以上三步後,一般就沒問題了.但我一開始還是遇到了如下錯誤:

[root@127 intel-536EP-2.56.76.0-rh9-UP]# make cleancd coredrv; make cleanmake[1]: Entering directory `/root/.gnome-desktop/Software/drivers/intel-536EP-2.56.76.0-rh9-UP/coredrv'rm -f *.ko *.o *~ coremake[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 536Module precompile checkCurrent running kernel is: 2.4.20-8/lib/modules... autoconf.h does not existplease install kernel sourcemake: *** [check] Error 1[root@127 intel-536EP-2.56.76.0-rh9-UP]# make installrm -f /etc/hamregistry.binbash Intel536_instrunning kernel 2.4.20-8installing hamregistry, used for persistant storageinstalling Intel536 driverinstall: 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.4vi Makefile把Makefile文件最前面和kernel version相關的4行內容根據現在運行內核版本修改好,一般把最後的custem去掉就行了3 make mrproper4 cp configs/xxxx.config .config xxxx根據你當前的內核選擇CPU型號以及是否smp5 make dep6 然後再按照intel文檔編譯modem驅動

最後在紅旗社區Subbo的幫助下,強制安裝一次內核源碼,就成功了.# rpm -ivh kernel-source-2.4.20-8.i386.rpm --force然後再執行前面的.Type: make clean#輸入make cleanType: make 536#make 536編譯536Type: make install#執行安裝starting module and utilitiesdepmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/char/536ep.odepmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/char/Intel536.odepmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/video/nvidia.odone

第四步,接下來第四步就是上網了.通過系統工具>互聯網配置工具,通過調置解調器,讓系統自動找到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: ATZATZOK返回OK表示貓可以撥號了.[root@localhost dev]# /usr/bin/wvdial --chat bellsouth也可以執行一下步驟,第一行就顯示Intel536模塊已加載[root@localhost root]# lsmodModule Size Used by Tainted: PFIntel536 1040516 0 (unused)再執行一下# dmesg命令,查看硬件及相關信息.[root@localhost root]# dmesg grep tty[root@localhost dev]# dmesgPCI: Found IRQ 5 for device 02:01.0PCI: Found IRQ 5 for device 02:01.0

lspci能檢測到是intel 536ep modem

用wvdialconf自動創建.conf文件.會自動檢測modem[root@localhost bin]# wvdialconf /etc/wvdial.confScanning your serial ports for a modem.###自動創建是到USB15就停至了.[root@localhost root]# wvdialconf /etc/wvdial.confScanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baudttyS0<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baudttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baudttyS0<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baudttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baudttyS1<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baudttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baudttyS1<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baudttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.Port Scan<*1>: S2 S3 S4 S5 S6 S7 S8 S9Port Scan<*1>: S10 S11 S12 S13 S14 S15 S16 S17Port Scan<*1>: S18 S19 S20 S21 S22 S23 S24 S25Port Scan<*1>: S26 S27 S28 S29 S30 S31 SA0 SA1Port Scan<*1>: SA2 SC0 SC1 SC2 SC3 SI0 SI1 SI2Port Scan<*1>: SI3 SI4 SI5 SI6 SI7 SI8 SI9 SI10Port Scan<*1>: SI11 SI12 SI13 SI14 SI15 SR0 SR1 SR2Port Scan<*1>: SR3 SR4 SR5 SR6 SR7 SR8 SR9 SR10Port Scan<*1>: SR11 SR12 SR13 SR14 SR15 SR16 SR17 SR18Port Scan<*1>: SR19 SR20 SR21 SR22 SR23 SR24 SR25 SR26Port Scan<*1>: SR27 SR28 SR29 SR30 SR31 SR256 SR257 SR258Port Scan<*1>: SR259 SR260 SR261 SR262 SR263 SR264 SR265 SR266Port Scan<*1>: SR267 SR268 SR269 SR270 SR271 SR272 SR273 SR274Port Scan<*1>: SR275 SR276 SR277 SR278 SR279 SR280 SR281 SR282Port Scan<*1>: SR283 SR284 SR285 SR286 SR287 USB0 USB1 USB2Port Scan<*1>: USB3 USB4 USB5 USB6 USB7 USB8 USB9 USB10Port Scan<*1>: USB11 USB12 USB13 USB14 USB15



自己加個conf文件如下,結果出現沒有撥號音.#wvdial.conf文件[Dialer Defaults]Modem = /dev/modemBaud = 115200Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0Init3 = AT+GCI=20Dial Command = ATDTPhone = 95788Username = 95788PassWord = 95788#Ask Password = 1Stupid Mode = 0

#############[root@localhost root]# wvdial--> WvDial: Internet dialer version 1.53

--> Initializing modem.--> Sending: ATZATZOK--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0OK--> Sending: AT+GCI=20AT+GCI=20OK--> Modem initialized.--> Sending: ATDT95788a--> Waiting for carrier.ATDT95788NO 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]# lsmodModule Size Used by Tainted: PFIntel536 1040516 0再執行一下# dmesg命令,查看硬件及相關信息.[root@localhost dev]# dmesg grep ttyttyS0 at 0x03f8 (irq = 4) is a 16550AttyS1 at 0x02f8 (irq = 3) is a 16550A[root@localhost dev]# dmesgPCI: Found IRQ 5 for device 02:01.0PCI: 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]# ipconfigbash: ipconfig: command not found[root@localhost intel-537SP-2.37.50.0]# ifconfiglo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0UP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:29491 errors:0 dropped:0 overruns:0 frame:0TX packets:29491 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:2022507 (1.9 Mb) TX bytes:2022507 (1.9 Mb)

ppp0 Link encap:Point-to-Point Protocolinet addr:211.159.156.232 P-t-P:192.168.254.19 Mask:255.255.255.255UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1RX packets:917 errors:1 dropped:0 overruns:0 frame:0TX packets:810 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:3RX bytes:469114 (458.1 Kb) TX bytes:96427 (94.1 Kb)







Copyright © Linux教程網 All Rights Reserved