How to chose emac0 instead of emac1 in uboot

when I ping on the uboot I receive
:slight_smile:SOCFPGA_CYCLONE5 # ping 10.100.102.1
failed to find phy
failed to configure phy: -1

in the platformere designer i chose the emac0 option and disable emac1.
all the pins are connected from the MICREAL KSZ9031 to the Cyclone v.
i believe that the uboot still working with emac1 instead of emac0,
what should i do.

how can i be sure which one was selected?

I am using Quartus Prime 18.1. I had to change two lines in the file, socfpga_cyclone5.h to be able to use umac0. The file is in \software\spl_bsp\uboot-socfpga\include\configs.

After the change I ran bsp-editor again and re-generated the bsp files to force make to recompile. After that I re-ran make to remake preloader and u-boot.

Original:
/* EMAC controller and PHY used */
#define CONFIG_EMAC_BASE CONFIG_EMAC1_BASE
#define CONFIG_EPHY_PHY_ADDR CONFIG_EPHY1_PHY_ADDR

Changed:
/* EMAC controller and PHY used */
#define CONFIG_EMAC_BASE CONFIG_EMAC0_BASE
#define CONFIG_EPHY_PHY_ADDR CONFIG_EPHY0_PHY_ADDR