UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor l6j6p6
Visitor
7,994 Views
Registered: ‎08-06-2015

Ethernet on Zynq doesn't work

Hey guys!

I followed the ''Embedded Linux hands-on tutorial'' to build and run Linux on my ZYBO board. I am trying to use the Ethernet but it seems does not work correctly. Here are some informations:

 

zynq> dmesg | grep xemacps
xemacps e000b000.ps7-ethernet: pdev->id -1, baseaddr 0xe000b000, irq 54
zynq> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1E:C0:DD:A6:1A  
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B )TX bytes:0 (0.0 B )
          Interrupt:54 Base address:0xb000

 

I connect the board and my PC (ip adr: 169.254.29.208). When I ping ZYBO from my PC I got "Destination host unreachable" and "request timed out". When I ping PC from ZYBO I got "sendto: Network is unreachable".

 

 

zynq> xemacps e000b000.ps7-ethernet: Set clk to 125000000 Hz
xemacps e000b000.ps7-ethernet: link up (1000/FULL)
xemacps e000b000.ps7-ethernet: link down
xemacps e000b000.ps7-ethernet: link up (1000/FULL)
random: nonblocking pool is initialized
zynq> ping 169.254.29.208
PING 169.254.29.208 (169.254.29.208): 56 data bytes
ping: sendto: Network is unreachable
zynq> ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
^C
--- 192.168.1.10 ping statistics ---
282 packets transmitted, 0 packets received, 100% packet loss

 

 

I'm using Vivado 2014.2 under Ubuntu 14.04 and didn't do any changes in addition to the tutorial.

So anyone can help me with this? Thanks a lot!

 

Best regards,

JImmy

Tags (2)
0 Kudos
3 Replies
Visitor l6j6p6
Visitor
7,987 Views
Registered: ‎08-06-2015

Re: Ethernet on Zynq doesn't work

By the way, I checked the answer here:

https://forums.xilinx.com/t5/Embedded-Linux/Zynq-Ethernet-Issues/m-p/639672#M13390

 

I followed the answr to set the PC host address as 192.168.1.10 and set Zynq as 192.168.1.11. Now the PC is able to ping the Zynq board without any problem, but the ethernet on Zynq still doesnot work:

 

 

 zynq> ping 192.168.1.11
PING 192.168.1.11 (192.168.1.11): 56 data bytes
^C
--- 192.168.1.11 ping statistics ---
263 packets transmitted, 0 packets received, 100% packet loss

zynq> ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
^C
--- 192.168.1.10 ping statistics ---
12 packets transmitted, 0 packets received, 100% packet loss

And here is part of my .dts file (zynq_zybo.dts):

 

 

		ps7_ethernet_0: ps7-ethernet@e000b000 {
			#address-cells = <1>;
			#size-cells = <0>;
			clock-names = "ref_clk", "aper_clk";
			clocks = <&clkc 13>, <&clkc 30>;
			compatible = "xlnx,ps7-ethernet-1.00.a";
			interrupt-parent = <&ps7_scugic_0>;
			interrupts = <0 22 4>;
			phy-handle = <&phy0>;
			phy-mode = "rgmii-id";
			reg = <0xe000b000 0x1000>;
			xlnx,eth-mode = <0x1>;
			xlnx,has-mdio = <0x1>;
			xlnx,ptp-enet-clock = <108333336>;
			mdio {
				#address-cells = <1>;
				#size-cells = <0>;
				phy0: phy@1 {
					compatible = "realtek,RTL8211E";
					device_type = "ethernet-phy";
					reg = <1>;
				} ;
			} ;
		} ;
0 Kudos
Xilinx Employee
Xilinx Employee
7,959 Views
Registered: ‎07-01-2010

Re: Ethernet on Zynq doesn't work

@l6j6p6

 

I understand that you have an issue with Zynq PS eth0, is that correct?

 

Do you have a chance to verify the baremetal application /lwip to see if you are able to ping on standalone?

 

If the standalone works fine , i suspect dts issue or the Ethernet IP address/subnet issue. 

 

Can you refer to the dts entries and see if you have all the details add to the eth0 node?

http://www.xilinx.com/support/answers/59554.html

 

Regards,

Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
Visitor l6j6p6
Visitor
7,922 Views
Registered: ‎08-06-2015

Re: Ethernet on Zynq doesn't work

Hey achuta!

 

Thanks for the reply! 

 

I am not sure how to use /lwIP in bare metal, but I know what you mean. To check on bare metal to see whether this is a configuration problem of Linux or not. 

 

I'll try to find a way to do this and let you know the update, Thanks!

 

Regards,

Jimmy

0 Kudos