新裝 Sound Blaster 16 PnP 音效卡與 3Com 3c509 乙太網路卡在 Linux 2.0.23 (Slackware) 下均無法運作。核心偵測 3c509 時與音效卡裝置衝突,導致網卡也失效。
# 從 Red Hat FTP 或原始碼編譯
tar xzf isapnptools-1.8.tgz
cd isapnptools-1.8
make && make install
pnpdump > /etc/isapnp.conf
vi /etc/isapnp.conf
關鍵編輯點:
IRQ 5, DMA 1 & 5, I/O 0x220, 0x330, 0x388,啟用 (ACT Y)。IRQ 10 (避開網卡), I/O 0x300, 0x310,啟用 (ACT Y)。cd /usr/src/linux
make menuconfig
# Sound card support (M)
# SB16/AWE32 support (M)
# Network device support (M)
# 3Com 3c509 support (M)
make dep clean modules modules_install
depmod -a
/etc/rc.d/rc.M (Slackware 網路啟動前):
# 設定 ISA PnP 裝置 (在 hostname 設定後、網路啟動前)
/sbin/isapnp /etc/isapnp.conf
/etc/rc.d/rc.inet1 (網路啟動腳本最開頭):
# 載入 3c509 模組 (isapnp 已配置好資源)
/sbin/insmod 3c509
/etc/rc.d/rc.local (最後載入聲音):
/sbin/insmod sound
# 檢查資源分配
cat /proc/interrupts
cat /proc/ioports
cat /proc/dma
# 測試聲音
cat /dev/urandom > /dev/dsp # 噪音聲
# 測試網路
ifconfig eth0 up
ping gateway
pnpdump 產生的設定檔包含所有可選資源,**務必逐項檢查並啟用適當選項**。作者:Eric Z. Ayers | 版本 v1.0 (1997-01-14) | 環境:Slackware, Kernel 2.0.23 | 參考:Red Hat PnP 資訊頁 https://www.redhat.com/linux-info/pnp/