搜索
bottom↓
回复: 4

am335x 双网口RGMII+RMII,怎么实现

[复制链接]

出0入0汤圆

发表于 2016-6-30 11:32:52 | 显示全部楼层 |阅读模式
am335x 双网口RGMII+RMII,怎么实现
内核3.14
目前RGMII可以用但是RMII就是接收不到数据。

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

 楼主| 发表于 2016-6-30 13:53:35 | 显示全部楼层
我查看了状态寄存器,rmii接口的时候状态寄存器一帧数据也得不到。

是不是接收触发dma有问题
还是什么中断有问题。

出0入0汤圆

 楼主| 发表于 2016-6-30 15:06:24 | 显示全部楼层
有没有用过am335x  rmii接口的

出0入0汤圆

 楼主| 发表于 2016-7-1 16:16:36 | 显示全部楼层
我现在可是收到帧但是每帧都是crc校验错误怎么回事。

出0入0汤圆

 楼主| 发表于 2016-7-5 08:54:27 | 显示全部楼层
[ 8510.903015] _cpsw_adjust_link-----------------------------------------------------------------------------------
[ 8510.913787] id_ver                   = 0x00170112
[ 8510.917449] mac_control              = 0x01818039
[ 8510.921447] mac_status               = 0x80000000
[ 8510.925354] soft_reset               = 0x00000000
[ 8510.929290] rx_maxlen                = 0x000005f2
[ 8510.933135] __reserved_0             = 0x016d0000
[ 8510.937225] rx_pause                 = 0x00000000
[ 8510.940979] tx_pause                 = 0x00000000
[ 8510.944702] __reserved_1             = 0x00000000
[ 8510.948822] rx_pri_map               = 0x76543210
[ 8510.952728] _cpsw_adjust_link-----------------------------------------------------------------------------------
[ 8510.963500]  
[ 8510.965240]  
[ 8510.966949]  
[ 8510.968688] _cpsw_adjust_link-----------------------cpsw_ss_regs------------------------------------------------------------
[ 8510.980560] id_ver                   = 0x0019010c
[ 8510.984191] control          = 0x00000002
[ 8510.987854] soft_reset               = 0x00000000
[ 8510.991760] stat_port_en             = 0x00000007
[ 8510.995880] ptype                    = 0x00000000
[ 8510.999420] soft_idle                = 0x00000000
[ 8511.003173] thru_rate                = 0x00003003
[ 8511.007019] gap_thresh               = 0x0000000b
[ 8511.010925] tx_start_wds             = 0x00000020
[ 8511.015045] flow_control             = 0x00000001
[ 8511.019134] vlan_ltype               = 0x81008100
[ 8511.023071] ts_ltype                 = 0x00000000
[ 8511.026794] dlr_ltype                = 0x000080e1
[ 8511.030639] _cpsw_adjust_link-----------------------cpsw_ss_regs------------------------------------------------------------
[ 8511.042480]  
[ 8511.044219]  
[ 8511.045959]  
[ 8511.047698] _cpsw_adjust_link-----------------------cpsw_wr_regs------------------------------------------------------------
[ 8511.059539] id_ver                   = 0x4edb0100
[ 8511.063171] soft_reset               = 0x00000000
[ 8511.067108] control                  = 0x00000005
[ 8511.070739] int_control              = 0x00000000
[ 8511.074768] rx_thresh_en             = 0x00000000
[ 8511.078857] rx_en                    = 0x000000ff
[ 8511.082427] tx_en                    = 0x000000ff
[ 8511.085968] misc_en          = 0x00000000
[ 8511.089630] rx_thresh_stat           = 0x00000000
[ 8511.093902] rx_stat          = 0x00000000
[ 8511.097564] tx_stat          = 0x00000000
[ 8511.101226] misc_stat                = 0x00000000
[ 8511.105041] rx_imax          = 0x00000000
[ 8511.108703] tx_imax          = 0x00000000
[ 8511.112335] _cpsw_adjust_link-----------------------cpsw_wr_regs------------------------------------------------------------
[ 8511.124176]  
[ 8511.125915]  
[ 8511.127655]  
[ 8511.129394] _cpsw_adjust_link-----------------------cpsw_hw_stats------------------------------------------------------------
[ 8511.141326] rxgoodframes             = 0x00000000
[ 8511.145446] rxbroadcastframes        = 0x00000000
[ 8511.149902] rxmulticastframes        = 0x00000000
[ 8511.154388] rxpauseframes            = 0x00000000
[ 8511.158569] rxcrcerrors              = 0x0001b5d6
[ 8511.162597] rxaligncodeerrors        = 0x00000000
[ 8511.167053] rxoversizedframes        = 0x00000000
[ 8511.171539] rxjabberframes           = 0x00000000
[ 8511.175811] rxundersizedframes       = 0x00000000
[ 8511.180358] rxfragments              = 0x00000000
[ 8511.184387] rxoctets                 = 0x00000000
[ 8511.188140] txgoodframes             = 0x00000000
[ 8511.192230] txbroadcastframes        = 0x00000000
[ 8511.196685] txmulticastframes        = 0x00000000
[ 8511.201171] txpauseframes            = 0x00000000
[ 8511.205352] txdeferredframes         = 0x00000000
[ 8511.209747] txcollisionframes        = 0x00000000
[ 8511.214202] txsinglecollframes       = 0x00000000
[ 8511.218780] txmultcollframes         = 0x00000000
[ 8511.223144] txexcessivecollisions    = 0x00000000
[ 8511.227996] txlatecollisions = 0x00000000
[ 8511.232269] txunderrun               = 0x00000000
[ 8511.236175] txcarriersenseerrors     = 0x00000000
[ 8511.240936] txoctets                 = 0x00000000
[ 8511.244659] octetframes64            = 0x000185f8
[ 8511.248870] octetframes65t127        = 0x00001b93
[ 8511.253326] octetframes128t255       = 0x00000a86
[ 8511.257904] octetframes256t511       = 0x000009af
[ 8511.262451] octetframes512t1023      = 0x0000000f
[ 8511.267120] octetframes1024tup       = 0x00000007
[ 8511.271667] netoctets                = 0x007e68b1
[ 8511.275512] rxsofoverruns            = 0x00000000
[ 8511.279693] rxmofoverruns            = 0x00000000
[ 8511.283905] rxdmaoverruns            = 0x00000000
[ 8511.288085] _cpsw_adjust_link-----------------------cpsw_hw_stats------------------------------------------------------------
[ 8511.300018]  
[ 8511.301757]  
[ 8511.303497]  
[ 8511.305236] _cpsw_adjust_link-----------------------cpsw_host_regs------------------------------------------------------------
[ 8511.317260] max_blks                 = 0x00000104
[ 8511.321014] blk_cnt          = 0x00000041
[ 8511.324645] flow_thresh              = 0x000140c0
[ 8511.328674] port_vlan                = 0x00000000
[ 8511.332489] tx_pri_map               = 0x33221001
[ 8511.336425] cpdma_tx_pri_map         = 0x76543210
[ 8511.340789] cpdma_rx_chan_map        = 0x00000000
[ 8511.345275] _cpsw_adjust_link-----------------------cpsw_host_regs------------------------------------------------------------
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-23 05:15

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表