mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] u-Boot fails to link when compiling for iMX6ULL
Date: Fri, 11 Sep 2020 10:14:15 +0200	[thread overview]
Message-ID: <20200911081415.GE6156@pengutronix.de> (raw)
In-Reply-To: <28895af6-ae2e-7512-e273-09aceca1a187@pengutronix.de>

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

      reply	other threads:[~2020-09-11  8:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 11:29 Mircea Ciocan
2020-09-04 16:51 ` Ahmad Fatoum
2020-09-11  8:14   ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200911081415.GE6156@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox