[U-Boot] Ethernet not functional on i.MX6DL Sabre Auto

Hi,
I am using a Sabre Auto board with an i.MX6 Dual Lite.
When I compile U-boot with defconfig file mx6dlsabreauto_defconfig, the network is not functionnal. Only the orange LED on the RJ45 port is blinking and dhcp requests never end. In menuconfig I saw numerous unselected options that I guess should be enabled. But event with that, I could not get through:
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_PHYLIB=y CONFIG_NETDEVICES=y CONFIG_FEC_MXC=y
The issue is present in v2017.05 and v2017.07 (did not tried previous versions). Any idea of what could possibly be wrong ?
Boot log follows.
Thank you, Miquèl
U-Boot 2017.07-dirty (Jul 12 2017 - 16:12:17 +0200)
CPU: Freescale i.MX6DL rev1.1 at 792MHz CPU: Automotive temperature grade (-40C to 125C) at 44C Reset cause: POR Board: MX6Q-Sabreauto revA I2C: ready DRAM: 2 GiB PMIC: PFUZE100 ID=0x10 Flash: 32 MiB NAND: 256 MiB MMC: FSL_SDHC: 0 *** Warning - bad CRC, using default environment
No panel detected: default to Hannstar-XGA Display: Hannstar-XGA (1024x768) In: serial Out: serial Err: serial Net: FEC [PRIME] Hit any key to stop autoboot: 0 BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 BOOTP broadcast 4 BOOTP broadcast 5 BOOTP broadcast 6 BOOTP broadcast 7 BOOTP broadcast 8 BOOTP broadcast 9 BOOTP broadcast 10 BOOTP broadcast 11 BOOTP broadcast 12 BOOTP broadcast 13 BOOTP broadcast 14 BOOTP broadcast 15 BOOTP broadcast 16 BOOTP broadcast 17
Retry time exceeded; starting again

Hi Miquel,
On Wed, Jul 12, 2017 at 4:21 PM, Miquel RAYNAL miquel.raynal@free-electrons.com wrote:
Hi,
I am using a Sabre Auto board with an i.MX6 Dual Lite.
When I compile U-boot with defconfig file mx6dlsabreauto_defconfig, the network is not functionnal. Only the orange LED on the RJ45 port is blinking and dhcp requests never end. In menuconfig I saw numerous unselected options that I guess should be enabled. But event with that, I could not get through:
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_PHYLIB=y CONFIG_NETDEVICES=y CONFIG_FEC_MXC=y
The issue is present in v2017.05 and v2017.07 (did not tried previous versions). Any idea of what could possibly be wrong ?
I don't have my mx6sabreauto handy to investigate this problem.
Does the change below make Ethernet to work again? https://pastebin.com/VnEdBCa6

On Wed, Jul 12, 2017 at 4:52 PM, Fabio Estevam festevam@gmail.com wrote:
I don't have my mx6sabreauto handy to investigate this problem.
Does the change below make Ethernet to work again? https://pastebin.com/VnEdBCa6
And here is a patch against u-boot-imx tree ( http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary)
No need to change anything in defconfig. Only do:
make mx6sabreauto_defconfig make
and Ethernet should work with the patch applied.
Please let me know how your test goes.

Hi Fabio,
On Wed, 12 Jul 2017 17:17:28 -0300 Fabio Estevam festevam@gmail.com wrote:
On Wed, Jul 12, 2017 at 4:52 PM, Fabio Estevam festevam@gmail.com wrote:
I don't have my mx6sabreauto handy to investigate this problem.
Does the change below make Ethernet to work again? https://pastebin.com/VnEdBCa6
And here is a patch against u-boot-imx tree ( http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary)
No need to change anything in defconfig. Only do:
make mx6sabreauto_defconfig make
and Ethernet should work with the patch applied.
Please let me know how your test goes.
Thank you for the very quick answer, I was not able to test the patch yesterday but now I can confirm it works and Ethernet is functional again on mx6sabreauto design.
The patch you sent does only apply on imx tree though (the path contains mx6sabreauto instead of mx6qsabreauto).
Best regards, Miquèl

Hi Miquel,
On Thu, Jul 13, 2017 at 3:34 AM, Miquel RAYNAL miquel.raynal@free-electrons.com wrote:
Thank you for the very quick answer, I was not able to test the patch yesterday but now I can confirm it works and Ethernet is functional again on mx6sabreauto design.
Thanks for testing!
The patch you sent does only apply on imx tree though (the path contains mx6sabreauto instead of mx6qsabreauto).
On the latest u-boot-imx tree the mx6sabreauto have been converted to SPL, so the same SPL + u-boot.img can boot mx6q/mx6dl/mx6qp sabreauto boards.
That's the reason we have renamed it from mx6qsabreauto to the more generic mx6sabreauto naming.

On 13/07/2017 16:07, Fabio Estevam wrote:
Hi Miquel,
On Thu, Jul 13, 2017 at 3:34 AM, Miquel RAYNAL miquel.raynal@free-electrons.com wrote:
Thank you for the very quick answer, I was not able to test the patch yesterday but now I can confirm it works and Ethernet is functional again on mx6sabreauto design.
Thanks for testing!
The patch you sent does only apply on imx tree though (the path contains mx6sabreauto instead of mx6qsabreauto).
On the latest u-boot-imx tree the mx6sabreauto have been converted to SPL, so the same SPL + u-boot.img can boot mx6q/mx6dl/mx6qp sabreauto boards.
That's the reason we have renamed it from mx6qsabreauto to the more generic mx6sabreauto naming.
Right - thanks for fix and testing. I have already merged it into u-boot-imx, thanks !
Best regards, Stefano
participants (3)
-
Fabio Estevam
-
Miquel RAYNAL
-
Stefano Babic