mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] u-Boot fails to link when compiling for iMX6ULL
@ 2020-08-27 11:29 Mircea Ciocan
  2020-09-04 16:51 ` Ahmad Fatoum
  0 siblings, 1 reply; 3+ messages in thread
From: Mircea Ciocan @ 2020-08-27 11:29 UTC (permalink / raw)
  To: ptxdist

Hello everybody, first I want to thank you for the fixing of chrony 
package rules, now it works like a clock :).

I need to have the ETH controlers active on the iMX6ULL EVK, but after 
activating everything related to the networking for the platform, the 
u-Boot fails to link (the modules containing the fecmxc_initialize() 
function compiles OK and the necessary header is included), but it seems 
that there is a linking problem in the rule, the error message is:

arm-v7a-linux-gnueabihf-ld.bfd: arch/arm/mach-imx/built-in.o: in 
function `cpu_eth_init':
platform-imx6ullevk/build-target/u-boot-2020.01-build/platform-imx6ullevk/build-target/u-boot-2020.01/arch/arm/mach-imx/cpu.c:218: 
undefined reference to `fecmxc_initialize'
Software/Firmware/platform-imx6ullevk/build-target/u-boot-2020.01/Makefile:1671: 
recipe for target 'u-boot' failed

Additional info: PTXDist version 2020.7, u-Boot 2020.01

The u-Boot compiles OK outside the PTXDist.

  Many thanks,

  Mircea



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] u-Boot fails to link when compiling for iMX6ULL
  2020-08-27 11:29 [ptxdist] u-Boot fails to link when compiling for iMX6ULL Mircea Ciocan
@ 2020-09-04 16:51 ` Ahmad Fatoum
  2020-09-11  8:14   ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Ahmad Fatoum @ 2020-09-04 16:51 UTC (permalink / raw)
  To: ptxdist, Mircea Ciocan

Hello,

On 8/27/20 1:29 PM, Mircea Ciocan wrote:
> Hello everybody, first I want to thank you for the fixing of chrony package rules, now it works like a clock :).
> 
> I need to have the ETH controlers active on the iMX6ULL EVK, but after activating everything related to the networking for the platform, the u-Boot fails to link (the modules containing the fecmxc_initialize() function compiles OK and the necessary header is included), but it seems that there is a linking problem in the rule, the error message is:
> 
> arm-v7a-linux-gnueabihf-ld.bfd: arch/arm/mach-imx/built-in.o: in function `cpu_eth_init':
> platform-imx6ullevk/build-target/u-boot-2020.01-build/platform-imx6ullevk/build-target/u-boot-2020.01/arch/arm/mach-imx/cpu.c:218: undefined reference to `fecmxc_initialize'
> Software/Firmware/platform-imx6ullevk/build-target/u-boot-2020.01/Makefile:1671: recipe for target 'u-boot' failed
> 
> Additional info: PTXDist version 2020.7, u-Boot 2020.01
> 
> The u-Boot compiles OK outside the PTXDist.

Run ptxdist with --verbose to see the compiler command line used to compile.
Reproduce the link error manually and report it to upstream.

> 
>  Many thanks,
> 
>  Mircea
> 
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] u-Boot fails to link when compiling for iMX6ULL
  2020-09-04 16:51 ` Ahmad Fatoum
@ 2020-09-11  8:14   ` Michael Olbrich
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2020-09-11  8:14 UTC (permalink / raw)
  To: ptxdist

Hello,

On Fri, Sep 04, 2020 at 06:51:08PM +0200, Ahmad Fatoum wrote:
> On 8/27/20 1:29 PM, Mircea Ciocan wrote:
> > Hello everybody, first I want to thank you for the fixing of chrony package rules, now it works like a clock :).
> > 
> > I need to have the ETH controlers active on the iMX6ULL EVK, but after activating everything related to the networking for the platform, the u-Boot fails to link (the modules containing the fecmxc_initialize() function compiles OK and the necessary header is included), but it seems that there is a linking problem in the rule, the error message is:
> > 
> > arm-v7a-linux-gnueabihf-ld.bfd: arch/arm/mach-imx/built-in.o: in function `cpu_eth_init':
> > platform-imx6ullevk/build-target/u-boot-2020.01-build/platform-imx6ullevk/build-target/u-boot-2020.01/arch/arm/mach-imx/cpu.c:218: undefined reference to `fecmxc_initialize'
> > Software/Firmware/platform-imx6ullevk/build-target/u-boot-2020.01/Makefile:1671: recipe for target 'u-boot' failed
> > 
> > Additional info: PTXDist version 2020.7, u-Boot 2020.01
> > 
> > The u-Boot compiles OK outside the PTXDist.
> 
> Run ptxdist with --verbose to see the compiler command line used to compile.
> Reproduce the link error manually and report it to upstream.

PTXdist adds some options to the compiler command-line. A lot of stuff is
blacklisted for bootloaders but maybe we missed something.
You can try temporarily disabling all hardening and other toolchain options
in the platformconfig and see if that makes a difference.
Make sure that you do a complete rebuild of the whole u-boot package.

Do you have a local u-boot.make in your BSP? It might be an old with with
an outdated U_BOOT_WRAPPER_BLACKLIST.

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

end of thread, other threads:[~2020-09-11  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27 11:29 [ptxdist] u-Boot fails to link when compiling for iMX6ULL Mircea Ciocan
2020-09-04 16:51 ` Ahmad Fatoum
2020-09-11  8:14   ` Michael Olbrich

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