mac to mac connection,bandwidth 10Mbits/sec

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mac to mac connection,bandwidth 10Mbits/sec

跳至解决方案
1,840 次查看
freescale-tomzh
Contributor II

Hi,

   We are using two customized boards base on B4860. Now,we have a problem, we use "mac to mac connection" to realize the communication between the two boards.That is Fm1mac2=====backboard=====Fm1mac2.

   I change the device tree of fm1mac2 as follow:

   fm1mac2: ethernet@e2000 {
                phy-connection-type = "sgmii";
                fixed-link = <2 1 1000 0 0>;
    };

Now,two boards can communicate with each other, but the bandwidth can reach only 10Mbits/sec.

Do I need to change anything else?   thanks

1 解答
1,524 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello tom paul,

Please check whether the attached patch has already been applied to your Kernel source.

If no, please apply it to check whether it would be helpful.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

4 回复数
1,524 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello tom paul,

It seems that the dts file makes sense.

 A 'fixed-link' property in the Ethernet MAC node, with 5 cells, of the form <a b c d e> with the following accepted values:
  - a: emulated PHY ID, choose any but but unique to the all specified fixed-links, from 0 to 31
  - b: duplex configuration: 0 for half duplex, 1 for full duplex
  - c: link speed in Mbits/sec, accepted values are: 10, 100 and 1000
  - d: pause configuration: 0 for no pause, 1 for pause
  - e: asymmetric pause configuration: 0 for no asymmetric pause, 1 for asymmetric pause

Please use "ethtool" to check the status of this Ethernet port.

Which version Linux SDK do you use?


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,524 次查看
freescale-tomzh
Contributor II

Hello Yiping Wang,

The version of Linux SDK we use is SDK1.6;

When I use ethtool to check the status of fm1-mac2, the result is:

#ethtool fm1-mac2
Settings for fm1-mac2:
        Supported ports: [ MII ]
        Supported link modes:   1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 2
        Transceiver: external
        Auto-negotiation: on
        Current message level: 0xffffffff (-1)
                               drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
        Link detected: yes

There seems to be no problem, but when  I test the bandwidth use iperf,it is still 10Mbits/sec.

0 项奖励
回复
1,525 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello tom paul,

Please check whether the attached patch has already been applied to your Kernel source.

If no, please apply it to check whether it would be helpful.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,524 次查看
freescale-tomzh
Contributor II

Hi,YiPing Wang:

     Thank you for your help, I have resolved the problem after adding the patch to the Kernel source!

0 项奖励
回复