There was an issue with the KSZ9131 PHY initialization when booting via the SD card. It was observed that when u-boot loads the ifs via tftp, the dwc0 interface is able to get an IP address assigned and works as expected. u-boot initializes the network device on the board when tftp is run or a dhcp command is run on the u-boot prompt.
Please use this workaround if you require Ethernet connectivity. Below are the steps that have been verified on the target when booting via tftp (using default gateway 192.168.10.1):
1. On u-boot command prompt:
----------
Verdin iMX8MP TEZI # setenv serverip 192.168.10.120
Verdin iMX8MP TEZI # setenv ipaddr 192.168.10.140
Verdin iMX8MP TEZI # ping 192.168.10.120
Using ethernet@30bf0000 device
host 192.168.10.120 is alive
Verdin iMX8MP TEZI # tftp 0x40800000 ifs-imx8mp-verdin.bin
Using ethernet@30bf0000 device
TFTP from server 192.168.10.120; our IP address is 192.168.10.140
Filename 'ifs-imx8mp-verdin.bin'.
Load address: 0x40800000
Loading: ########################################################
...
7.2 MiB/s
done
Bytes transferred = 10139444 (9ab734 hex)
Verdin iMX8MP TEZI # go 0x40800000
## Starting application at 0x40800000 ...
board_smp_num_cpu: 4 cores
board_smp_num_cpu: 4 cores
board_smp_num_cpu: 4 cores
board_smp_num_cpu: 4 cores
...
----------