[yocto] Antwort: Re: Antwort: Re: How to set the sysroot toolchain to hard float

S.Jaritz at esa-grimma.de S.Jaritz at esa-grimma.de
Fri Aug 5 00:52:37 PDT 2016


I read the printings like you and I am confused.
let's take valgrind as example:
1.) the rootfs build goes to:
/poky/build/tmp/work/cortexa5hf-vfp-poky-linux-gnueabi/valgrind/3.11.0-r0/deploy-debs/cortexa5hf-vfp/valgrind_3.11.0-r0_armhf.deb

the extension of the deb package say it its hard float.

2.) I transfer it to my device

3.) console at the evalboard
#############
root at sama5d3xek:/tmp# dpkg -r valgrind
(Reading database ... 14780 files and directories currently installed.)
Removing valgrind:armhf (3.11.0-r0) ...
root at sama5d3xek:/tmp# dpkg -i valgrind_3.11.0-r0_armhf.deb
dpkg: error processing archive valgrind_3.11.0-r0_armhf.deb (--install):
 package architecture (armhf) does not match system (armel)
Errors were encountered while processing:
 valgrind_3.11.0-r0_armhf.deb
root at sama5d3xek:/tmp#
#############

I got the information from here(hope it works):
https://books.google.de/books?id=yNi6BwAAQBAJ&pg=PA148&lpg=PA148&dq=yocto+set+floating+point&source=bl&ots=HXh65nWpHc&sig=4UElzv4dz70xECsqw5lnCYuUZiI&hl=de&sa=X&ved=0ahUKEwjOhrib2KnOAhVB1RQKHbXkAPAQ6AEIQDAE#v=onepage&q=yocto%20set%20floating%20point&f=false

Maybe the deb generation has a bug?


Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz at esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.



Von:    Khem Raj <raj.khem at gmail.com>
An:     S.Jaritz at esa-grimma.de
Kopie:  Yocto Project <yocto at yoctoproject.org>
Datum:  05.08.2016 09:27
Betreff:        Re: Antwort: Re: [yocto] How to set the sysroot toolchain 
to hard float





On 8/5/16 12:24 AM, S.Jaritz at esa-grimma.de wrote:
> hej
> 
> @find out:
> transfer a build package into the evalboard and try to install it. I am
> using deb packages. dpkg gives me an error  because of architecture.
> 
> @print configuration output:
> ###########
> Build Configuration:
> BB_VERSION        = "1.30.0"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "universal"
> TARGET_SYS        = "arm-poky-linux-gnueabi"
> MACHINE           = "sama5d3xek"
> DISTRO            = "poky-atmel"
> DISTRO_VERSION    = "2.1.1"
> TUNE_FEATURES     = "arm armv7a vfp thumb            callconvention-hard

here it is marking that your build is using hard-float. are you running
image from same build on the target ? or is it some prebuilt image that
you are trying to add on to ?

>            cortexa5"
> TARGET_FPU        = "hard"
> meta 
> meta-poky 
> meta-yocto-bsp    = "krogoth:f5da2a5913319ad6ac2141438ba1aa17576326ab"
> meta-atmel        = "krogoth:784a6a7fe94e6939325f60f4dd2cc24987ff090d"
> meta-skeleton     = "krogoth:f5da2a5913319ad6ac2141438ba1aa17576326ab"
> meta-oe 
> meta-networking 
> meta-python       = "krogoth:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
> ###########
> 
> @TOOLCHAIN_OPTIONS: Where these are set in custom layers(like 
meta-atmel)?
> 
> regards
> 
> Stefan Jaritz
> 
> ------------------------------------------------------------
> ESA Elektroschaltanlagen Grimma GmbH
> Broner Ring 30
> 04668 Grimma
> Telefon: +49 3437 9211 176
> Telefax: +49 3437 9211 26
> E-Mail: s.jaritz at esa-grimma.de
> Internet: www.esa-grimma.de
> 
> 
> Geschäftsführer:
> Dipl.-Ing. Jörg Gaitzsch
> Jörg Reinker
> 
> Sitz der Gesellschaft: Grimma
> Ust.-ID: DE 141784437
> Amtsgericht: Leipzig, HRB 5159
> Steuernummer: 238/108/00755
> 
> 
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
> erhalten
> haben, informieren Sie bitte sofort den Absender und löschen Sie diese
> Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
> Mail
> ist nicht gestattet.
> 
> This e-mail may contain confidential and/or privileged information. If
> you are
> not the intended recipient (or have received this e-mail in error) 
please
> notify the sender immediately and destroy this e-mail. Any unauthorized
> copying, disclosure or distribution of the material in this e-mail is
> strictly
> forbidden.
> 
> 
> 
> Von:        Khem Raj <raj.khem at gmail.com>
> An:        S.Jaritz at esa-grimma.de, Yocto Project 
<yocto at yoctoproject.org>
> Datum:        05.08.2016 09:16
> Betreff:        Re: [yocto] How to set the sysroot toolchain to hard 
float
> ------------------------------------------------------------------------
> 
> 
> 
> 
> 
> On 8/5/16 12:04 AM, S.Jaritz at esa-grimma.de wrote:
>> Hej
>>
>> I am building for the Atmel Evalbaord SAMA5D3x a Yocto Image. It works
>> fine, but sysroot toolchain is set to soft float instead of hard float.
>> How can I set the sysroot toolchain to hard float?
>>
>> My actual configuration:
>> 1.) use meta-atmel layer
>> 2.) in /build/conf/layer.conf -> MACHINE ??= "sama5d3xek"
>>
>> @meta-atmel:
>> /conf/machine/sama5d3xek.conf includes sama5d3.inc
>> in this file:
>> SOC_FAMILY = "sama5:sama5d3"
>> DEFAULTTUNE = "cortexa5thf"
>>
>> I am not understanding why for the sysroot the default tune is not 
used.
>> Any ideas are welcome.
> 
> How did you find that out ? can you send your build configuration output
> that bitbake prints when starting the build ?
> secondly, TOOLCHAIN_OPTIONS is what decides this ABI
> so when you use CC and CXX and friends, the right thing happens since it
> will be appending TOOLCHAIN_OPTIONS to these vars. but if you use bare
> cross compiler that will default to soft-float
> 
>>
>>
>> Regards!
>>
>> Stefan Jaritz
>> ------------------------------------------------------------
>> ESA Elektroschaltanlagen Grimma GmbH
>> Broner Ring 30
>> 04668 Grimma
>> Telefon: +49 3437 9211 176
>> Telefax: +49 3437 9211 26
>> E-Mail: s.jaritz at esa-grimma.de
>> Internet: www.esa-grimma.de
>>
>>
>> Geschäftsführer:
>> Dipl.-Ing. Jörg Gaitzsch
>> Jörg Reinker
>>
>> Sitz der Gesellschaft: Grimma
>> Ust.-ID: DE 141784437
>> Amtsgericht: Leipzig, HRB 5159
>> Steuernummer: 238/108/00755
>>
>>
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> Informationen.
>> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
>> erhalten
>> haben, informieren Sie bitte sofort den Absender und löschen Sie diese
>> Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser
>> Mail
>> ist nicht gestattet.
>>
>> This e-mail may contain confidential and/or privileged information. If
>> you are
>> not the intended recipient (or have received this e-mail in error) 
please
>> notify the sender immediately and destroy this e-mail. Any unauthorized
>> copying, disclosure or distribution of the material in this e-mail is
>> strictly
>> forbidden.
>>
>>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160805/ba9877f7/attachment.html>


More information about the yocto mailing list