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

ting.liu at freescale.com ting.liu at freescale.com
Mon Apr 14 19:31:35 PDT 2014


64bit kernel has build issue with binutils 2.24. please try to use the attached patch to go around this problem temporarly.

-Ting

> -----Original Message-----
> From: Alexandru Vaduva [mailto:Alexandru.Vaduva at enea.com]
> Sent: Thursday, April 10, 2014 4:07 PM
> To: Liu Ting-B28495
> Cc: meta-freescale at yoctoproject.org
> Subject: RE: Build kernel error for B4860qds-64b machine
> 
> 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
> >
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-binutils-Revert-relocation-changes-for-PPC.patch
Type: application/octet-stream
Size: 43292 bytes
Desc: 0001-binutils-Revert-relocation-changes-for-PPC.patch
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140415/9e1e2659/attachment-0001.obj>


More information about the meta-freescale mailing list