• 0
patelviv

ADDRCONF(NETDEV_UP): eth0: link is not ready

Question

 hello, I need help with troubleshooting ethernet. when I use ifconfig, I get below information.

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.103  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 00:0a:35:00:1e:53  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 146  base 0xb000

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 39  bytes 4047 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 39  bytes 4047 (3.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


when I ping 8.8.8.8, I get

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.103 icmp_seq=1 Destination Host Unreachable
From 192.168.1.103 icmp_seq=2 Destination Host Unreachable
 

ethernet setting in devicetree

&gem0 {
        phy-handle = <&phy0>;
        phy0: phy0@1 {
                device_type = "ethernet-phy";
                reg = <1>;
        };
};

I have tried changing some things in devicetree. but i am always getting the same error.

ADDRCONF(NETDEV_UP): eth0: link is not ready

thank you in advance.

 

system-user.dtsi

zynq-7000.dtsi

Edited by patelviv

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Thanks  for the reply. 

1. Yes I am using zybo 7000 board.

2. No I am not using reference project. I got bit stream from my professor from the university. And then I build the project with patalinux. But I just don't understand that which information should I put in devicetree for ethernet to work and from where should i find it? 

- all the other stuffs are working correctly. 

 

 

Share this post


Link to post
Share on other sites
  • 0

Ok, I will do that.

But I couldn't find any proper document regarding editing devicetree. Can you please suggest me some tutorials to learn more about editing devicetree. Such as , how does anyone know what exactly one need to write in devicetree in order to work USB or let's say ethernet.  I just did trial and error and some solutions form this forum.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now