赞
踩
作者:卢浩
时间:2017.3.8
转载请注明出处
zynq7000的以太网控制器是买的cadence公司的ip,目前存在一些问题,大流量小包传输有可能会崩溃,但是这个并不常见,这主要是DMA控制器的bug,如果用户在使用过程中遇见以下打印信息,暂时可以先忽略过去,此时网卡会丢包,但是也可以勉强工作。
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
macb e000b000.ethernet eth0: DMA bus error: HRESP not OK
我们看一下此时网卡状态:
root@alvin:/work# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Link detected: yes
root@alvin:/work#
这个PS自带的以太网控制器,用户可以作为调试使用,不建议在实际项目中作为通讯口。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。