Announcement

Collapse
No announcement yet.

Bind Enet for U-boot 20.04

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Bind Enet for U-boot 20.04

    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

  • #2
    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;
    }

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎