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.

ping and tftp not working for AM1705 custom board

Other Parts Discussed in Thread: AM1705

Hi,

I am working on custom AM1705 board. Currently, I'm able to get the u-boot prompt using UART1 boot mode.

ping and tftp commands are not working (NOTE: I've modifed the da830evm.h for SD-RAM/SPIFLASH configuration settings. However the CONFIG_DRIVER_TI_EMAC under Network and Ethernet configuration settings were kept as it is).  Following errors are received.

1. ERROR: ethaddr not set

For this, I used setenv ethaddr.  Still ping and tftp commands are getting failed.

I'm using LAN8720A as PHY. Do I need to do any changes to the driver code ?

This link suggests that RMII PHY is not supported for AM17xx.

http://processors.wiki.ti.com/index.php/DaVinci_PSP_03.20.00.12_Device_Driver_Features_and_Performance_Guide#Ethernet_Driver

 

Please let me know how to proceed from this.

 

Regards,

Arul

 

  • Can you try using the BSL examples and CCS to check if those work with your PHY? If not,  those test cases can be useful debug tools to know if any driver changes are needed.

    Jeff

  • Hi Jeff,

    I fixed the issue now. Also able to test all the MDIO registers.

    The issue was b'cos PHY was not getting detected properly. The function davinci_eth_phy_detect() was returning 0 (No active PHYs).

    I am using PHY ID as 1. Hence I had to change the mask value of EMAC_MDIO_PHY_MASK by setting the  EMAC_MDIO_PHY_NUM as 0 (default is 1).

    #define EMAC_MDIO_PHY_MASK (1 << EMAC_MDIO_PHY_NUM)

     

    Regards,

    Arul