Jump to content
  • 0

Ethernet not working on petalinux [Arty 35T board]


Fabian Pichardo

Question

I included this description in the dts:

 

&axi_ethernetlite_0{

 local-mac-address = [00 0a 35 00 01 22];

 compatible = "xlnx,xps-ethernetlite-1.00.a";

 device_type = "network";

 phy-handle = <&phy0>;

 xlnx,has-mdio = <0x1>;

 interrupt-parent = <&microblaze_0_axi_intc>;

 xlnx,duplex = <0x1>;

 xlnx,include-internal-loopback = <0x1>;

 xlnx,rx-ping-pong = <0x1>;

 xlnx,tx-ping-pong = <0x1>;

 xlnx,use-internal = <0x0>;

 mdio {

   #address-cells = <1>;

   #size-cells = <0>;

   phy0: phy@1 {

     device_type = "ethernet-phy";

     reg = <1>;

   };

 };

};

 

The petalinux build it is ok as well as the flash to the board (running as INITRD)

Screenshotfrom2023-03-2811-40-25.thumb.png.431bad7b0425f74b46091db9899d450b.png

Screenshotfrom2023-03-2811-48-18.thumb.png.54562fd10381f70454c9440c4b7b3f91.png

 

 

However, i am not able to ping from my host PC (Ubuntu 22). I only get:

mypc@xxx:~$ ping 192.168.0.10

PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.

From 192.168.0.103 icmp_seq=1 Destination Host Unreachable

From 192.168.0.103 icmp_seq=2 Destination Host Unreachable

From 192.168.0.103 icmp_seq=3 Destination Host Unreachable

From 192.168.0.103 icmp_seq=4 Destination Host Unreachable

From 192.168.0.103 icmp_seq=5 Destination Host Unreachable

From 192.168.0.103 icmp_seq=6 Destination Host Unreachable

 

On the other hand, if i ping from arty board to host PC i get:

artyA7_peta:~$ ping 192.168.0.11

PING 192.168.0.11 (192.168.0.11): 56 data bytes

and have no response at all.

Using wireshark it seems like this:

Screenshotfrom2023-03-2811-59-42.thumb.png.90317a7e0a7992cd8519398150f3173e.png

 

 

Running ip neigh in the host PC I get:

mypc@xxx:~$ ip neigh

192.168.0.10 dev eno1 lladdr 00:0a:35:00:01:22 STALE

192.168.0.1 dev wlo1 lladdr 5c:a6:e6:ea:7f:01 REACHABLE

169.254.169.254 dev wlo1 FAILED

192.168.0.10 dev wlo1 FAILED

 

So my question would be what is left to do to have it running?

 

Thanks in advance

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

1. Please post output for ip a on both arty and host.
2. Are you running a dhcp client on Arty or a dhcp server?

3. Are you running ubuntu22 in VM. If yes with NAT or bridge ?
4. Post device tree node for axi_ethernetlite_0 found in <petalinux_project>components/plnx_workspace/device-tree/device-tree/pl.dtsi

 

This may also help.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841972/Linux+Emaclite+Driver

 

Link to comment
Share on other sites

  • 0

Sure

1.

Arty

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0a:35:00:01:22 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.10/24 scope global eth0
       valid_lft forever preferred_lft forever

Host

2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether c8:5a:cf:be:20:a5 brd ff:ff:ff:ff:ff:ff
    altname enp2s0
    inet 192.168.0.14/24 brd 192.168.0.255 scope global noprefixroute eno1
       valid_lft forever preferred_lft forever
    inet6 fe80::550f:33bd:112c:b6c9/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

2. No, I am using static IPs

3. No, Ubuntu 22 on Host PC

4.

        axi_ethernetlite_0: ethernet@40e00000 {
            compatible = "xlnx,axi-ethernetlite-3.0", "xlnx,xps-ethernetlite-1.00.a";
            device_type = "network";
            interrupt-names = "ip2intc_irpt";
            interrupt-parent = <&microblaze_0_axi_intc>;
            interrupts = <2 0>;
            reg = <0x40e00000 0x10000>;
            xlnx,duplex = <0x1>;
            xlnx,include-global-buffers = <0x1>;
            xlnx,include-internal-loopback = <0x1>;
            xlnx,include-mdio = <0x1>;
            xlnx,rx-ping-pong = <0x1>;
            xlnx,s-axi-id-width = <0x1>;
            xlnx,select-xpm = <0x1>;
            xlnx,tx-ping-pong = <0x1>;
            xlnx,use-internal = <0x0>;
            axi_ethernetlite_0_mdio: mdio {
                #address-cells = <1>;
                #size-cells = <0>;
            };
        };

Link to comment
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
×
×
  • Create New...