最近在做NIOS+uClinux+DM9000驱动出错如下:
为什麽会:
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
以下为启动时的信息,网卡已经找到了,但是就是不能接受发送包
Linux version 2.6.11-uc0 (Administrator@zhang) (gcc version 3.4.1 (Altera Nios I
I 5.1 b93)) #53 Thu Jun 12 18:45:58 2008
uClinux/Nios II
Altera Nios II support ? 2004 Microtronix Datacom Ltd.
setup_arch: No persistant network settings signature at 017F0000
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 ro
PID hash table entries: 128 (order: 7, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 14464k/16384k RAM, 0k/0k ROM (1447k kernel code, 294k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
Serial: JTAG UART driver $Revision: 1.4 $
ttyJ0 at MMIO 0x819010f0 (irq = 5) is a jtag_uart
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
dmfe_probe:eth0, 50000 Khz Nios
the iobase is:0x1901000
eth0 I/O: 1901000, VID: 90000a46
ADDR: 00:07:ed:00:00:00
dmfe: dmfe_get_stats 0
dmfe_probe:eth1, 50000 Khz Nios
Microtronix map: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using Microtronix development partition definition
Creating 2 MTD partitions on "Microtronix map":
0x00200000-0x00800000 : "romfs"
0x00000000-0x00200000 : "loader/kernel"
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 60k freed (0x194000 - 0x1a2000)
expand: from=/ramfs.img to=/dev/ram0
expand: from=/ramfs.img to=/dev/ram1
/etc/issue www.microtronix.com June 2005
Welcome to Linux on the Nios II
Nios2 login: nios
nios
Password: uClinux
# ifconfig eth0
ifconfig eth0
dmfe: dmfe_get_stats 0
eth0 Link encap:Ethernet HWaddr 00:07:ED:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Interrupt:3 Base address:0x1000
# ifconfig eth0 192.168.0.10
ifconfig eth0 192.168.0.10
dmfe: dmfe_open 0
dmfe: dmfe_init_dm9000() 0
dmfe_init_dm9000: FEH REG=0
dmfe: dm9000_hash_table() 0
dmfe: dm9000_hash_table() 0
dmfe: dmfe_get_stats 0
dmfe: dm9000_hash_table() 0
dmfe: dm9000_hash_table() 0
dmfe: dmfe_get_stats 0
# dmfe: dmfe_timer() 0
dmfe: dmfe_init_dm9000() 0
dmfe_init_dm9000: FEH REG=0
dmfe: dm9000_hash_table() 0
ifcdmfe: dmfe_timer() 0
onfig dmfe: dmfe_timer() 0
downdmfe: dmfe_timer() 0
ifconfig down
dmfe: dmfe_get_stats 0
down: error fetching interface information: Device not found
# dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
ifcodmfe: dmfe_timer() 0
nfigg dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
if
ifconfigg if
ifconfigg: not found
# dmfe: dmfe_timer() 0
ifconfdmfe: dmfe_timer() 0
ig etdmfe: dmfe_timer() 0
h0
ifconfig eth0
dmfe: dmfe_get_stats 0
eth0 Link encap:Ethernet HWaddr 00:07:ED:00:00:00
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Interrupt:3 Base address:0x1000
# dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
fidmfe: dmfe_timer() 0
dmfe: dmfe_timer() 0
fi
syntax error
# ifcodmfe: dmfe_timer() 0
nfig eth0dmfe: dmfe_timer() 0
down
dmfe: dmfe_timer() 0
ifconfig eth0 down
dmfe: dm9000_hash_table() 0
dmfe: dmfe_stop 0
Uninitialised timer!
This is just a warning. Your computer is OK
function=0x00000000, data=0x0
Stack from 00dcbe7c:<0>
<0> 00000000<0> 00011ed8<0> 001ef278<0> 00011f18<0> 001ef000<0> 000c5054<
0> 0021810c<0> 001ef024<0>
<0> 00001042<0> 000e6e18<0> 00000000<0> 00001003<0> 00001042<0> 001ef000<
0> 000e85b0<0> ffffff9d<0>
<0> 00008914<0> 001e18a0<0> 00218100<0> 00125c18<0> 30687465<0> 00000000<
0> 00da6bcc<0> 00000000<0>
<0> 00db1042<0> 00000004<0> 00db2558<0> 00000002<0> 00db1042<0> 00000004<
0> 00db2558<0> 00000002<0>
<0> 00dbfdec<0> 00dbfea8<0> 00d804b0<0> 00008914<0> 00d8053c<0> 00000000<
0> 00dbfdec<0> 00dbfdec<0>
<0> 00008914<0> 00db25d8<0> 0012702c<0> 00212300<0> ffffffbf<0> 000dd1dc<
0> 3830365b<0> ffff005d<0>
Call Trace:<0>
<0> [<00000002>]<0> [<00000000>]<0> [<00000004>]<0> [<0004de30>]<0>
<0> [<0004df38>]<0> [<00000003>]<0> [<00000001>]<0> [<000dd760>]<0>
<0> [<00000000>]<0> [<0004e1ac>]<0> [<00000000>]<0> [<00000000>]<0>
<0> [<00000003>]<0> [<00000001>]<0> [<000003c8>]<0> [<00008914>]<0>
<0> [<00000004>]<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000036>]<0> [<00000004>]<0>
<0> [<00008914>]<0> [<00000000>]<0> [<00000001>]<0> [<00000000>]<0>
dmfe: dmfe_get_stats 0
dmfe: dmfe_get_stats 0
# ifconfig
ifconfig
dmfe: dmfe_get_stats 0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
# ifconfig eth0
ifconfig eth0
dmfe: dmfe_get_stats 0
eth0 Link encap:Ethernet HWaddr 00:07:ED:00:00:00
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Interrupt:3 Base address:0x1000
#
就是 我用ifconfig eth0 命令时
出现
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:07:ED:00:00:00
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Interrupt:3 Base address:0x1000
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX packets不应该为0的
〖LEADTREND〗 LD7535BL LD7575PS LD7576 LD7552 等等
〖WINBOND〗 W25X16V W25X20 W25X40AV W25X80 等等
〖DAVICOM〗 DM9000AEP/BEP/EP DM9161AEP/EP DM9102DEP 等等
〖SAMSUNG〗 S3C44BOX01 S3C2410AL-20/26 S3C2440AL-40 等等
〖PHILIPS〗 UDA1341TS SAA7121H SAA7113H SAA7131E 等等
供应商:深圳市腾盛科技有限公司
网 站:http://www.sztsic.com/
电 话:0755-61329316,61329587
传 真:0755-61329587
E-MAIL:liancarol@126.com
NSM :liancarol@live.cn QQ:455026927
地 址:深圳福田新亚洲电子城1A097
您好,不知道前面各位的问题解了没,你们说的问题小弟并不太懂,但我们目前是divacom在中国区域的总代理,从03年来一直专注于做DM9000及DIVACOM全线产品,对于研发来说,首先是产品质量有保证(为当年全新原装最新版本),我们有齐备的资料,然后通过我们可以找到原厂的工程师做技术支持(),当然,是免费提供的,说不定我能帮得上大家的忙,以下是我的联系方式 QQ:1259987438 电话:027-8765163610 (0)13554272382 王洪武