dm9000

所属分类:嵌入式Linux
开发工具:Unix_Linux
文件大小:653KB
下载次数:33
上传日期:2008-08-24 13:18:55
上 传 者yanantian95
说明:  2.4内核的arm2410的dm9000驱动代码,参考革新2410实验箱上的代码改写的!
(2.4 kernel arm2410 the dm9000 driver code, refer to the experimental box innovation 2410 rewrite of the code!)

文件列表:
dm9000\dm9000\dm9000x_c.txt (36041, 2007-09-26)
dm9000\dm9000\Makefile.txt (4007, 2007-09-26)
dm9000\dm9000\S3C2410__LCD_y_ˉ3ìDòμ_ò__2_°GUI3ìDò±àD′_pdf.txt (214073, 2007-09-26)
dm9000\dm9000x_c.txt (36041, 2007-09-26)
dm9000\Makefile.txt (4007, 2007-09-26)
dm9000\S3C2410%CF%C2LCD%C7%FD%B6%AF%B3%CC%D0%F2%B5%C4%D2%C6%D6%B2%BC%B0GUI%B3%CC%D0%F2%B1%E0%D0%B4_pdf (287152, 2007-09-26)
dm9000\S3C2410__LCD_y_ˉ3ìDòμ_ò__2_°GUI3ìDò±àD′_pdf.pdf (214073, 2007-09-26)
dm9000\dm9000 (0, 2008-08-24)
dm9000 (0, 2008-08-24)

DAVICOM Semiconductor Inc. 05/16/2003 A Davicom DM9000 fast ethernet driver for Linux. Copyright (C) 1997 Sten Wang 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. Now dm9000x.c is for kernel 2.4.x. dm9000.c is for kernel 2.2.x. v1.22Beta modify Power-on reset and 32-bit mode bugs fix. A. Compiler command: A-1: For normal single processor kernel "gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -c dm9000x.c" A-2: For single processor and set version info on all module symbol "gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -c dm9000x.c" A-3: For multiple processors(SMP) and set ver. info. on all module symbol "gcc -D__SMP__ -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux /include -Wall -Wstrict-prototypes -O6 -c dm9000x.c" Note: O of -O6 is a capital "o", not a "0". B. How to compile driver B-1: Login by supervisor B-2: Copy dm9000x.c and Makefile into your HD. You can make a new directoty to put. B-3: Keep driver source file name as "dm9000x.c" and makefile name as "Makefile" B-4: You can type the following command to compile driver. Please according to your system to pick one. make org ;;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 org24 ;;Set Emulation 32 bits mode make automdix ;;Set Auto-MDIX function Or you can type above compiler command to compile driver. Note: Please check you must have the right kernel source on "/usr/src/linux". C. The following steps teach you how to activate NIC: C-1: A simple and temporary method 1. Used the upper compiler command to compile dm9000.c 2. Insert DM9000 module into kernel "insmod dm9000x.o" ;;Auto Detection Mode (Suggest) "insmod dm9000x.o mode=0" ;;Force 10M Half Duplex "insmod dm9000x.o mode=1" ;;Force 100M Half Duplex "insmod dm9000x.o mode=4" ;;Force 10M Full Duplex "insmod dm9000x.o mode=5" ;;Force 100M Full Duplex "insmod dm9000x.o mode=0x10" ;;Force 1M HomePNA "insmod dm9000x.o SF_mode=1" ;;VLAN Enable "insmod dm9000x.o SF_mode=2" ;;Flow Control Enable "insmod dm9000x.o SF_mode=4" ;;TX Pause Packet Enable NOTE:1. SF_mode can be a combination of 3 special mode. 2. You can type "man insmod" to see more description. 3. Config a DM9000 network interface "ifconfig eth0 172.22.3.18" ^^^^^^^^^^^ Your IP address NOTE: 1. You can type "man ifconfig" to see more description. 2. If eth0 has been used, you should use eth1 instead. 4. Activate the IP routing table. For some distributions, it is not necessary. You can type "route" to check. "route add default netmask 255.255.255.0 eth0" NOTE: 1. You can type "man route" to see more description. 2. If eth0 has been used, you should use eth1 instead. 5. Well done. Your DM9000 adapter actived now. Note. This is a temporary method. After you reboot the system, you will lost t

近期下载者

相关文件


收藏者