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
解決済! 解決策の投稿を見る。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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.
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!
-----------------------------------------------------------------------------------------------------------------------
Hi,YiPing Wang:
Thank you for your help, I have resolved the problem after adding the patch to the Kernel source!