[meta-freescale] Build kernel error for B4860qds-64b machine

Alexandru Vaduva Alexandru.Vaduva at enea.com
Thu Apr 10 01:07:24 PDT 2014


Hello,

I did the following:
 - Cloned the poky and meta-fsl-ppc.
 - Constructed the build directory accordingly. 
	Taking into consideration that the build machine is set as b4860qds-64b and poky distro.

 - Added the following flag to the CC compiler:
        		d.setVar('KERNEL_CC_append', ' -mcmodel=large')
	It solved a problem for the missing flags like:  
		relocation truncated to fit: R_PPC64_ADDR16_HI

 - Also tried to change -mcpu flag to -mtune because it firstly complained about outdated flags:
		TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "e6500", " -mtune=e6500", "", d)}"
	| gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
	|   CC      fs/char_dev.o
	| arch/powerpc/kernel/vdso32/sigtramp.S:1:0: error: bad value (e5500) for -mtune= switch  VDSO64A arch/powerpc/kernel/vdso64/gettimeofday.o
	
	The warning disappeared but the problem remained.

Thanks,
Alex

-----Original Message-----
From: ting.liu at freescale.com [mailto:ting.liu at freescale.com] 
Sent: Thursday, April 10, 2014 7:06 AM
To: Alexandru Vaduva
Cc: meta-freescale at yoctoproject.org
Subject: RE: Build kernel error for B4860qds-64b machine

> -----Original Message-----
> From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale- 
> bounces at yoctoproject.org] On Behalf Of Alexandru Vaduva
> Sent: Wednesday, April 09, 2014 10:56 PM
> To: meta-freescale at yoctoproject.org
> Subject: [meta-freescale] Build kernel error for B4860qds-64b machine
> 
> Hello guys,
> 
> I am having the following error with the kernel build for the b4860 board:
> 	error: bad value (e5500) for -mtune= switch I checked the flag -mtune 
> and it is set as: -mtune=e6500 correspondingly.
> Also if I change the -mtune with something like march the error does 
> not change.
> 
> Do some of you have any suggestions?

Your detailed build step?

> 
> 
> Alexandru Jan  Vaduva
> Software Engineer
> 
> Enea Services Romania
> Splaiul Independentei 319, OB403A,
> District 6, Bucharest,
> Romania, 060044
> 
> Tel:  +40 21 311 43 00
> Fax: +40 21 311 43 01
> Email: Alexandru.Vaduva at enea.com
> http://www.enea.com/
> 
> 
> 
> 
> 
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
> 



More information about the meta-freescale mailing list