SPRADJ8 October   2024 AM3351 , AM3352 , AM3354 , AM3356 , AM3357 , AM3358 , AM3359 , AM4372 , AM4376 , AM4377 , AM4378 , AM4379 , AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM62A3 , AM62A3-Q1 , AM62A7 , AM62A7-Q1 , AM62P , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442 , DP83822H , DP83822HF , DP83822I , DP83822IF , DP83826E , DP83826I , DP83848-EP , DP83848Q-Q1 , DP83867CR , DP83867CS , DP83867E , DP83867IR , DP83867IS , DP83TC812R-Q1 , DP83TC812S-Q1 , DP83TC813R-Q1 , DP83TC813S-Q1 , DP83TC814R-Q1 , DP83TC814S-Q1 , DP83TG720R-Q1 , DP83TG720S-Q1 , DP83TG721R-Q1 , DP83TG721S-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Terminology
  5. Prerequisites
  6. Quick Initial Steps
  7. Debug Overview
  8. Network Driver Initialization Process
  9. Ethernet PHY Analysis
  10. Ethernet MAC Statistics Analysis
  11. How IPv4 Address is Obtained
  12. Follow the Packet
  13. 10Debug Network Topologies and Techniques
    1. 10.1 Direct Connection
    2. 10.2 Static IP Addresses
    3. 10.3 Setting Low Bit Rates
    4. 10.4 Beware When Connecting to a Switch
  14. 11Linux® Utilities Summary
  15. 12Checklist for Requesting Ethernet Support

Setting Low Bit Rates

When using the RGMII interface mode, timing issues related to clock delay with respect to data can be determined by using a method of lowering the maximum bit rate allowed for the Ethernet link. This limit can be done with three methods:

  1. Use ethtool to manually set the link speed on both link partners:
    ethtool -s <interface name> speed <link speed>
  2. Connect to a lower bit rate link partner
  3. Add a max-speed property to the DTS to lower the bit rate. This method is preferred as this is set on each DUT during boot time. The following code snippet shows an example of adding this property to the PHY node in a DTS file. Observe that the speed is set to the lowest setting of 10 indicating 10Mbps. 100Mbps can also work. A default speed of 1000Mbps from the PHY HW configuration is assumed here.
cpsw3g_phy1: ethernet-phy1@ {
   …
   max-speed = <10>;
   …
};