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.

AM572x GP EVM GMAC diagnostic fails

I am doing the DIAG test on evmAM572x. gmac test is not working it is giving me result as failed.loadinf sbl in SD card.
 
1. how do I set or check the IP address of target evmAM572x?
2. what are the steps to get gmac diag test result pass?
Thanks,
Anjana Pathak
  • The RTOS team have been notified. They will respond here.
  • The EMAC diag is a simple test that loopback packets with below:

    static const uint8_t test_pkt[64] = {
        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* broadcast mac */
        0x01, 0xbb, 0xcc, 0xdd, 0xee, 0xff,
        0x08, 0x06, 0x00, 0x01,
        0x08, 0x00, 0x06, 0x04, 0x00,0x01,
        0x01, 0xbb, 0xcc, 0xdd, 0xee, 0xff,
        0xc0, 0xa8, 0x01, 0x16,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0xc0, 0xa8,0x01, 0x02,
        0x01,0x02,0x03,0x04,
        0x01,0x02,0x03,0x04,
        0x01,0x02,0x03,0x04,
        0x01,0x02,0x03,0x04,
        0x01,0x02,0x03,0x04,
        0xfe,0xfe
    };

    You can set/check the IP address inside the packet.

    When you test EMAC fails, can you provide the log? Do you plug Ethernet loopback cable on both RJ-45 ports?

    Regards, Eric

  • log of gmac diag test is attached below. i am bootin via SD card. Connected ethernet cross cable from target (evmAM572x) to host PC. 

    ▒▒**** PDK SBL ****
    **** Copying Application Image to DDR ****

    SD Boot - file open completed successfully
    Jumping to MPU CPU0 Application...


    Opening framework from SD card...
    Loading framework into memory...
    Running framework

    DIAGNOSTIC TEST FRAMEWORK
    Command options:
    help - displays this help menu again
    run - run a diagnostic application
    status - prints the test status
    [Diag Menu]: run
    Diagnostic Test Status:
    --------------------------------------------------------------
    ID Name Pass # of times Ran
    1 uart_TEST No 0
    2 eeprom_TEST No 0
    3 emmc_TEST No 0
    4 gmac_TEST No 0
    5 led_TEST No 0
    6 mem_TEST No 0
    7 mmcsd_TEST No 0
    8 pmic_TEST No 0
    9 temperature_TEST No 0

    Select test number (1 - 9): 4
    Parsing gmac_TEST
    Running gmac_TEST

    *********************************************
    * GMAC Test *
    *********************************************
    Test Port Link Link-Speed Status Error
    -------------------- ---- ---- -------------------- ------ ---------------------------
    Phy Loopback 1 Up Phy Loopback FAIL Receive errors (see stats)
    Channel RxPackets TxPackets RxMisqueue TxMisqueue
    ------- ---------- ---------- ---------- ----------
    0 0 32 0 0
    1 0 0 0 0
    2 0 0 0 0
    3 0 0 0 0
    4 0 0 0 0
    5 0 0 0 0
    6 0 0 0 0
    7 0 0 0 0
    Channel RxHead RxTail RxQueueCnt RxHDP TxHead TxTail TxQueueCnt TxHDP
    ------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    0 0x48486000 0x4848626c 0x00000020 0x48486000 0x00000000 0x00000000 0x00000000 0x00000000
    1 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    2 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    3 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    4 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    5 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    6 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    7 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    TxFree N/A N/A N/A N/A 0x48486280 0x484864ec 0x00000020 N/A
    CPSW3G Stats:
    Stat:
    --------------------- ----------
    RxGoodFrames 30
    RxBroadcastFrames 0
    RxMulticastFrames 0
    RxPauseFrames 0
    RxCRCErrors 2
    RxAlignCodeErrors 0
    RxOversizedFrames 0
    RxJabberFrames 0
    RxUndersizedFrames 0
    RxFragments 0
    RxOctets 22460
    TxGoodFrames 32
    TxBroadcastFrames 0
    TxMulticastFrames 0
    TxPauseFrames 0
    TxDeferredFrames 0
    TxCollisionFrames 0
    TxSingleCollFrames 0
    TxMultCollFrames 0
    TxExcessiveCollisions 0
    TxLateCollisions 0
    TxUnderrun 0
    TxCarrierSenseErrors 0
    TxOctets 24186
    64octetFrames 10
    65t127octetFrames 4
    128t255octetFrames 2
    256t511octetFrames 10
    512t1023octetFrames 14
    1024UPoctetFrames 24
    NetOctets 48372
    SOF Overrun 0
    MOF Overrun 0
    DMA Overrun 0
    CPSW3G ALE Table:
    Entry: Word2: Word1: Word0:
    ---------- ---------- ---------- ----------
    0 0x00000004 0xd00000de 0xadbeef00
    1 0x00000004 0xd00000de 0xadbeef01
    2 0x00000008 0xd00000de 0xadbeef02
    10Mbps Full-Duplex 1 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x0100 0x1000
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0078 0x0078
    0x14 0x4000 0x0000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0318 0x0300
    FAIL Link down
    100Mbps Half-Duplex 1 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2000 0x1000
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0078 0x0000
    0x14 0x4000 0x1000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0320 0x0300
    FAIL Link down
    100Mbps Full-Duplex 1 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2100 0x1000
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0078 0x0000
    0x14 0x4000 0x0000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0328 0x0300
    FAIL Link down
    Phy Loopback 2 Up Phy Loopback PASS
    10Mbps Full-Duplex 2 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2100 0x0100
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0000 0x0078
    0x14 0x4000 0x4000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0328 0x0318
    FAIL Link down
    100Mbps Half-Duplex 2 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2100 0x2000
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0000 0x0078
    0x14 0x4000 0x4000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0328 0x0320
    FAIL Link down
    100Mbps Full-Duplex 2 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2100 0x2100
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0000 0x0078
    0x14 0x4000 0x4000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0328 0x0328
    FAIL Link down
    Exiting
    Finished running gmac_TEST, result failed!
    [Diag Menu]: run
    Diagnostic Test Status:
    --------------------------------------------------------------
    ID Name Pass # of times Ran
    1 uart_TEST No 0
    2 eeprom_TEST No 0
    3 emmc_TEST No 0
    4 gmac_TEST No 1
    5 led_TEST No 0
    6 mem_TEST No 0
    7 mmcsd_TEST No 0
    8 pmic_TEST No 0
    9 temperature_TEST No 0

    Select test number (1 - 9):

     

  • in which file test_pkt is defined?
  • Anjana Pathak0 said:
    Connected ethernet cross cable from target (evmAM572x) to host PC. 

    You must loopback the two ports on connector P5 of the EVM for this test to run correctly. One port connected to the other on P5, no connection to PC.

  • pdk_am57xx_1_0_4\packages\ti\board\diag\emac\src\emac_test.c

    Regards, Eric
  • Now I connected cross cable from one port to the other on P5, still the result fails. the log file is attached below.


    [Diag Menu]: run
    Diagnostic Test Status:
    --------------------------------------------------------------
    ID Name Pass # of times Ran
    1 uart_TEST No 0
    2 eeprom_TEST No 0
    3 emmc_TEST No 0
    4 gmac_TEST No 1
    5 led_TEST No 0
    6 mem_TEST No 0
    7 mmcsd_TEST No 0
    8 pmic_TEST No 0
    9 temperature_TEST No 0

    Select test number (1 - 9): 4
    Parsing gmac_TEST
    Running gmac_TEST

    *********************************************
    * GMAC Test *
    *********************************************
    Test Port Link Link-Speed Status Error
    -------------------- ---- ---- -------------------- ------ ---------------------------
    Phy Loopback 1 Up Phy Loopback FAIL Receive errors (see stats)
    Channel RxPackets TxPackets RxMisqueue TxMisqueue
    ------- ---------- ---------- ---------- ----------
    0 0 32 0 0
    1 0 0 0 0
    2 0 0 0 0
    3 0 0 0 0
    4 0 0 0 0
    5 0 0 0 0
    6 0 0 0 0
    7 0 0 0 0
    Channel RxHead RxTail RxQueueCnt RxHDP TxHead TxTail TxQueueCnt TxHDP
    ------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    0 0x48486000 0x4848626c 0x00000020 0x48486000 0x00000000 0x00000000 0x00000000 0x00000000
    1 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    2 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    3 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    4 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    5 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    6 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    7 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    TxFree N/A N/A N/A N/A 0x48486280 0x484864ec 0x00000020 N/A
    CPSW3G Stats:
    Stat:
    --------------------- ----------
    RxGoodFrames 30
    RxBroadcastFrames 0
    RxMulticastFrames 0
    RxPauseFrames 0
    RxCRCErrors 2
    RxAlignCodeErrors 0
    RxOversizedFrames 0
    RxJabberFrames 0
    RxUndersizedFrames 0
    RxFragments 0
    RxOctets 22440
    TxGoodFrames 32
    TxBroadcastFrames 0
    TxMulticastFrames 0
    TxPauseFrames 0
    TxDeferredFrames 0
    TxCollisionFrames 0
    TxSingleCollFrames 0
    TxMultCollFrames 0
    TxExcessiveCollisions 0
    TxLateCollisions 0
    TxUnderrun 0
    TxCarrierSenseErrors 0
    TxOctets 25111
    64octetFrames 10
    65t127octetFrames 2
    128t255octetFrames 6
    256t511octetFrames 10
    512t1023octetFrames 8
    1024UPoctetFrames 28
    NetOctets 50222
    SOF Overrun 0
    MOF Overrun 0
    DMA Overrun 0
    CPSW3G ALE Table:
    Entry: Word2: Word1: Word0:
    ---------- ---------- ---------- ----------
    0 0x00000004 0xd00000de 0xadbeef00
    1 0x00000004 0xd00000de 0xadbeef01
    2 0x00000008 0xd00000de 0xadbeef02
    10Mbps Full-Duplex 1 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x0100 0x2100
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0078 0x0878
    0x14 0x4000 0x6000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0005
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0318 0x0328
    FAIL Link down
    100Mbps Half-Duplex 1 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2000 0x2100
    0x01 0x7949 0x794d
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0078 0x0001
    0x14 0x4000 0x4002
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0001
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0320 0x0328
    FAIL Link down
    100Mbps Full-Duplex 1 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2100 0x2100
    0x01 0x7949 0x794d
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0078 0x0041
    0x14 0x4000 0x4002
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0005
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0328 0x0328
    FAIL Link down
    Phy Loopback 2 Up Phy Loopback PASS
    10Mbps Full-Duplex 2 Down MDIO register dump
    Reg: Port 1: Port 2:
    0x00 0x2100 0x0100
    0x01 0x7949 0x7949
    0x02 0x0022 0x0022
    0x03 0x1622 0x1622
    0x04 0x01e1 0x0001
    0x05 0x0000 0x0000
    0x06 0x0004 0x0004
    0x07 0x2001 0x2001
    0x08 0x0000 0x0000
    0x09 0x0300 0x0000
    0x0a 0x0000 0x0000
    0x0b 0x0000 0x0000
    0x0c 0x0000 0x0000
    0x0d 0x0000 0x0000
    0x0e 0x0000 0x0000
    0x0f 0x3000 0x3000
    0x10 0x0000 0x0000
    0x11 0x00f4 0x00f4
    0x12 0x0000 0x0000
    0x13 0x0000 0x0078
    0x14 0x4000 0x4000
    0x15 0x0000 0x0000
    0x16 0x0000 0x0000
    0x17 0x0200 0x0200
    0x18 0x0000 0x0000
    0x19 0x0000 0x0000
    0x1a 0x0000 0x0000
    0x1b 0x0000 0x0000
    0x1c 0x0000 0x0000
    0x1d 0x0000 0x0000
    0x1e 0x0000 0x0000
    0x1f 0x0328 0x0318
    FAIL Link down
    100Mbps Half-Duplex 2 Up 100Mbps Half duplex FAIL Transmit errors (see stats)
    Channel RxPackets TxPackets RxMisqueue TxMisqueue
    ------- ---------- ---------- ---------- ----------
    0 0 32 0 0
    1 0 0 0 0
    2 0 0 0 0
    3 0 0 0 0
    4 0 0 0 0
    5 0 0 0 0
    6 0 0 0 0
    7 0 0 0 0
    Channel RxHead RxTail RxQueueCnt RxHDP TxHead TxTail TxQueueCnt TxHDP
    ------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    0 0x48486000 0x4848626c 0x00000020 0x48486000 0x00000000 0x00000000 0x00000000 0x00000000
    1 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    2 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    3 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    4 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    5 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    6 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    7 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    TxFree N/A N/A N/A N/A 0x48486280 0x484864ec 0x00000020 N/A
    CPSW3G Stats:
    Stat:
    --------------------- ----------
    RxGoodFrames 0
    RxBroadcastFrames 0
    RxMulticastFrames 0
    RxPauseFrames 0
    RxCRCErrors 0
    RxAlignCodeErrors 0
    RxOversizedFrames 0
    RxJabberFrames 0
    RxUndersizedFrames 0
    RxFragments 0
    RxOctets 0
    TxGoodFrames 32
    TxBroadcastFrames 0
    TxMulticastFrames 0
    TxPauseFrames 0
    TxDeferredFrames 0
    TxCollisionFrames 0
    TxSingleCollFrames 0
    TxMultCollFrames 0
    TxExcessiveCollisions 0
    TxLateCollisions 0
    TxUnderrun 0
    TxCarrierSenseErrors 0
    TxOctets 26486
    64octetFrames 5
    65t127octetFrames 1
    128t255octetFrames 2
    256t511octetFrames 3
    512t1023octetFrames 8
    1024UPoctetFrames 13
    NetOctets 26486
    SOF Overrun 0
    MOF Overrun 0
    DMA Overrun 0
    CPSW3G ALE Table:
    Entry: Word2: Word1: Word0:
    ---------- ---------- ---------- ----------
    0 0x00000000 0xd00000de 0xadbeef00
    1 0x00000004 0xd00000de 0xadbeef01
    2 0x00000008 0xd00000de 0xadbeef02
    100Mbps Full-Duplex 2 Up 100Mbps Full duplex FAIL Test timeout
    Channel RxPackets TxPackets RxMisqueue TxMisqueue
    ------- ---------- ---------- ---------- ----------
    0 0 32 0 0
    1 0 0 0 0
    2 0 0 0 0
    3 0 0 0 0
    4 0 0 0 0
    5 0 0 0 0
    6 0 0 0 0
    7 0 0 0 0
    Channel RxHead RxTail RxQueueCnt RxHDP TxHead TxTail TxQueueCnt TxHDP
    ------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    0 0x48486000 0x4848626c 0x00000020 0x48486000 0x00000000 0x00000000 0x00000000 0x00000000
    1 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    2 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    3 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    4 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    5 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    6 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    7 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
    TxFree N/A N/A N/A N/A 0x48486280 0x484864ec 0x00000020 N/A
    CPSW3G Stats:
    Stat:
    --------------------- ----------
    RxGoodFrames 0
    RxBroadcastFrames 0
    RxMulticastFrames 0
    RxPauseFrames 0
    RxCRCErrors 0
    RxAlignCodeErrors 0
    RxOversizedFrames 0
    RxJabberFrames 0
    RxUndersizedFrames 0
    RxFragments 0
    RxOctets 0
    TxGoodFrames 32
    TxBroadcastFrames 0
    TxMulticastFrames 0
    TxPauseFrames 0
    TxDeferredFrames 0
    TxCollisionFrames 0
    TxSingleCollFrames 0
    TxMultCollFrames 0
    TxExcessiveCollisions 0
    TxLateCollisions 0
    TxUnderrun 0
    TxCarrierSenseErrors 0
    TxOctets 25037
    64octetFrames 5
    65t127octetFrames 4
    128t255octetFrames 0
    256t511octetFrames 3
    512t1023octetFrames 7
    1024UPoctetFrames 13
    NetOctets 25037
    SOF Overrun 0
    MOF Overrun 0
    DMA Overrun 0
    CPSW3G ALE Table:
    Entry: Word2: Word1: Word0:
    ---------- ---------- ---------- ----------
    0 0x00000000 0xd00000de 0xadbeef00
    1 0x00000004 0xd00000de 0xadbeef01
    2 0x00000008 0xd00000de 0xadbeef02
    Exiting
    Finished running gmac_TEST, result failed!
  • instead of emac, gmac folder is present under dia folder. and i didnot find loopback packets in gmac_test.h file.
    C:\ti\pdk_am57xx_1_0_3\packages\ti\board\diag\gmac\src
  • any updates............
    i am waiting for answer.....................
  • Anjana,

    pdk_am57xx_1_0_4\packages\ti\board\diag\emac\src\emac_test.c, not .h file you are looking for. It just a few files under emac diag, you can always search static const uint8_t test_pkt[64] for this.

    Regards, Eric

  • Dear Eric,
    There is no emac folder instead gmac folder at path C:\ti\pdk_am57xx_1_0_3\packages\ti\board\diag\gmac and ony three fles are present those are gmac_counter.S, gmac_main.c, gmac_test.h. Is this difference is because i am using pdk_am57xx_1_0_3 not pdk_am57xx_1_0_4?
    Thanks,Anjana
  • Anjana,

    pdk_am57xx_1_0_3 diagnostic doesn't support e/gmac, please use the pdk_am57xx_1_0_4\packages\ti\board\diag\emac.

    Regards, Eric
  • Hi Eric,

    I am trying to test EMAC_BasicExample_evmAM572x_armBiosExampleProject. it is simple loopback test. the test packet is defined test_utils.c file

    static const uint8_t test_pkt[64] = {
    0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x08, 0x06, 0x00, 0x01,
    0x08, 0x00, 0x06, 0x04,
    0x00,0x01,0x01, 0xbb,
    0xcc, 0xdd, 0xee, 0xff,
    0xc0, 0xa8, 0x01, 0x16,
    0x00, 0x00, 0x00, 0x00,
    0xc0, 0xa8,0x01, 0x02,
    0x01,0x02,0x03,0x04,
    0x01,0x02,0x03,0x04,
    0x01,0x02,0x03,0x04,
    0x01,0x02,0x03,0x04,
    0x01,0x02,0x03,0x04,
    0xfe,0xfe, 0x00, 0x00
    };

    connected cross cable accross the both RJ-45 ports. and got the serial msg as shown below.

    SD Boot - file open completed successfully
    Jumping to MPU CPU0 Application...

    Board_init success
    EMAC loopback test application initialization
    SetPhyMode:000001e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:0 LPBK:0
    SetPhyMode:000001e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:0 LPBK:0
    main: emac_open sucess
    link status: Up Link in loopback state
    received packet: 1
    received packet: 2
    received packet: 3
    received packet: 4
    received packet: 5
    received packet: 6
    received packet: 7
    received packet: 8
    received packet: 9
    received packet: 10
    All tests have passed.

    Now i want to send some packets to the PC. I am not able to establish communication. As it is very difficult for me to find out where to set MAC address and IP address? How to configure port or open config emac in code? if i am using telnet to receive data from evmAM572x at PC.

    Will you please tell me what the test_pkt[64] consist of?is it just a data?

    Thanks,

    Anjana Pathak