All of lore.kernel.org
 help / color / mirror / Atom feed
* data abort compiling u-boot with GCC != 6.4
@ 2020-03-17 17:28 Federico Giovanardi
  2020-03-17 19:07 ` [meta-freescale] " Max Krummenacher
  0 siblings, 1 reply; 2+ messages in thread
From: Federico Giovanardi @ 2020-03-17 17:28 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]

I'm getting a data-abort exception every time i access the FEC ethernet device from u-boot; it happens using tftp or just ping.

> 
> => ping 172.31.4.2
> Using FEC device
> data abort
> pc : [<4ffd769c>]          lr : [<4ffd8960>]
> reloc pc : [<1782d69c>]    lr : [<1782e960>]
> sp : 4f5a7d00  ip : 0000006a     fp : 4ffb427c
> r10: 00000000  r9 : 4f5a7eb8     r8 : 4ffee74c
> r7 : 00000001  r6 : 00000000     r5 : 0000002a  r4 : 4ffec94e
> r3 : 14000045  r2 : 01041fac     r1 : 02041fac  r0 : 4ffec94e
> Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
> Resetting CPU ...

With the same source everything works fine just switching the compiler.

I'm using u-boot 2016-07, almost not customized except for a pin used to keep the board up.
For now I've tested with:

arm-poky-linux-gnueabi-gcc 9.2   -> FAIL
arm-poky-linux-gnueabi-gcc 7.3   -> FAIL
arm-poky-linux-gnueabi-gcc 6.4   -> OK

all the toolchain are generated using yocto and are know to be working correctly.
U-boot is compiled with:

> 
> CROSS_COMPILE=/opt/poky-arag/2.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
> 
> make mrproper
> make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE delta70_defconfig
> make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE

without environment variables affecting compilation, build host is arch linux just updated, I've tried also in an ubuntu 16.04 chroot
but with the same result.

Any clue?

Regards.
Federico Giovanardi

[-- Attachment #2: Type: text/html, Size: 1877 bytes --]

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

* Re: [meta-freescale] data abort compiling u-boot with GCC != 6.4
  2020-03-17 17:28 data abort compiling u-boot with GCC != 6.4 Federico Giovanardi
@ 2020-03-17 19:07 ` Max Krummenacher
  0 siblings, 0 replies; 2+ messages in thread
From: Max Krummenacher @ 2020-03-17 19:07 UTC (permalink / raw)
  To: Federico Giovanardi, meta-freescale

Hi

Have a look here:
https://www.yoctoproject.org/pipermail/yocto/2018-March/040486.html

So either update your U-Boot to something newer, cherry-pick the mentioned commit from upstream U-
Boot or pin the compiler to gcc 6.4.

Max

Am Dienstag, den 17.03.2020, 10:28 -0700 schrieb Federico Giovanardi:
> I'm getting a data-abort exception every time i access the FEC ethernet device from u-boot; it
> happens using tftp or just ping.
> 
> > 
> > => ping 172.31.4.2
> > Using FEC device
> > data abort
> > pc : [<4ffd769c>]          lr : [<4ffd8960>]
> > reloc pc : [<1782d69c>]    lr : [<1782e960>]
> > sp : 4f5a7d00  ip : 0000006a     fp : 4ffb427c
> > r10: 00000000  r9 : 4f5a7eb8     r8 : 4ffee74c
> > r7 : 00000001  r6 : 00000000     r5 : 0000002a  r4 : 4ffec94e
> > r3 : 14000045  r2 : 01041fac     r1 : 02041fac  r0 : 4ffec94e
> > Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
> > Resetting CPU ...
> 
> With the same source everything works fine just switching the compiler.
> 
> I'm using u-boot 2016-07, almost not customized except for a pin used to keep the board up.
> For now I've tested with:
> 
> arm-poky-linux-gnueabi-gcc 9.2   -> FAIL
> arm-poky-linux-gnueabi-gcc 7.3   -> FAIL
> arm-poky-linux-gnueabi-gcc 6.4   -> OK
> 
> all the toolchain are generated using yocto and are know to be working correctly.
> U-boot is compiled with:
> 
> > 
> > CROSS_COMPILE=/opt/poky-arag/2.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-
> > gnueabi/arm-poky-linux-gnueabi-
> > 
> > make mrproper
> > make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE delta70_defconfig
> > make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE
> 
> without environment variables affecting compilation, build host is arch linux just updated, I've
> tried also in an ubuntu 16.04 chroot
> but with the same result.
> 
> Any clue?
> 
> Regards.
> Federico Giovanardi
> 

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

end of thread, other threads:[~2020-03-17 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 17:28 data abort compiling u-boot with GCC != 6.4 Federico Giovanardi
2020-03-17 19:07 ` [meta-freescale] " Max Krummenacher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.