Part Number:DP83848K
DP83848K,RMII模式,有两个问题:
1. 自动协商只能工作在10M速率,强制调到100M不工作了。
2. 会有丢包。板子断电重启后,有时丢包很严重(50%左右),有时很低(5%)甚至不丢包, 只是接收时会出现这个情况;发送不会丢包。
下面是各个寄存器的值:
reg: 0x0 value : 0x3100
reg: 0x1 value : 0x786d
reg: 0x2 value : 0x2000
reg: 0x3 value : 0x5c90
reg: 0x4 value : 0x5e1
reg: 0x5 value : 0xcc61
reg: 0x6 value : 0xd
reg: 0x7 value : 0x2801
reg: 0x8 value : 0x0
reg: 0x9 value : 0x0
reg: 0xa value : 0x0
reg: 0xb value : 0x0
reg: 0xc value : 0x0
reg: 0xd value : 0x0
reg: 0xe value : 0x0
reg: 0xf value : 0x0
reg: 0x10 value : 0x17
reg: 0x11 value : 0x0
reg: 0x12 value : 0x0
reg: 0x13 value : 0x0
reg: 0x14 value : 0x0
reg: 0x15 value : 0x0
reg: 0x16 value : 0x100
reg: 0x17 value : 0x21
reg: 0x18 value : 0x0
reg: 0x19 value : 0xb023
reg: 0x1a value : 0x904
reg: 0x1b value : 0x0
reg: 0x1c value : 0x0
reg: 0x1d value : 0x6011
reg: 0x1e value : 0x242f
reg: 0x1f value : 0x0
下面是ethtool查看到的信息:
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full (只能工作在10M应该是这里的原理,但是对方连接的是电脑,网卡肯定不止10M)
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 3
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full (只能工作在10M应该是这里的原理,但是对方连接的是电脑,网卡肯定不止10M)
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 3
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
NIC statistics:
tx_dropped: 0
tx_packets: 1217
tx_broadcast: 78
tx_multicast: 14
tx_crc_errors: 0
tx_undersize: 0
tx_oversize: 0
tx_fragment: 0
tx_jabber: 0
tx_collision: 0
tx_64byte: 41
tx_65to127byte: 1101
tx_128to255byte: 0
tx_256to511byte: 75
tx_512to1023byte: 0
tx_1024to2047byte: 0
tx_GTE2048byte: 0
tx_octets: 136483
IEEE_tx_drop: 0
IEEE_tx_frame_ok: 1217
IEEE_tx_1col: 0
IEEE_tx_mcol: 0
IEEE_tx_def: 0
IEEE_tx_lcol: 0
IEEE_tx_excol: 0
IEEE_tx_macerr: 0
IEEE_tx_cserr: 0
IEEE_tx_sqe: 0
IEEE_tx_fdxfc: 0
IEEE_tx_octets_ok: 136483
rx_packets: 1394
rx_broadcast: 12
rx_multicast: 237
rx_crc_errors: 43 (crc校验错误较多,这个通常是什么原因呢?)
rx_undersize: 0
rx_oversize: 0
rx_fragment: 0
rx_jabber: 0
rx_64byte: 45
rx_65to127byte: 1284
rx_128to255byte: 17
rx_256to511byte: 36
rx_512to1023byte: 3
rx_1024to2047byte: 9
rx_GTE2048byte: 0
rx_octets: 167622
IEEE_rx_drop: 0
IEEE_rx_frame_ok: 1351
IEEE_rx_crc: 43
IEEE_rx_align: 0
IEEE_rx_macerr: 0
IEEE_rx_fdxfc: 0
IEEE_rx_octets_ok: 160922
tx_dropped: 0
tx_packets: 1217
tx_broadcast: 78
tx_multicast: 14
tx_crc_errors: 0
tx_undersize: 0
tx_oversize: 0
tx_fragment: 0
tx_jabber: 0
tx_collision: 0
tx_64byte: 41
tx_65to127byte: 1101
tx_128to255byte: 0
tx_256to511byte: 75
tx_512to1023byte: 0
tx_1024to2047byte: 0
tx_GTE2048byte: 0
tx_octets: 136483
IEEE_tx_drop: 0
IEEE_tx_frame_ok: 1217
IEEE_tx_1col: 0
IEEE_tx_mcol: 0
IEEE_tx_def: 0
IEEE_tx_lcol: 0
IEEE_tx_excol: 0
IEEE_tx_macerr: 0
IEEE_tx_cserr: 0
IEEE_tx_sqe: 0
IEEE_tx_fdxfc: 0
IEEE_tx_octets_ok: 136483
rx_packets: 1394
rx_broadcast: 12
rx_multicast: 237
rx_crc_errors: 43 (crc校验错误较多,这个通常是什么原因呢?)
rx_undersize: 0
rx_oversize: 0
rx_fragment: 0
rx_jabber: 0
rx_64byte: 45
rx_65to127byte: 1284
rx_128to255byte: 17
rx_256to511byte: 36
rx_512to1023byte: 3
rx_1024to2047byte: 9
rx_GTE2048byte: 0
rx_octets: 167622
IEEE_rx_drop: 0
IEEE_rx_frame_ok: 1351
IEEE_rx_crc: 43
IEEE_rx_align: 0
IEEE_rx_macerr: 0
IEEE_rx_fdxfc: 0
IEEE_rx_octets_ok: 160922
Kailyn Chen:
您好,我已经将您的问题提交到英文E2E上了,您可以直接在上面跟进,也可以在这里讨论:
https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_接口_dp83848k-sometimes-lose-packet