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: [email protected] [mailto:[email protected]] 
Sent: Thursday, April 10, 2014 7:06 AM
To: Alexandru Vaduva
Cc: [email protected]
Subject: RE: Build kernel error for B4860qds-64b machine

> -----Original Message-----
> From: [email protected] [mailto:meta-freescale- 
> [email protected]] On Behalf Of Alexandru Vaduva
> Sent: Wednesday, April 09, 2014 10:56 PM
> To: [email protected]
> 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: [email protected]
> http://www.enea.com/
> 
> 
> 
> 
> 
> --
> _______________________________________________
> meta-freescale mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/meta-freescale
> 

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to