Fabian Pichardo Posted March 28, 2023 Share Posted March 28, 2023 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 = <µblaze_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) 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: 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 More sharing options...
1 Fabian Pichardo Posted March 31, 2023 Author Share Posted March 31, 2023 [SOLVED]: Clock Frequency for Ethernet was not exact. Was set as 25.0234 instead of just 25.00 MHz. Link to comment Share on other sites More sharing options...
0 Ionel Posted March 29, 2023 Share Posted March 29, 2023 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 More sharing options...
0 Fabian Pichardo Posted March 29, 2023 Author Share Posted March 29, 2023 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 = <µblaze_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 More sharing options...
Question
Fabian Pichardo
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 = <µblaze_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)
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:
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now