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: 
Visitor jpvrensburg
Visitor
834 Views
Registered: ‎08-17-2017

Zynq 7015: PS GEM Through EMIO - U-Boot support

From U-boot we would like to network boot. Our set-up consists of an optical SFP transceiver where we use a Zynq 7015 device - the PS Ethernet block GEM1 is routed to a 1G/2.5G Ethernet PCS/PMA IP core in 1000BASE-X mode through the EMIO interface. The Ethernet link works fine in PetaLinux, but we can't get it to work from U-boot. According to features listed for the U-boot Ethernet driver this should be possible. We had a look at the community forums and came across the following post. By following the suggestions in this post we managed to get the zynq_gem driver to detect the device correctly from U-boot:

U-Boot 2016.07 (Mar 09 2018 - 13:07:32 +0200)

DRAM:  ECC disabled 1 GiB
MMC:   sdhci@e0100000: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ZYNQ GEM: e000c000, phyaddr 6, interface gmii
eth0: ethernet@e000c000
U-BOOT for

ethernet@e000c000 Waiting for PHY auto negotiation to complete........ done
BOOTP broadcast 1
BOOTP broadcast 2



Auto-negotiation completes and the output of the mii info command seems sensible:

PHY 0x06: OUI = 0x5D03, Model = 0x00, Rev = 0x00, 1000baseX, FDX


However, there is no data transmission or reception (we can't ping or dhcp). We had a look at the MDIO status register by running mii read 6 1, the value returned was 0x01EC. This value suggests that the link is up, there is no remote fault and auto-negotiation completed successfully. Initially, we used PetaLinux 2016.4, we upgraded to 2017.4 in the hopes of it fixing the issue. This however, did not solve our problem  - auto-negotiation now fails. We also tried switching from 1000Base-X to SGMII. We still could not get the auto-negotiation to complete.

We had a brief look at the zynq_gem.c driver. In the zynq_phy_init function there is a constant called supported, which only includes support up to SUPPORTED_1000baseT_Full. Does this mean that you cannot use an optical transceiver with this driver?

Any suggestions regarding this matter would be greatly appreciated.

0 Kudos
6 Replies
Highlighted
Moderator
Moderator
821 Views
Registered: ‎09-12-2007

Re: Zynq 7015: PS GEM Through EMIO - U-Boot support

What devicetree are you using? are you updating this to include the PCS/PMA?

0 Kudos
Visitor jpvrensburg
Visitor
814 Views
Registered: ‎08-17-2017

Re: Zynq 7015: PS GEM Through EMIO - U-Boot support

 

Hi @stephenm

 

I'm fairly sure that I'm attaching the Xilinx PCS/PMA Phy driver correctly in the device-tree. This is how my device-tree entry looks:

 

 

&gem1 {
    status = "okay";
    local-mac-address = [00 0a 35 00 1e 59];
    phy-mode = "gmii";
    phy-handle = <&phy1>;
    phy1: phy@6 {
        compatible = "Xilinx PCS/PMA PHY";
        device_type = "ethernet-phy";
        xlnx,phy-type = <0x5>;
        reg = <0x6>;
    };  
};

 

 

I have no problem with the Ethernet link in Linux. Can you perhaps confirm whether the Xilinx U-boot Ethernet driver supports the use of an optical transceiver using 1000Base-X.

 

 

0 Kudos
Moderator
Moderator
802 Views
Registered: ‎09-12-2007

Re: Zynq 7015: PS GEM Through EMIO - U-Boot support

Yes, this is supported in uboot

0 Kudos
Visitor jpvrensburg
Visitor
743 Views
Registered: ‎08-17-2017

Re: Zynq 7015: PS GEM Through EMIO - U-Boot support

Hi @stephenm

 

Do you perhaps have any other suggestions? 

0 Kudos
Moderator
Moderator
737 Views
Registered: ‎09-12-2007

Re: Zynq 7015: PS GEM Through EMIO - U-Boot support

You can read the pcs/pma registers in uboot to see if the block lock is going high for example.

0 Kudos
Participant woodmeister123
Participant
345 Views
Registered: ‎05-09-2018

Re: Zynq 7015: PS GEM Through EMIO - U-Boot support

Was there any solution to this?

We have the same issue, everything works fine in Linux but getting no output from uboot, but no error messages. The PS ethernet works fine through uboot

0 Kudos