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: 
515 Views
Registered: ‎09-10-2018

how to setup ethernet on open source linux

Jump to solution

Hi

 

I am using zybo board. I configured MIO to connect to Ethernet. I am using open source linux to setup ethernet. I am assuming that ethernet driver is up and running. I did the following so far:

 

zynq> ip link set eth0 up
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready


zynq> ip link set eth0 up


zynq> ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:35:00:01:22
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:27 Base address:0xb000

 

zynq> ifconfig eth0 192.168.1.0


zynq> ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:35:00:01:22
inet addr:192.168.1.0 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:27 Base address:0xb000

 

from above results, i m assuming ethernet driver is up and running but I cant ping any IP on internet nor I can ping my zybo board from another computer.

 

Could somebody please help me understand what am I missing?   My end goal is to do basic socket programming to fetch data and process.

 

Thanks you very much for your time!!!

0 Kudos
1 Solution

Accepted Solutions
452 Views
Registered: ‎09-10-2018

Re: how to setup ethernet on open source linux

Jump to solution

Hi

 

Please consider this thread closed. The issue was related to ethernet configurations missing in fsbl and I noticed it from u-boot. During u-boot i saw a message that 'no ethernet found'.

 

After fixing that, I just had to up the link, setup IP and gateway. Now, ping test is passing within the LAN and for internet as well.

 

Thanks to all of you!!

0 Kudos
3 Replies
Highlighted
470 Views
Registered: ‎09-10-2018

Re: how to setup ethernet on open source linux

Jump to solution

Has anybody tried to access LAN with opensource linux?

 

Should I try peta linux instead?

 

Hardware: Digilant Zybo board

0 Kudos
Moderator
Moderator
463 Views
Registered: ‎12-04-2016

Re: how to setup ethernet on open source linux

Jump to solution

Hi @ali.digitekeng

 

I would rather suggest to first refer xapp1082 which is based on petalinux 2018.1

https://www.xilinx.com/support/documentation/application_notes/xapp1082-zynq-eth.pdf

 

 

Best Regards

Shabbir

0 Kudos
453 Views
Registered: ‎09-10-2018

Re: how to setup ethernet on open source linux

Jump to solution

Hi

 

Please consider this thread closed. The issue was related to ethernet configurations missing in fsbl and I noticed it from u-boot. During u-boot i saw a message that 'no ethernet found'.

 

After fixing that, I just had to up the link, setup IP and gateway. Now, ping test is passing within the LAN and for internet as well.

 

Thanks to all of you!!

0 Kudos