Hi guys,

I am trying to get up and running EMAC0 over FPGA in 100Mb/s. 1000Mb/s is
working fine.
To bring up/down interface I am using ifplugd. It can successfully plug
100Mb cable and driver sets libphy: stmmac-0:01 - Link is Up - 100/Full and
if I plug 1000Mb cable it set it to 1000/Full.

But if I am trying to obtain lease for IP or use static settings with 100Mb
cable, I cannot communicate with the network. But with 1000Mb cable
everything works fine.

I am using Buildroot 2015.11.1, socfpga-3.10-ltsi kernel from altera Git
and uclibc.
I did not do any changes to stock socfpga.dtsi, only modified socfpga.dts
to point eth0 to gmac0 and use GMII instead RGMII and some other not
relevant changes for qspi NOR flash etc.
Also in Uboot I enabled the EMAC0 support and some other macros according
to am706.pdf from Altera like:

#define CONFIG_EMAC_BASE   CONFIG_EMAC0_BASE
#define CONFIG_PHY_INTERFACE_MODE    SOCFPGA_PHYSEL_ENUM_MII

Here is the boot listing:

stmmac - user ID: 0x10, Synopsys ID: 0x37
 Ring mode enabled
 DMA HW capability register supported
 Enhanced/Alternate descriptors
        Enabled extended descriptors
 RX Checksum Offload Engine supported (type 2)
 TX Checksum insertion supported
 Enable RX Mitigation via HW Watchdog Timer
libphy: stmmac: probed
eth0: PHY ID 00221611 at 1 IRQ POLL (stmmac-0:01) active

Device tree:

    aliases {
        /* this allow the ethaddr uboot environmnet variable contents
         * to be added to the gmac1 device tree blob.
         */
        ethernet0 = &gmac0;
    };

and

        ethernet@ff700000 {
            phy-mode = "gmii";
            phy-addr = <0xffffffff>; /* probe for phy addr */
            status = "okay";
        };

Any ideas?
Thanks!

BR
Michal Gonda
_______________________________________________
Rfi mailing list
[email protected]
http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi

Reply via email to