patelviv Posted September 30, 2018 Share Posted September 30, 2018 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 Link to comment Share on other sites More sharing options...
vicentiu Posted October 1, 2018 Share Posted October 1, 2018 2 Questions: I assume you're using the original Zybo board, based on the Zybo7000 tag you added? Are you using our Petalinux reference project? If yes, it should work as is. If not, I recommend starting with the reference project. I Link to comment Share on other sites More sharing options...
patelviv Posted October 1, 2018 Author Share Posted October 1, 2018 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. Link to comment Share on other sites More sharing options...
vicentiu Posted October 1, 2018 Share Posted October 1, 2018 I didn't see any obvious differences between your device tree and the one in the reference project. We recommend you start with the reference project where ethernet works, and modify that according to your needs. Link to comment Share on other sites More sharing options...
patelviv Posted October 2, 2018 Author Share Posted October 2, 2018 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. Link to comment Share on other sites More sharing options...
vicentiu Posted October 5, 2018 Share Posted October 5, 2018 You can find device tree documentation in the following places: https://elinux.org/Device_Tree_Usage https://elinux.org/Device_Tree_Reference https://github.com/Xilinx/linux-xlnx/tree/master/Documentation/devicetree https://github.com/devicetree-org/devicetree-specification/releases/download/v0.2/devicetree-specification-v0.2.pdf Link to comment Share on other sites More sharing options...
Question
patelviv
hello, I need help with troubleshooting ethernet. when I use ifconfig, I get below information.
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
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.