<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 4, 2019 at 1:53 PM Amarnath MB <<a href="mailto:amarnath.mb@mistralsolutions.com">amarnath.mb@mistralsolutions.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">Hi,</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">I'm working on <span class="gmail-m_-1433019377000256989gmail-m_670509554176890896gmail-m_-1199677977938683926gmail-m_-8462948704291788635gmail-m_7989339838703027566gmail-il">RTEMS 5.0 BSP </span><span class="gmail-m_-1433019377000256989gmail-m_670509554176890896gmail-m_-1199677977938683926gmail-m_-8462948704291788635gmail-m_7989339838703027566gmail-il"></span> for a new SOC based on ARM926EJS which has<font size="2"> a</font><font size="2"><span> VFP9-S Floating point coprocessor inside.</span></font></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span></span></font> I was able to successfully boot RTEMS and run hello.exe and ticker.exe testsuite samples using u-boot.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><div><font size="2">I</font><font size="2"><span> have enabled VFP from Uboot using the coprocessor instructions given in ARM926EJS RM. </span></font><div style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"> In order to use the VFP <font size="2"><span>coprocessor in RTEMS </span></font>I have added <br></font></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><b>CPU_CFLAGS = -mcpu=arm926ej-s -mthumb -mfloat-abi=hard </b>in the .cfg file for the BSP.</div></div><font size="2"><span><font size="2">But during the BSP build, it gives error "<span style="color:rgb(0,0,255)">configure: error: C compiler cannot create executables</span>". <br></font></span></font></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2">How can I enable hard float support in my BSP?<br></font></span></font></div></div></div></div></div></blockquote><div><br></div><div>All that means is that compiling something simple like this:</div><div><br></div><div>int main(int argc, char **argv)</div><div>{</div><div>  return 0;</div><div>}</div><div> </div><div>With the compiler arguments you have setup failed. There is a config.log in the directory of the</div><div>failure with details but that's essentially the test.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"></font></span></font></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span></span></font><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></span></span></span></b></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">As a trial, I have built BSP with </span><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> <b>CPU_CFLAGS = -mcpu=arm926ej-s -mthumb</b> and manually added</span></span></span></b><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><b><br></b></span></span></span></b></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><b>CPU_CFLAGS = -mcpu=arm926ej-s -mthumb -mfloat-abi=hard</b> </span>in the makefile (Makefile.leaf) for application build.</span></span></b></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal">In this case, I'm getting error '<span style="color:rgb(0,0,255)">error: o-optimize/init.o uses VFP register arguments, o-optimize/rtems-app.exe does not</span>'</span></span></b></div></div></div></div></div></blockquote><div><br></div><div>Without seeing the full test case and log, this looks like the linker arguments don't match the compiler arguments for some reason.</div><div><br></div><div>Is this with one of the dynamic loading tests?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small"><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"></span></span></b><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></span></span></span></b></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">As per RTEMS CPU Architecture Supplement Release 5.0.0 (master) Section 3.1.3 Floating Point Unit only</span></span></span></b><br></div><div><div dir="ltr" class="gmail-m_-1433019377000256989gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">VFPv3-D32, </span></span></span></b><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">VFPv3-D16 and </span></span></span></b><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">FPv4-SP-D16<b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> are supported by RTEMS</span></span></span></b>, but <font size="2"><span>VFP9-S Floating point coprocessor is an <br></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span>implementation of the <span class="gmail-m_-1433019377000256989emphasis"><em>Vector Floating-point Architecture</em></span> (VFPv2) which is not listed in 3.1.3.<br></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span>Does this state that <font size="2"><span>VFP9-S Floating point coprocessor is not supported by RTEMS?</span></font></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><br></span></font></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span>For your info floating point operations are working fine in the application built using <b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><b>-mfloat-abi=soft</b></span></span></span></b>.</span></font></span></font></span></span></span></b></span></font></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><br></span></font></span></font></span></span></span></b></span></font></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span>Thanks in advance for all your precious time.<br></span></font></span></font></span></span></span></b></span></font></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><br></span></font></span></font></span></span></span></b></span></font></span></font></span></span></span></b></div><div><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font size="2"><span><font size="2"><span>Regards,<br></span></font></span></font></span></span></span></b> </span></font></span></font></span></span></span></b></div><div dir="ltr"><p><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"></span></span></b></p><span style="font-family:arial,helvetica,sans-serif"><b><span style="font-weight:bold;font-size:9pt">Amarnath MB</span></b><b><span style="font-weight:bold;font-size:9pt"></span></b></span><span style="font-family:arial,helvetica,sans-serif"><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>