Phy chip ksz9031 can not be networked

Have you tried different switch or hub on the other side?

Hi,

  1. How to determine the phy driver is loaded can be checked as per below:
    This is a location on my jetson xavier.
root@jetson:/sys/bus/mdio_bus/devices/2490000.ethernet:00# ls -al
total 0
drwxr-xr-x 4 root root    0 Jun 29 14:31 .
drwxr-xr-x 4 root root    0 Jun 29 14:31 ..
lrwxrwxrwx 1 root root    0 Jul  5 19:58 attached_dev -> ../../../net/eth0
lrwxrwxrwx 1 root root    0 Jul  5 19:58 driver -> '../../../../../bus/mdio_bus/drivers/Marvell 88E1510'
drwxr-xr-x 3 root root    0 Jun 29 14:31 hwmon
lrwxrwxrwx 1 root root    0 Jul  5 19:58 of_node -> ../../../../../firmware/devicetree/base/ethernet@2490000/mdio/phy@0
-r--r--r-- 1 root root 4096 Jul  5 19:58 phy_has_fixups
-r--r--r-- 1 root root 4096 Jul  5 19:58 phy_id
-r--r--r-- 1 root root 4096 Jul  5 19:58 phy_interface
drwxr-xr-x 2 root root    0 Jul  5 19:58 power
lrwxrwxrwx 1 root root    0 Jun 29 14:31 subsystem -> ../../../../../bus/mdio_bus
-rw-r--r-- 1 root root 4096 Jun 29 14:31 uevent
root@jetson:/sys/bus/mdio_bus/devices/2490000.ethernet:00# cat phy_id
0x01410dd4
root@jetson:/sys/bus/mdio_bus/devices/2490000.ethernet:00# cat phy_interface
rgmii-id

The phy id can be matched from the driver code of micrel.c. A pr_debug() or a pr_err() print in probe function of the driver " kszphy_probe() " at the beginning should come once the probe of the driver is called.
You could add some logs there.

Please also make sure that the phy dt entries are properly populated for driver probe to be successful.
If the phy link is up and auto-negotiation is complete, mac link will come up and the “nmcli networking on” should get the ip address using DHCP.

  1. From the logs attached as 2.txt and 4.txt in the last comment.
    I see that the driver is correctly loaded for 4.txt which gets the ip address. The Network manager is also in connected state.
    But this does not look like a driver issue. Can you restart the " networking manager service " on reboot and try DHCP to get ip allocation and see if any error or work?