D-Link DFE-530TX RevB 新增了 WOL 功能,但原始 via-rhine 驅動程式無法直接支援這款網卡。若要在 Linux 2.2 核心環境下使用它,需要對核心原始碼做小幅修改,並重新編譯。
首先,在 drivers/net/via-rhine.c 的 pci_tbl 中加入 RevB 的裝置代碼 0x3065,並將修改後的檔案另存為 via-rhineB.c。接著修改 Config.in,加入 VIA Rhine RevB support 選項;再修改 Makefile,讓新驅動能被打進核心或編譯成模組。
完成修改後,執行 make menuconfig,在網路裝置支援中找到 VIA Rhine RevB support。選擇內建或模組後,依序執行 make dep、make BzImage、make modules 與 make modules_install。
可透過 /proc 查看網卡的 Vendor id 與 Device id。RevA 通常為 3043,RevB 為 3065。若使用模組,在 /etc/modules.conf 中加入 alias eth0 via-rhine 與 alias eth1 via-rhineB,並指定 io 與 irq。若直接內建核心,則需在 /etc/lilo.conf 中加入 ether 參數。
資料來源:https://www.linuxorb.net