AnsweredAssumed Answered

IMX6SX FEC1 configuration for Linux

Question asked by Heng Yew Lim on Jul 7, 2016
Latest reply on Jul 12, 2016 by Carlos_Musich

I have a custom board where I am using a single Ethernet connection on ENET1 (fec1 in Linux).  I am able to ping and transfer a file using TFTP in Uboot, but I am unable to get the link up in Linux. I have duplicate the iomux settings from Uboot to the dts file.

 

I have 2 questions:

1. How do I configure the IOMUX GPR1 register through the fec driver? I need to set bit 13=[1] since I am using an external crystal for TX_CLK.

2. Do I need to configure the PHY? I am using a Micrel PHY similar to iMX6UL EVK and need to write to PHY reg 0x1f for it to work in Uboot.

 

Log from linux:

fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)

IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

udhcpc (v1.24.2) started

Sending discover...

Sending discover...

Sending discover...

No lease, failing

Outcomes