My partner Goiatz Leibar and me are facing this issue.
First of all, say we have a customized board with the IMX6UL processor. and with the kernel 3.14.38-6UL
The fact is that we got ethernet working in u-boot but not in kernel.
We use ENET1 and as we also use the GPIO1_IO06 and GPIO1_IO07 for other purposses, the MDIO and MDC are in "ENET2_RX_DATA0 and ENET2_RX_DATA1"
In U-BOOT (working fine)
This are the chages so ethernet works in u-boot.
We select FEC 0, (mx6ul_14x14_evk.h)
We change the MDIO and MDC pins (mx6ul_14x14_evk.c)
But when we try to make it works in kernel, we do the following with no succsses
In kernel's device tree (imx6ul14x14-evk.dts):
We disable FEC2 and we also add our board pins
Once the system has booted, we make an "ifconfig -a" and here you can see how MAC address is the one we asigned before in u-boot.
Please find attached the .log file when the board boots
Original Attachment has been moved to: Custom_boot.txt.zip