| FORUM

FEDEVEL
Platform forum

Bind Enet for U-boot 20.04

medhamdi , 09-13-2021, 02:52 PM
I have the openrex board and I want to upgrade to U-boot 20.04. I bind all devices, but i get problem with the enet interface. it is bind and is detected by the server but i can't reach it by ping, I get the following message:
Using ethernet@02188000 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.0.37 is not alive


By executing the following commands, the problem is resolved temporarily:
mii write 3 b 8104
mii write 3 c F0F0


Can you help to fix it after reboot, you find attach a screenshot of my the device tree..
Best
medhamdi , 09-14-2021, 05:09 AM
Hello,
I fixed by modifying the board_phy_config function like this:

int board_phy_config(struct phy_device *phydev)
{
phy_write(phydev, MDIO_DEVAD_NONE, 0xb, 0x8104);
phy_write(phydev, MDIO_DEVAD_NONE, 0xc, 0xF0F0);

if (phydev->drv->config)
{
phydev->drv->config(phydev);
}

return 0;
}

Use our interactive Discord forum to reply or ask new questions.
Discord invite
Discord forum link (after invitation)

Didn't find what you were looking for?