dm9ks_linux
所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:15KB
下载次数:49
上传日期:2008-07-14 09:40:50
上 传 者:
sandallevi
说明: 这是dm9000的linux驱动,还包含linux24,linux26下的makefile,希望对需要的人有一定的参考
(This is the linux driver dm9000, also includes linux24, linux26 under makefile, hope to people in need of some reference)
文件列表:
dm9ks_20080214\dm9ks.c (44677, 2008-02-14)
dm9ks_20080214\Makefile (484, 2006-09-20)
dm9ks_20080214\Makefile_linux24x (2494, 2008-02-14)
dm9ks_20080214\Makefile_linux26x (18, 2006-09-20)
DAVICOM Semiconductor Inc. 05/30/2007
A Davicom DM9010/DM9000A fast ethernet driver for Linux.
Copyright (C) 1997 2007 Sten Wang ,Jackal Huang
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.
kernel source tree (supported versions 2.4.x or 2.6.x)
compiler/binutils for kernel compilation
B-1: Login as root.
B-2: Untar/unzip archive:
tar -zxvf dm9ks_x.x.tar.gz
B-3: Change to the directory
cd dm9000a
B-4: Compile the driver module
-Kernel 2.4
Please according to your system to pick one.
make ;;Without SMP support
make mod ;;Set version info on all module symbol
make smp ;;symmetric multi-processing(SMP) support
make smp_mod ;;SMP & Set version info on module
make checksum ;;Set TX/RX Checksum offload
-Kernel 2.6
make
B-5: Install the module:
MUST insert mii.ko module into the kernel image
-Kernel 2.4
insmod dm9ks.o =
-Kernel 2.6
insmod dm9ks.ko =
B-6: Assign an IP address to the interface by entering the following,
where x is the interface number:
ifconfig ethx
B-7: Verify that the interface works. Enter the following, where
is the IP address for another machine on the
same subnet as the interface that is being tested:
ping
If the driver is built as a module, the following optional parameters are
used by entering them on the command line with the modprobe or insmod command
using this syntax:
insmod dm9ks.[k]o [=,,...]
The default value for each parameter is generally the recommended setting,
unless otherwise noted.
C-1: Intro parameters
- irq (IRQ number)
default value :3
ex.
insmod irq=5 ;;inster module with irq number=5
- iobase (I/O base adddress)
default value: the program will reach from 0x300 to 0x370 automatically.
ex.
insmod iobase=0x310 ;;inster module with I/O base address=0x310
- mode (Media Speed)
default value: Auto Detection
ex.
insmod dm9ks.o ;;Auto Detection Mode
insmod dm9ks.o mode=0 ;;Force 10M Half Duplex
insmod dm9ks.o mode=1 ;;Force 100M Half Duplex
insmod dm9ks.o mode=4 ;;Force 10M Full Duplex
insmod dm9ks.o mode=5 ;;Force 100M Full Duplex
C-2: For Redhat, You can use the following to Activate NIC
1. login as root.
2. copy dm9ks.[k]o into /lib/modules/2.4.x[2.6.x]/kernel/drivers/net/
3. add the new line with "alias ethx dm9ks" in "/etc/module.conf".
4. execute "netconfig -d ethx".
5. Fill your IP address, netmask and gateway
6. press to confirm and exit this setting
7 reboot
DAVICOM Web-Site: www.davicom.com.tw
近期下载者:
相关文件:
收藏者: