public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto
@ 2017-07-12 19:21 Miquel RAYNAL
  2017-07-12 19:52 ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Miquel RAYNAL @ 2017-07-12 19:21 UTC (permalink / raw)
  To: u-boot

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

-- 
Miquel Raynal, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto
  2017-07-12 19:21 [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto Miquel RAYNAL
@ 2017-07-12 19:52 ` Fabio Estevam
  2017-07-12 20:17   ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2017-07-12 19:52 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto
  2017-07-12 19:52 ` Fabio Estevam
@ 2017-07-12 20:17   ` Fabio Estevam
  2017-07-13  6:34     ` Miquel RAYNAL
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2017-07-12 20:17 UTC (permalink / raw)
  To: u-boot

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sabreautonet.patch
Type: text/x-patch
Size: 2216 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170712/68bacb1a/attachment.bin>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto
  2017-07-12 20:17   ` Fabio Estevam
@ 2017-07-13  6:34     ` Miquel RAYNAL
  2017-07-13 14:07       ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Miquel RAYNAL @ 2017-07-13  6:34 UTC (permalink / raw)
  To: u-boot

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


-- 
Miquel Raynal, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto
  2017-07-13  6:34     ` Miquel RAYNAL
@ 2017-07-13 14:07       ` Fabio Estevam
  2017-07-13 14:40         ` Stefano Babic
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2017-07-13 14:07 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto
  2017-07-13 14:07       ` Fabio Estevam
@ 2017-07-13 14:40         ` Stefano Babic
  0 siblings, 0 replies; 6+ messages in thread
From: Stefano Babic @ 2017-07-13 14:40 UTC (permalink / raw)
  To: u-boot

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


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-13 14:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12 19:21 [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto Miquel RAYNAL
2017-07-12 19:52 ` Fabio Estevam
2017-07-12 20:17   ` Fabio Estevam
2017-07-13  6:34     ` Miquel RAYNAL
2017-07-13 14:07       ` Fabio Estevam
2017-07-13 14:40         ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox