OMAP4 - armel vs armhf

June 06th, 2012 - 12:50 pm ET by Micha³ Szymañski | Report spam
This is a multipart message in MIME format.

=_NextPart_000_000C_01CD4414.427E71B0

Hi all,



I'm using armhf port for OMAP4 (pandboard) installed like in this guide:
http://www.chalk-elec.com/?p78. I need to run precompiled application,
build with CodeSourcery (arm-linux-gnueabi-gcc 4.6.1). There are some
floating point math operation like sin/cos/sqrt - all from <math.h>, but app
was built without hard fpu flag. When trying to run it on pandaboard
segmentation fault occur (I've checked with gdb that it's caused by that
sin() function, which is first math operation in code). I have also second
board with Ubuntu11.10 which is armel, and there everything works fine. So,
the question is - can I do anything on pandaboard's side to run that
application? Just to make it clear - I can't rebuild with flag, because that
app must be compatible with also with cores without FPU.



Thanks, regards

Michal


=_NextPart_000_000C_01CD4414.427E71B0

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office...omml" xmlns="http://www.w3.org/TR/REC-html40&quo...t;<meta http-equiv=Content-Type content="text/html; charset=iso-8859-2"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.Stylwiadomocie-mail17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>I&#8217;m using armhf port for OMAP4 (pandboard) installed like in this guide: <a href="http://www.chalk-elec.com/?p=1478">http://www.chalk-elec.com/?p=1478</a>. I need to run precompiled application, build with CodeSourcery (arm-linux-gnueabi-gcc 4.6.1). There are some floating point math operation like sin/cos/sqrt &#8211; all from &lt;math.h&gt;, but app was built without hard fpu flag. When trying to run it on pandaboard segmentation fault occur (I&#8217;ve checked with gdb that it&#8217;s caused by that sin() function, which is first math operation in code). I have also second board with Ubuntu11.10 which is armel, and there everything works fine. So, the question is &#8211; can I do anything on pandaboard&#8217;s side to run that application? Just to make it clear &#8211; I can&#8217;t rebuild with flag, because that app must be compatible with also with cores without FPU.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks, regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Michal      <o:p></o:p></span></p></div></body></html>
=_NextPart_000_000C_01CD4414.427E71B0--


To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/000b01cd4403$7ef3f400$7cdbdc00$@gmail.com
email Follow the discussionReplies 4 repliesReplies Make a reply

Replies

#1 Steve Langasek
June 06th, 2012 - 01:40 pm ET | Report spam
Hi Michał,

On Wed, Jun 06, 2012 at 06:43:23PM +0200, Michał Szymański wrote:
I'm using armhf port for OMAP4 (pandboard) installed like in this guide:
http://www.chalk-elec.com/?p78. I need to run precompiled application,
build with CodeSourcery (arm-linux-gnueabi-gcc 4.6.1). There are some
floating point math operation like sin/cos/sqrt - all from <math.h>, but app
was built without hard fpu flag. When trying to run it on pandaboard
segmentation fault occur (I've checked with gdb that it's caused by that
sin() function, which is first math operation in code). I have also second
board with Ubuntu11.10 which is armel, and there everything works fine. So,
the question is - can I do anything on pandaboard's side to run that
application? Just to make it clear - I can't rebuild with flag, because that
app must be compatible with also with cores without FPU.



What's surprising is that you're able to run this application at all on
armhf: the ELF PI for armel is different than the one for armhf, so you
*should* be getting a "no such file or directory" error when trying to run
the binary. How are you invoking the program? Have you cross-installed
libc6:armel for compatibility, or done something else here?

The key requirement for successfully running armel binaries on armhf is to
have an ELF PI (ld.so) that can tell the difference between hard-float and
soft-float libraries on the system. If I'm not mistaken, Debian unstable
should have this.

Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/

Similar topics