The NIC doesn't work on BPI-R64 using mainline kernel 5.5

I tried using mainline Linux kernel 5.5; both usb/sd work, but the NIC doesn’t.

dmesg: mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

It’s not getting ip address from the dhcp server (sudo dhclient eth0), any idea? Thanks.

BTW, the USB Ehternet dongle works perfect for me.

mainline-kernel does not contain driver for switch…you can try my repo

change board in build.conf to bpi-r64 and run

./ importconfig
./ config #if you want to change settings

Thank you Frank. I don’t use switch, I use the WAN port, which is eth0; eth1 is for switch, if I recall correctly.

no, eth0/eth1 are only the soc-side of ethernet-lanes (gmac) going both to switch (which contains all rj45 ports). and eth0 is for lan-ports and eth1 (if activated) is for wan :wink:

See shematics last page block diagram in the middle of right side

you can apply landen chaos mt7531 patchset if you don’t want to use my repo (but pcie,bluetooth,wifi, thermal… also not working in mainline)