am335x 双网口RGMII+RMII千兆测试没问题,百兆接收到的帧都是crc错误,为什么?
模式选择寄存器现在设置为0x9a
测试所有引脚信号都有。
以下是寄存器打印:
[ 695.075256] _cpsw_adjust_link-------------------------------------1----------------phy->speed = 100-----------------------------
[ 695.087463] _cpsw_adjust_link-------------------------------------1------------------phy->interface = 5---------------------------
[ 695.099853] _cpsw_adjust_link-----------------------------------------------------------------------------------
[ 695.110595] id_ver = 0x00170112
[ 695.114257] mac_control = 0x00008021
[ 695.118286] mac_status = 0x80000000
[ 695.122192] soft_reset = 0x00000000
[ 695.126129] rx_maxlen = 0x000005f2
[ 695.129943] __reserved_0 = 0x02080000
[ 695.134063] rx_pause = 0x00000000
[ 695.137786] tx_pause = 0x00000000
[ 695.141540] __reserved_1 = 0x00000000
[ 695.145629] rx_pri_map = 0x76543210
[ 695.149566] _cpsw_adjust_link-----------------------------------------------------------------------------------
[ 695.160308]
[ 695.162048]
[ 695.163787]
[ 695.165527] _cpsw_adjust_link-----------------------cpsw_ss_regs------------------------------------------------------------
[ 695.177368] id_ver = 0x0019010c
[ 695.181030] control = 0x00000002
[ 695.184661] soft_reset = 0x00000000
[ 695.188598] stat_port_en = 0x00000007
[ 695.192687] ptype = 0x00000000
[ 695.196258] soft_idle = 0x00000000
[ 695.199981] thru_rate = 0x00003003
[ 695.203826] gap_thresh = 0x0000000b
[ 695.207763] tx_start_wds = 0x00000020
[ 695.211853] flow_control = 0x00000001
[ 695.215972] vlan_ltype = 0x81008100
[ 695.219879] ts_ltype = 0x00000000
[ 695.223632] dlr_ltype = 0x000080e1
[ 695.227447] _cpsw_adjust_link-----------------------cpsw_ss_regs------------------------------------------------------------
[ 695.239288]
[ 695.241027]
[ 695.242767]
[ 695.244506] _cpsw_adjust_link-----------------------cpsw_wr_regs------------------------------------------------------------
[ 695.256347] id_ver = 0x4edb0100
[ 695.260009] soft_reset = 0x00000000
[ 695.263916] control = 0x00000005
[ 695.267578] int_control = 0x00000000
[ 695.271575] rx_thresh_en = 0x00000000
[ 695.275695] rx_en = 0x000000ff
[ 695.279266] tx_en = 0x000000ff
[ 695.282806] misc_en = 0x00000000
[ 695.286468] rx_thresh_stat = 0x00000000
[ 695.290740] rx_stat = 0x00000000
[ 695.294403] tx_stat = 0x00000000
[ 695.298034] misc_stat = 0x00000000
[ 695.301879] rx_imax = 0x00000000
[ 695.305541] tx_imax = 0x00000000
[ 695.309173] _cpsw_adjust_link-----------------------cpsw_wr_regs------------------------------------------------------------
[ 695.321014]
[ 695.322753]
[ 695.324493]
[ 695.326232] _cpsw_adjust_link-----------------------cpsw_hw_stats------------------------------------------------------------
[ 695.338165] rxgoodframes = 0x00000000
[ 695.342285] rxbroadcastframes = 0x00000000
[ 695.346740] rxmulticastframes = 0x00000000
[ 695.351226] rxpauseframes = 0x00000000
[ 695.355407] rxcrcerrors = 0x00003eb8
[ 695.359436] rxaligncodeerrors = 0x00000000
[ 695.363891] rxoversizedframes = 0x00000000
[ 695.368377] rxjabberframes = 0x00000000
[ 695.372650] rxundersizedframes = 0x00000000
[ 695.377227] rxfragments = 0x00000000
[ 695.381225] rxoctets = 0x00000000
[ 695.384979] txgoodframes = 0x00000000
[ 695.389068] txbroadcastframes = 0x00000000
[ 695.393524] txmulticastframes = 0x00000000
[ 695.398010] txpauseframes = 0x00000000
[ 695.402191] txdeferredframes = 0x00000000
[ 695.406585] txcollisionframes = 0x00000000
[ 695.411041] txsinglecollframes = 0x00000000
[ 695.415618] txmultcollframes = 0x00000000
[ 695.419982] txexcessivecollisions = 0x00000000
[ 695.424835] txlatecollisions = 0x00000000
[ 695.429107] txunderrun = 0x00000000
[ 695.433044] txcarriersenseerrors = 0x00000000
[ 695.437774] txoctets = 0x00000000
[ 695.441528] octetframes64 = 0x0000368b
[ 695.445709] octetframes65t127 = 0x00000499
[ 695.450195] octetframes128t255 = 0x000001f0
[ 695.454742] octetframes256t511 = 0x00000161
[ 695.459320] octetframes512t1023 = 0x00000034
[ 695.463958] octetframes1024tup = 0x00000014
[ 695.468536] netoctets = 0x00132253
[ 695.472351] rxsofoverruns = 0x00000000
[ 695.476562] rxmofoverruns = 0x00000000
[ 695.480743] rxdmaoverruns = 0x00000000
[ 695.484954] _cpsw_adjust_link-----------------------cpsw_hw_stats------------------------------------------------------------
[ 695.496887]
[ 695.498626]
[ 695.500335]
[ 695.502075] _cpsw_adjust_link-----------------------cpsw_host_regs------------------------------------------------------------
[ 695.514099] max_blks = 0x00000104
[ 695.517852] blk_cnt = 0x00000041
[ 695.521484] flow_thresh = 0x000140c0
[ 695.525512] port_vlan = 0x00000000
[ 695.529357] tx_pri_map = 0x33221001
[ 695.533264] cpdma_tx_pri_map = 0x76543210
[ 695.537658] cpdma_rx_chan_map = 0x00000000
[ 695.542114] _cpsw_adjust_link-----------------------cpsw_host_regs------------------------------------------------------------
[ 695.554138]