This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: Ethernet compliance test

Part Number: AM3352

Tool/software: Linux

Hi Sir 

We used latest SDK for development, we need to do Ethernet 10 & 100Mbps compliance test.

As we know, TI's PHY can set the test mode to do compliance test.

If we want to do Ethernet 10Mpbs compliance test and PHY doesn't support this test mode,  could CPU set the configuration to output the signal ?

if yes, does TI have any sample code ?

BR

Yimin

  • Hi,

    What is needed for a configuration and what is the signal? Is this to set something in the PHY? Which Ethernet interface are you trying to do the compliance testing with?

    There is not a compliance test mode for the Linux ethernet drivers on the AM class devices. There is a means to set the bit rate to 10Mbps with the ethtool utility but the configuration and output signal is something I am not sure I am following. Could you please explain what that is?

    Best Regards,

    Schuyler

  • Hi SIr 

    for example -> below pattern can be set in CPU site to send out the signal in 10Mbps mode?

    To output link pulses in 10Mbps:

    1. Force 10M, full duplex (write 0x0100 to address 0x00)

    To output all 1's (10MHz sine wave) in 10Mbps:

    1. Force 10M, full duplex (write 0x0100 to address 0x00)
    2. Force 10M good link and disable jabber (write 0x0845 to address 0x1A)
    3. Enable 10M all 1's pattern (write 0x0013 to address 0x1B)

    To output a Pseudo-random packet in 10Mbps:

    1. Force 10M, full duplex (write 0x0100 to address 0x00)
    2. Force 10M good link and disable jabber (write 0x0845 to address 0x1A)
    3. Start BIST transmission of PSR9 pattern (write 0x1to bit 8 of address 0x19)

    To output a Pseudo-random packet without an inter-frame gap in 10Mbps:

    1. Force 10M, full duplex (write 0x0100 to address 0x00)
    2. Force 10M good link and disable jabber (write 0x0845 to address 0x1A)
    3. Enable continuous packet BIST mode (write 0x0020 to address 0x1B)
    4. Start BIST transmission of PSR9 pattern (write 0x1to bit 8 of address 0x19)
  • Hi,

    You can use the ethtool utility in Linux to force the bit rate and duplex mode. Since ethtool is a standard Linux utility you will be able to find lots of example on setting the bit rate and duplex mode.

    The PHY register access would occur via an ioctl using SIOCSMIIREG (write) and SIOCGMIIREG as requests. TI does not have any source to how to do this. This is provided that the PHY driver being used support this ioctl access.  This is also a standard technique and you will be able to find lots of examples on the web. 

    Best Regards,

    Schuyler