Install PCMCIA Card in Debian Woody
OS:
GNU/Linux Debian woody kernel 2.2.20-idepci
Hardward: Texas Instruments Extensa 610D Laptop
Buffalo LPC3-CLX 10/100 Ethernet card PCMCIA
原OS於安裝時已正確安裝 xircom CE3B-100BTX 10/100 ethernet PC Card.因該卡接口延長線接口鬆脫改用 BUFFALO LPC3-CLX 10/100 Ethernet card.但OS未能自動載入該卡所需模組,需經以下各步驟
0.取得系統CardBus控制器信息 -- lspci
debian:/sbin#lspci #系統原已正常使用PCMCIA卡此步可略。亦可以查得PCMCIA卡的芯片型號。
debian:#lspci
:
:
00:04.0 CardBus bridge: Texas Instruments PCI1131 (rev 01) #由PCMCIA HOW-TO得知支援該控制器.
00:04.1 CardBus bridge: Texas Instruments PCI1131 (rev 01)
:
debian:/sbin#lsmod
Module Size Used by
:
:
ds 6400 0
pcmcia_core 45824 0
:
pcmcia 模組已正確加載,若未能見到與PCMCIA網卡相關的模組,可判定該卡未能識別.
1.取得PCMCIA卡信息 -- cardctl ident
debian:/sbin#cardctl ident #不帶参數得知命令語法 -V: cardctl 版本
Socket 0:
no product info available #未插入任何卡
Socket 1:
product info: "BUFFALO", "LPC3-CLX 10/100 Ethernet","",""
manfid: 0x018a, 0x0301
function:6 (network)
2. 修改 /etc/pcmcia/config
因應需要加入或修改其中的項目,修改原則可参考該生產商提供資料,本例中Buffalo網頁http://buffalo.melcoinc.co.jp/taiou/os/linux/4537.html有以下一段內容:(由此得到啟發去修改...)
Device "axnet_cs" #查看/etc/pcmcia/config檔中早已存在
class "network" module "axnet_cs"
card "BUFFALO LPC3-CLX Fast Ethernet Card"
version "BUFFALO", "LPC3-CLX 10/100 Ethernet"
bind "axnet_cs"
手工輸入card該段。注意:雙引號"... "中的內容必須與cardctl ident 完全一致。
注意: /etc/pcmcia/config檔中, 原已存在一段關於 Buffalo LPC-CLX 10/100 Ethernet Card 的項目, 但發覺其
manfid 與cardctl ident 不同, 此可能是導致未能正確識別原因.
3.再次運行cardctl insert 可先用eject参數移除.
若設置正確,可以見到系統顯示該卡的信息如型號(本例中顯示為Asix AX88190...)或MAC address.
亦可由lsmod得知模組能否改加載.
4.設置 ip address.
edit the /etc/network/interfaces
debian:/etc/network#vi interfaces
# /etc/network/interfaces # configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
# The ethernet NIC
# automatically added when upgrading
auto eth0 #frist ethernet card. auto while bootup may cause conflict.
iface eth0 inet dhcp # use dhcp
auto eth1 #second ethernet card.
iface eth1 inet static #static ip
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
use Esc:wq! to save
每次用cardctl insert 或插入PCMCIA LAN Card後,系統cardmgr/pcmcia_core會load適當的模組,調用Script:/etc/pcmica/network,用上述interfaces的設定值去設置網卡.
参考:
PCMCIA-HOWTO by David Hinds Dec2003 v2.119.29
http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO.html
Debian 無痛起步法 ( 線上最新版 )
陳漢儀, moto@chuany.net
最後更新日期 : 2002.10.18
http://www.huihoo.com/gnu_linux/debian/tutorial/Debian-Install-Guide.html
Saturday, December 04, 2004
Subscribe to:
Post Comments (Atom)
1 comment:
不知什麼原因,每次開機均未能正確設置IP地址,須手動ifdown/ifup.
懷疑debian bootup network confiig file 與 pcmcia network 之間不恊調.
...
經測試及man interfaces 把開機自動啟動網卡選項停用:
#/etc/network/interfaces -- config file for ifup..down
auto lo
..
auto eth0 #auto up while system bootup.
iface eth0...
刪除auto eth0 一行, 可以解決該問題, 並且開機仍能依照/etc/network/interfaces設置網卡地址.
Post a Comment