<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: P1021rdb not able to ping using eTSEC2 in SGMII mode in PowerQUICC Processors</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1135008#M3340</link>
    <description>&lt;P&gt;Please define&amp;nbsp;enet1 similar as the following.&lt;/P&gt;
&lt;P&gt;enet1: ethernet@b1000 {&lt;BR /&gt;phy-handle = &amp;lt;&amp;amp;phy0&amp;gt;;&lt;BR /&gt;tbi-handle = &amp;lt;&amp;amp;tbi1&amp;gt;;&lt;BR /&gt;phy-connection-type = "sgmii";&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mdio@24000 {&lt;/P&gt;
&lt;P&gt;phy0: ethernet-phy@0 {&lt;/P&gt;
&lt;P&gt;interrupt-parent = &amp;lt;&amp;amp;mpic&amp;gt;;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;interrupts =&amp;lt;3&amp;nbsp;&lt;LI-EMOJI id="lia_red-heart" title=":red_heart:"&gt;&lt;/LI-EMOJI&gt; 1 0 0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;reg = &amp;lt;0x0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 02:42:49 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2020-09-04T02:42:49Z</dc:date>
    <item>
      <title>P1021rdb not able to ping using eTSEC2 in SGMII mode</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1132995#M3337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having a problem not being able to ping to an ipaddress. I'm wokring on P1021rdb PowerQUICC based processor, configured eTSEC2 in SGMII mode. The link shows being "Link - Up" but unable to ping&lt;/P&gt;&lt;P&gt;I'm only using ethernet 1 (eTSEC2 in SGMII mode)&lt;/P&gt;&lt;P&gt;Please find all the info regarding the board bring up, uboot output, dts,&lt;BR /&gt;bootUp file and Application which configures the ethernet is attached&lt;BR /&gt;Please go through the files.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DTS:&lt;/P&gt;&lt;P&gt;==========p1021rdb-pc.dtsi========&lt;/P&gt;&lt;P&gt;&amp;amp;soc {&lt;/P&gt;&lt;P&gt;mdio@25000 {&lt;BR /&gt;tbi1:tbi-phy@1f {&lt;BR /&gt;reg = &amp;lt;0x1f&amp;gt;;&lt;BR /&gt;device_type = "tbi-phy";&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;enet1: ethernet@b1000 {&lt;BR /&gt;// fixed-link =&amp;lt;31 1 1000 0 0&amp;gt;;&lt;BR /&gt;//phy-handle = &amp;lt;&amp;amp;phy0&amp;gt;;&lt;BR /&gt;phy-handle = &amp;lt;&amp;amp;tbi1&amp;gt;;&lt;BR /&gt;tbi-handle = &amp;lt;&amp;amp;tbi1&amp;gt;;&lt;BR /&gt;phy-connection-type = "sgmii";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;=========p1021si-pre.dtsi=========&lt;/P&gt;&lt;P&gt;aliases {&lt;BR /&gt;serial0 = &amp;amp;serial0;&lt;BR /&gt;serial1 = &amp;amp;serial1;&lt;BR /&gt;// ethernet0 = &amp;amp;enet0;&lt;BR /&gt;ethernet1 = &amp;amp;enet1;&lt;BR /&gt;// ethernet2 = &amp;amp;enet2;&lt;BR /&gt;// pci0 = &amp;amp;pci0;&lt;BR /&gt;// pci1 = &amp;amp;pci1;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;========p1021si-post.dtsi==========&lt;/P&gt;&lt;P&gt;enet1: enet1_grp2: ethernet@b1000 {&lt;BR /&gt;// ptimer-handle = &amp;lt;&amp;amp;ptp_timer&amp;gt;;&lt;BR /&gt;fsl,pmc-handle = &amp;lt;&amp;amp;etsec2_clk&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;global-utilities@e0000 {&lt;BR /&gt;compatible = "fsl,p1021-guts";&lt;BR /&gt;reg = &amp;lt;0xe0000 0x1000&amp;gt;;&lt;BR /&gt;fsl,has-rstcr;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=========pq3-etsec2-1.dtsi=======&lt;BR /&gt;mdio@25000 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "fsl,gianfar-tbi"; //changed from etsec2-tbi to gianfar-tbi since tbipa = 0x030&lt;BR /&gt;reg = &amp;lt;0x25000 0x1000 0xb1030 0x4&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ethernet@b1000 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;device_type = "network";&lt;BR /&gt;model = "eTSEC";&lt;BR /&gt;compatible = "fsl,etsec2";&lt;BR /&gt;fsl,num_rx_queues = &amp;lt;0x8&amp;gt;;&lt;BR /&gt;fsl,num_tx_queues = &amp;lt;0x8&amp;gt;;&lt;BR /&gt;fsl,magic-packet;&lt;BR /&gt;local-mac-address = [ 00 11 22 33 44 77 ];&lt;BR /&gt;ranges;&lt;/P&gt;&lt;P&gt;queue-group@b1000 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0xb1000 0x1000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;35 2 0 0 36 2 0 0 40 2 0 0&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;==========pq3-etsec2-grp2-1.dtsi============&lt;BR /&gt;&amp;amp;enet1_grp2 {&lt;BR /&gt;queue-group@b5000 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0xb5000 0x1000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;51 2 0 0 52 2 0 0 67 2 0 0&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;======UBOOT========&lt;BR /&gt;==&amp;gt;print&lt;BR /&gt;eth1addr=00:11:22:02:01:01&lt;BR /&gt;eth2addr=00:11:22:02:01:01&lt;BR /&gt;ethact=eTSEC2&lt;BR /&gt;ethaddr=00:11:22:33:44:55&lt;BR /&gt;ethprime=eTSEC2&lt;BR /&gt;ipaddr=192.168.30.176&lt;/P&gt;&lt;P&gt;=&amp;gt; mdio list&lt;BR /&gt;FSL_MDIO:&lt;BR /&gt;0 - Generic PHY &amp;lt;--&amp;gt; eTSEC2&lt;BR /&gt;15 - TI DP83867 &amp;lt;--&amp;gt; eTSEC3&lt;BR /&gt;17 - Generic PHY &amp;lt;--&amp;gt; eTSEC1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;==============&lt;BR /&gt;After board bringUp, we created an application which configures the ethernet,&lt;BR /&gt;we are using ELECTRICAL SFP (Finisar).&lt;BR /&gt;Application successfully configures the ethernet and the Link is Up,&lt;BR /&gt;but not able to use PING&lt;/P&gt;&lt;P&gt;Attached the BootUp file and Application Output File. Please check the files&lt;BR /&gt;===============================&lt;/P&gt;&lt;P&gt;=========ethtool=========&lt;BR /&gt;root@p1021rdb:~# ethtool eth0&lt;BR /&gt;Settings for eth0:&lt;BR /&gt;Supported ports: [ MII ]&lt;BR /&gt;Supported link modes: 1000baseT/Full&lt;BR /&gt;Supported pause frame use: Symmetric Receive-only&lt;BR /&gt;Supports auto-negotiation: Yes&lt;BR /&gt;Advertised link modes: 1000baseT/Full&lt;BR /&gt;Advertised pause frame use: No&lt;BR /&gt;Advertised auto-negotiation: Yes&lt;BR /&gt;Speed: 1000Mb/s&lt;BR /&gt;Duplex: Full&lt;BR /&gt;Port: MII&lt;BR /&gt;PHYAD: 31&lt;BR /&gt;Transceiver: external&lt;BR /&gt;Auto-negotiation: on&lt;BR /&gt;Supports Wake-on: g&lt;BR /&gt;Wake-on: d&lt;BR /&gt;Current message level: 0x0000003f (63)&lt;BR /&gt;drv probe link timer ifdown ifup&lt;BR /&gt;Link detected: yes&lt;/P&gt;&lt;P&gt;root@p1021rdb:~# ethtool -a eth0&lt;BR /&gt;Pa Ker: gfar_gpauseparam epause-&amp;gt;autoneg: 0 epause-&amp;gt;rx_pause: 0 epause-&amp;gt;tx_pause: 0&lt;BR /&gt;use parameters for eth0:&lt;BR /&gt;Autonegotiate: off&lt;BR /&gt;RX: off&lt;BR /&gt;TX: off&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;============PING=================&lt;/P&gt;&lt;P&gt;root@p1021rdb:~# ping 192.168.30.123&lt;BR /&gt;PIN Ker: gfar_start_xmit&lt;BR /&gt;G 192.168.30.123 (192.168.30.123) 56(84) bytes of data.&lt;BR /&gt;Ker: gfar_start_xmit&lt;BR /&gt;Ker: gfar_start_xmit&lt;BR /&gt;Ker: gfar_start_xmit&lt;BR /&gt;From 192.168.30.51 icmp_seq=1 Dest Ker: gfar_start_xmit&lt;BR /&gt;ination Host Unreachable&lt;BR /&gt;From 192.168.30.51 icmp_seq=2 Destination Host Unreachable&lt;BR /&gt;From 192.168.30.51 icmp_seq=3 Destination Host Unreachable&lt;BR /&gt;Ker: gfar_start_xmit&lt;BR /&gt;Ker: gfar_start_xmit&lt;BR /&gt;From 192.168.30.51 icmp_seq=4 Desti Ker: gfar_start_xmit&lt;BR /&gt;nation Host Unreachable&lt;BR /&gt;From 192.168.30.51 icmp_seq=5 Destination Host Unreachable&lt;BR /&gt;From 192.168.30.51 icmp_seq=6 Destination Host Unreachable&lt;BR /&gt;^C&lt;BR /&gt;--- 192.168.30.123 ping statistics ---&lt;BR /&gt;7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6000ms&lt;BR /&gt;pipe 3&lt;BR /&gt;root@p1021rdb:~# Ker: gfar_start_xmit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;========&lt;BR /&gt;Awaiting for response&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 08:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1132995#M3337</guid>
      <dc:creator>solomon</dc:creator>
      <dc:date>2020-09-01T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: P1021rdb not able to ping using eTSEC2 in SGMII mode</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1135008#M3340</link>
      <description>&lt;P&gt;Please define&amp;nbsp;enet1 similar as the following.&lt;/P&gt;
&lt;P&gt;enet1: ethernet@b1000 {&lt;BR /&gt;phy-handle = &amp;lt;&amp;amp;phy0&amp;gt;;&lt;BR /&gt;tbi-handle = &amp;lt;&amp;amp;tbi1&amp;gt;;&lt;BR /&gt;phy-connection-type = "sgmii";&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mdio@24000 {&lt;/P&gt;
&lt;P&gt;phy0: ethernet-phy@0 {&lt;/P&gt;
&lt;P&gt;interrupt-parent = &amp;lt;&amp;amp;mpic&amp;gt;;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;interrupts =&amp;lt;3&amp;nbsp;&lt;LI-EMOJI id="lia_red-heart" title=":red_heart:"&gt;&lt;/LI-EMOJI&gt; 1 0 0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;reg = &amp;lt;0x0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 02:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1135008#M3340</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-09-04T02:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: P1021rdb not able to ping using eTSEC2 in SGMII mode</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1149518#M3345</link>
      <description>&lt;P&gt;Sorry i did not provide complete imformation&lt;/P&gt;&lt;P&gt;We are using Finisar (electrical) phy, where it is being configured via I2C.&lt;BR /&gt;For data transfer we are using SerDes in SGMII mode and eTSEC2 with internal TBI PHY is used.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 07:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1149518#M3345</guid>
      <dc:creator>solomon</dc:creator>
      <dc:date>2020-09-07T07:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: P1021rdb not able to ping using eTSEC2 in SGMII mode</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1150091#M3348</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;solomon,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to contact the PHY manufacturer for driver availability.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to&amp;nbsp;&lt;A href="https://elixir.bootlin.com/linux/latest/source/drivers/net/phy/mdio-i2c.c" target="_blank"&gt;https://elixir.bootlin.com/linux/latest/source/drivers/net/phy/mdio-i2c.c&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You need to replace phy_read()/phy_write in PHY device driver with i2c read/write functions.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 06:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1150091#M3348</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-09-08T06:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: P1021rdb not able to ping using eTSEC2 in SGMII mode</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1151499#M3352</link>
      <description>&lt;P&gt;Found the solution for the error.&lt;/P&gt;&lt;P&gt;I was going through the Gianfar.c and in the gfar_start() function I've observed that the below two lines of code which enables the queues were commented.&lt;/P&gt;&lt;P&gt;gfar_write(&amp;amp;regs-&amp;gt;rqueue, priv-&amp;gt;rqueue);&lt;BR /&gt;gfar_write(&amp;amp;regs-&amp;gt;tqueue, priv-&amp;gt;tqueue);&lt;/P&gt;&lt;P&gt;i don't remember why it was commented out, but thank you for the support given&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 09:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/P1021rdb-not-able-to-ping-using-eTSEC2-in-SGMII-mode/m-p/1151499#M3352</guid>
      <dc:creator>solomon</dc:creator>
      <dc:date>2020-09-10T09:50:04Z</dc:date>
    </item>
  </channel>
</rss>

