• Resolved

DM8168 EVM eth1 giga interface problem



I'm using DM8168 DDR3 EVM Rev-C with daughter board (TMDXVSDC8168) and ezsdk

My app's main function is receving data from eth0 and save it to SATA HDD and retransmitting to eth1.

eth0 is work well with gigabit ethernet, but eth1 is not.

When I boot EVM eth1 connected to a gigabit port, no data transmission occurred.

At this time I unplug the eth1 cable and plug to a 100M port, data transmission is occurred.

After data transmission is occurred, I connect eth1 to a giga port again, data transmission is work-well.


When EVM is booted with eth1 connected 100M port, all data transmission is no porblem.

More exactly explan is;

When boot eth1 with giga port, I check ifconfig command, some ethernet packets are received from eth1.

But, no data is transmitted from my app, also no ping reponse to eth1 from outside.

At this time, I run 'ifconfig eth1 down' and the EVM is hangged.

Before EVM is hannged, I do unplug eth1 cable from giga port and replug it to giga port again,

no data transmission.


Help me.

  • In reply to Mugunthan V N:

    how to get patch

  • In reply to Vladimir Karakozov:

    hi Vladimir

    But from u-boot command line I can read/write PHY registers (mii).

    ==> could you tell me how to do that ??


  • In reply to 1330hayacool7102:

    Hi, Jack!

    You should use mii command from u-boot. If it is not enabled - add in your board config file this macro and rebuild u-boot:

    #define CONFIG_CMD_MDIO
    #define CONFIG_MII
    #define CONFIG_CMD_MII

    Example of using:

    1) #mii device

    MII devices: 'GENERIC @ 0x01'
    Current device: 'GENERIC @ 0x01'

    2) #mii read 1 0


    3) #mii help

    mii - MII utility commands

    mii device - list available devices
    mii device <devname> - set current device
    mii info <addr> - display MII PHY info
    mii read <addr> <reg> - read MII PHY <addr> register <reg>
    mii write <addr> <reg> <data> - write MII PHY <addr> register <reg>
    mii dump <addr> <reg> - pretty-print <addr> <reg> (0-5 only)
    Addr and/or reg may be ranges, e.g. 2-7.

  • In reply to Vladimir Karakozov:

    hi Vladimir,

    great thanks fro your reply.

    I got the same result as yours.

    And I want to got following, because I have two port and I just want to use the second port...how could I do that??

    Current device: 'GENERIC @ 0x02'

  • In reply to 1330hayacool7102:

    Hi, Jack!
    Sorry, but I can't tell you more exactly, because I don't work with two ports simultaneously. I suppose that you need set current MII device via command mii device <devicename>, and your PHY must have a different MDIO addresses. In command mii read <addr> <reg> you can try using different MDIO addresses of PHY.