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.

AM1808 EMAC receive problem with Micrel KSZ8863

Other Parts Discussed in Thread: AM1808

Hello,

We have the following setups:

1) uboot-03.20.00.12 patched to work with more than one PHY and no reset of EMAC after ping to check the network statistics registers of the EMAC.

2) Logic PD AM1808 Eval Kit: ethernet working fine with above uboot. we can see packets on both sides and network statistics counters. The counters also increment, when no "ping" is active and broadcast frames come in.

3) Own board, AM1808 with Micrel KSZ8863, same u-boot binary code as above. The link is up, 100M full duplex. Frames can be sent from AM1808 and can be seen on network monitor (tcpdump).

Problem: On the receive side, we can never see any packets in the statistic counters. We can see MII_RXDV pulses on MII Interface and data bits. Clock MII_RXCK is stable.

Is there any dependency between the PHY ID and the packet reception in the EMAC?

Is there any register to trace down problems between MII_RX... signals and the EMAC (network statistic registers). We would expect bad CRC, short frames or other counter values, if there are problems with HW signals, but there is nothing happen.

  • Aloha,

    The same software that configures the MAC ID for the AM1808 EVM should also work on your custom board.

    For debug, you can configure the onboard PHY to behave in loopback mode to make sure that the EMAC can send data to itself.  This would at least tell you if the problem is in the EMAC settings or not.  If that works, you can try an external loopback plug at the PHY jack to test out the PHY.

    -Tommy

  • Thanks for the answer, Tommy.

    The problem was the MIIRXER signal. The default setting of the pull-up/down control is pull-up, and therefore indicating an error to the EMAC. The KSZ8863 does not supply an RXERR signal, and the AM1808 does not count frames, when MIIRXER is asserted all the time.

    Aloha.

     

  • Even i am facing a similar problem with sam9263 and micrel ks8721 PHY. Can u please tell me how to solve this issue?

    \

  • Hi aloha64398,

    We are using same KSZ8863.
    How did you configure internal register of KSZ8863?
    I think it need to configure from SMI so that it need to send opcode="00" from AM1808.
    But I guess AM1808 can't send opcode = "00".

    Please let me know the method.

    best regards,
    g.f.

  • Hi,

    I am also trying to use KSZ8863 switch in my board. How did you add support for it in the kernel. I downloaded the device drivers and add them to kconfig. My DTS has got generic phy, when the kernel boots I get "no PHY, assuming direct connection to switch".


    Looks like ksz8863 device driver is never called while scanning for phy.

    Can  you please share some information on this.

    Thanks

    Pritam