IMX6SX FEC1 configuration for Linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX6SX FEC1 configuration for Linux

1,797 次查看
hengyewlim
Contributor III

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

标签 (1)
2 回复数

1,338 次查看
hengyewlim
Contributor III

I managed to get it working by modifying mach-imx6sx.c in arch/arm/mach-imx.

1,338 次查看
Carlos_Musich
NXP Employee
NXP Employee

Thank you for sharing your comments Heng.

Regards,

Carlos

0 项奖励
回复