From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGeCF-0000fC-Da for ptxdist@pengutronix.de; Fri, 11 Sep 2020 10:14:15 +0200 Received: from mol by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kGeCF-0003dN-51 for ptxdist@pengutronix.de; Fri, 11 Sep 2020 10:14:15 +0200 Date: Fri, 11 Sep 2020 10:14:15 +0200 From: Michael Olbrich Message-ID: <20200911081415.GE6156@pengutronix.de> References: <7cbe34dd-e001-e903-65cf-cabbe977f1fa@ppc-ag.de> <28895af6-ae2e-7512-e273-09aceca1a187@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <28895af6-ae2e-7512-e273-09aceca1a187@pengutronix.de> Subject: Re: [ptxdist] u-Boot fails to link when compiling for iMX6ULL List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@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