News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

ethernet not working

Started by amdis2004, February 06, 2020, 02:57:00 PM

Previous topic - Next topic

amdis2004

Hi there,
I use the module TE0808-2 with the TEBF0808-03 carrier board.
I created the Petalinux project and deploy full Ubuntu image running on SD card, everything is working and the situation is stable except the ethernet!
with ifconfig I have only "lo" which is loopback and eth0 is not recognized However with ifconfig -a I have all connection, but not working!

I used the 2016.3 vivado and petalinux and I just add my PL IP block on the Trenz default project with goes on the website in the download section, non-prebuilt one.
in the following, there are some logs related to the ethernet section.

Would you please help me out of here?

Many thanks



U-Boot 2016.07 (Feb 06 2020 - 13:55:21 +0100)
--------------------- U-Boot first run log-----------------------
I2C:   ready
DRAM:  4 GiB
EL Level:       EL2
Chip ID:        xczuunknown
MMC:   sdhci@ff170000: 0
SF: Detected N25Q256A with page size 512 Bytes, erase size 8 KiB, total 64 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ZYNQ GEM: ff0e0000, phyaddr 0, interface rgmii-id

---------------------kernel dmesg log------------------

[    2.148380] libphy: MACB_mii_bus: probed
[    2.217540] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 22 (00:0a:35:00:22:01)
[    2.227281] Marvell 88E1510 ff0e0000.etherne:01: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=ff0e0000.etherne:01, irq=-1)

--------------------- ifconfig-----------------------
ubuntu@trenz:~$ ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:11840 (11.8 KB)  TX bytes:11840 (11.8 KB)


----------------ifconfig -a ---------------------------------
ubuntu@trenz:~$ ifconfig -a
can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-0
          NOARP  MTU:16  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:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:10

eth0      Link encap:Ethernet  HWaddr 00:0a:35:00:22:01                         
          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:22                                                         
                                                                               
lo        Link encap:Local Loopback                                             
          inet addr:127.0.0.1  Mask:255.0.0.0                                   
          inet6 addr: ::1/128 Scope:Host                                       
          UP LOOPBACK RUNNING  MTU:65536  Metric:1                             
          RX packets:320 errors:0 dropped:0 overruns:0 frame:0                 
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0               
          collisions:0 txqueuelen:1                                             
          RX bytes:23680 (23.6 KB)  TX bytes:23680 (23.6 KB)                   
                                                                               
sit0      Link encap:IPv6-in-IPv4                                               
          NOARP  MTU:1480  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:1                                             
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 

-----------------------system-top.dts -----------------------
&gem3 {
   status = "okay";
   local-mac-address = [00 0a 35 00 97 66];
   phy-mode = "rgmii-id";
   phy-handle = <&phy0>;
   phy0: phy@0 {
      reg = <0x0>;
      ti,rx-internal-delay = <0x8>;
      ti,tx-internal-delay = <0xa>;
      ti,fifo-depth = <0x1>;
   };

};
.
.
.

&xlnx_dp {
   status = "okay";
   xlnx,max-lanes = <1>;
   phy-names = "dp-phy0";
   phys = <&lane1 5 0 3 27000000>;
};


-------------------------pcw.dtsi-------------------
&gem3 {
   phy-mode = "rgmii-id";
   status = "okay";
   xlnx,ptp-enet-clock = <0x0>;
};
-------------------------------------------------------

-------------zynnqmp-clk.dtsi-----------------
&gem3 {
   clocks = <&clk125>, <&clk125>, <&clk125>;
};
--------------------------------------------------





JH

Hi,
is you TE0808-2  ES? Vivado 16.2 is very old and from the beginning of U+ Zynq. You should switch to a newer version and in case you you use ES also to production silicon.  Many thing which works not proper in the past are fixed by xilinx in newer Vivado/petalinux versions.
our 16.2 includes petalinux project: <design_name>/os/petalinux
You can check device tree there, but we can't help more, sorry.
br
John