瘟貓和Linux配置實作指南(二)
如果能對大家有幫助的話,以下就是我的/etc/isapnp.conf文件的摘錄(我已經在文件當中註釋了,原文件的註釋以##打頭)
--------------------------------------------------------------------------------
# Snip details ...
## (DEBUG)
(READPORT 0x0203)
(ISOLATE PRESERVE)
(IDENTIFY *)
(VERBOSITY 2)
(CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING
# 我的貓卡的辯識信息
## Card 1: (serial identifier e2 00 00 01 00 05 50 c3 1e)
## Vendor Id GVC5005, Serial Number 256, checksum 0xE2.
## Version 1.0, Vendor version 0.1
## ANSI string -->LT Win Modem<--
##
## Logical device id HSM0140
## Device support I/O range check register
#
# 我們要配置 GVC5005/256 卡
(CONFIGURE GVC5005/256 (LD 0
# I/O Base address 0x03f8, with a range of 8
(IO 0 (SIZE 8) (BASE 0x03f8) )
# IRQ 4
(INT 0 (IRQ 4 (MODE +E)))
# DMA 5
(DMA 0 (CHANNEL 5))
# DMA 7
(DMA 1 (CHANNEL 7))
# I/O Base Address 2 0x0100, range 8
(IO 1 (SIZE 8) (BASE 0x0100) )
# 卡的名稱
(NAME "GVC5005/256[0]{LT Win Modem }")
# 激活之
(ACT Y)
# 結束配置
))
######## The parameters for my other ISA devices ##############
## Returns all cards to the "Wait for Key" state
(WAITFORKEY)
3. 安裝貓的驅動程序
您沒有必要完全閱讀本節段,只需要匹配您的貓的部分就可以了。目前,我只通過使用朗訊(Lucent)和開源驅動程序來講述如何安裝LT貓。如果您已經編寫了或者使用了其它的瘟貓驅動程序,無論是閉源還是開源的,都給我放一個過來吧(我的email地址是:alexandre12@mageos.com),然後我就可以把它放到這個節段當中來。
3.1 LT牌瘟貓(來自朗訊科技Lucent)
鏈接URL:http://www.linmodems.org/linux568.zip
作者:Lucent Technologies
版權協議:非GPL
支持範圍:使用朗訊(Lucent)晶元的ISA/PCI貓,該晶元屬於Mars系列
特性:內核模塊化; 串口模擬。支持PPP、Fax 和 Voice
最新版本(據我所知):5.68
相關文檔:README
系統要求:版本號不低於2.2.12的且支持模塊載入的RedHat內核
使用方法:先解壓縮軟體包(請執行'unzip linux568.zip'),然後執行./ltinst即可。
問題:
'insmod: ltmodem: Unresolved symbol(s) *****': You have not a kernel matching with ltmodem. Get the 2.2.12 kernel from ftp.kernel.org, compile and install it
'Warning: kernel version mismatch...": It is simply because ou have not the 2.2.12-20 kernel. It's only a warning, and it doesn't make the modem failing
'ltmodem: init_module: device or resource busy':
您安裝的貓不是lt貓或者兼容貓
如果您的貓是ISA介面的,原因可能是沒有使用isapnp配置過
如果您的貓是PCI介面的,可能是內核當中沒有配置PCI支持
3.2 LTMODEM程序(開源的驅動程序)
鏈接URL: http://www.close-u-net.com
作者: Richard Close and Pavel Machek
版權協議:GPL
支持範圍:使用朗訊(Lucent)晶元的ISA/PCI貓,該晶元屬於Mars系列
特性: 用戶級(user-space)的驅動程序; 支持語音電話(Voice call)?不支持PPP(V90)
最新版本(據我所知):0.9.2
相關文檔:README
系統要求:gcc編譯器、automake
使用方法:
PCI: make ; make install - 然後使用'ltmodem'程序來和貓通訊
ISA: (請閱讀README.ISA說明文件)mv Makefile Makefile.PCI ; mv Makefile.ISA Makefile ?然後編輯config.h並變更貓的(I/O Address、DMA、IRQ)當前數值; make ; make install - 然後使用'ltmodem'程序來和貓通訊。
4. 結束...
4.1 版權協議,版權所有
Copyright (C) 2000 Alexandre J.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4.2 聯繫信息
如果您對本文檔有什麼建議,請慷慨一些給我丟個紙條吧:alexandre12@mageos.com.
如果您對本文的翻譯有什麼看法或建議,也請慷慨些給中譯版翻譯者(linuxrat@gnuchina.org或者lich1@263.net)丟個紙條吧.
4.3 資源
Linmodems工程主頁:http://www.linmodems.org
LTModem工程主頁:http://www.close-u-net.com
朗訊科技(Lucent Technologies)工程主頁:http://www.lucent.com
Linux內核主頁:http://www.kernel.org
ISA工具集(isapnptools)主頁:http://www.roestock.demon.co.uk/isapnptools
Linux文檔工程LDP的主頁(獲取HOWTO文檔的地方):http://www.redhat.com/mirrors/LDP
問題:
"Sorry, I can't found any modem...":
You have not LT modem
You have an ISA modem not configured by isapnp
You have an ISA modem configured ; but ltmodem was not compiled as ISA
You have a PCI modem with no PCI support included in the kernel
You have a PCI modem and a compliant kernel, but ltmodem was not compiled as PCI