<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 15, 2023, 13:10 Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 15, 2023 at 11:57 AM Brett Sterling <<a href="mailto:brett.sterling@odysseysr.com" target="_blank" rel="noreferrer">brett.sterling@odysseysr.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>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello all!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
To get this out of the way prior to all of the requested debugging information - I don't need the legacy stack, any networking stack will do. I started with legacy because that was what was shown on the RTEMS documentation pages. We're trying to integrate
RTEMS into our system and I considered adding the networking stack that had some documentation a big enough effort without perhaps trying to integrate another network stack. But I'm absolutely glad to go with any suggestion.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Now, onto the requested build failure information.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Following <a href="https://docs.rtems.org/branches/master/legacy-networking/quick_start.html" id="m_6882953449743292607m_-5632860229061652200LPlnk186671" target="_blank" rel="noreferrer">https://docs.rtems.org/branches/master/legacy-networking/quick_start.html</a></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<blockquote style="border-left:3px solid rgb(200,200,200);border-top-color:rgb(200,200,200);border-right-color:rgb(200,200,200);border-bottom-color:rgb(200,200,200);padding-left:1ex;margin-left:0.8ex;color:rgb(102,102,102)">
../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc
<div>RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)</div>
<div>warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake</div>
<div>Build Set: 6/rtems-net-legacy</div>
<div>config: tools/rtems-net-legacy-6.cfg</div>
<div>error: config error: rtems-bsp.cfg:104: RTEMS tools not found (sparc-rtems6-gcc) found; Please check the --with-tools option or --prefix.</div>
<div>Build FAILED</div>
<div>Build Set: Time 0:00:00.012407</div>
<div>Build FAILED</div>
</blockquote>
The error information implies that '--prefix' should specify where the 'sparc-rtems6-gcc' should be located, so I tried something different (specifying where the build tools are located).</div></div></div></blockquote><div><br></div><div>The prefix is where it will be installed. Normally${prefix}/bin/ will contain your cross tools.</div><div><br></div><div>--rtems-tools path : Path to an install RTEMS tool set</div><div><br></div><div>And your --with-rtems-bsp is just the architecture. It would need to be something like sparc/leon3.</div><div><br></div><div>Have you built the tools? Is sparc-rtems6-gcc in your $PATH? Can you run hello world?</div><div><br></div><div>And --host normally denotes the host os where you are building. You usually want --target. </div><div><br></div><div>@Vijay should be able to confirm that for sure. I don't think I have built the legacy stack this way recently.<br></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I agree with the suggestions above. I am able to reproduce this error with wrong prefix. The following command works for me for a different board:</div><div dir="auto"><br></div><div dir="auto">`../source-builder/sb-set-builder --prefix=$PATH_TO_DIR_WITH_BIN --with-rtems-bsp=powerpc/mvme2700 6/rtems-net-legacy`</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I have the rtems toolset installed in this prefix path.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></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><div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<blockquote style="border-left:3px solid rgb(200,200,200);border-top-color:rgb(200,200,200);border-right-color:rgb(200,200,200);border-bottom-color:rgb(200,200,200);padding-left:1ex;margin-left:0.8ex;color:rgb(102,102,102)">
prefix=$HOME/src/Toolchains/osr_rtems_6_sparc 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc
<div>RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)</div>
<div>warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake</div>
<div>Build Set: 6/rtems-net-legacy</div>
<div>config: tools/rtems-net-legacy-6.cfg</div>
<div>error: config error: rtems-bsp.cfg:131: RTEMS BSP not found (sparc-rtems6-sparc.pc); Please check the --with-rtems option or --prefix.</div></blockquote></div></div></div></blockquote><div><br></div><div>You have to build RTEMS and install it. The dot pc file has a pattern like this for the powerpc/psim BSP I had installed</div><div><br></div><div>/home/joel/rtems-work/tools/6/bsp-install/lib/pkgconfig/powerpc-rtems6-psim.pc<br></div><div><br></div><div>prefix to RTEMS configure/install: /home/joel/rtems-work/tools/6/bsp-install/</div><div><br></div><div>Note that yours would be something like sparc-rtems6-leon3.pc.</div><div> </div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">+1</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><blockquote style="border-left:3px solid rgb(200,200,200);border-top-color:rgb(200,200,200);border-right-color:rgb(200,200,200);border-bottom-color:rgb(200,200,200);padding-left:1ex;margin-left:0.8ex;color:rgb(102,102,102)">
<div>Build FAILED</div>
<div>Build Set: Time 0:00:00.014283</div>
<div>Build FAILED</div>
</blockquote>
What I'm guessing is that the networking build still relies on everything being in the correct location, but the documentation doesn't indicate where the networking repository should be put and how the networking build fits in with the tools build and the application
builds. This is probably the information I'm currently lacking. Then again, I may be missing something in the documentation that I erroneously overlooked. If so, just let me know.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The "Hello World" failure is documented in this ticket: <a href="https://devel.rtems.org/ticket/4927" id="m_6882953449743292607m_-5632860229061652200LPlnk462314" target="_blank" rel="noreferrer">https://devel.rtems.org/ticket/4927</a></div></div></div></blockquote><div><br></div><div>OK. I dhave added Chris who I think wrote that section.</div><div><br></div><div>Can you build the rtems-examples from that repository?</div><div><br></div><div>--joel</div><div><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><div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks again in advance!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Brett</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_6882953449743292607m_-5632860229061652200appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_6882953449743292607m_-5632860229061652200divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>><br>
<b>Sent:</b> Tuesday, August 15, 2023 9:57 AM<br>
<b>To:</b> Brett Sterling <<a href="mailto:brett.sterling@odysseysr.com" target="_blank" rel="noreferrer">brett.sterling@odysseysr.com</a>><br>
<b>Cc:</b> <a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a> <<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a>>; Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org" target="_blank" rel="noreferrer">vijay@rtems.org</a>><br>
<b>Subject:</b> Re: Networking examples</font>
<div> </div>
</div>
<div>
<div id="m_6882953449743292607m_-5632860229061652200x_footer" style="background-color:rgb(255,235,156);width:98%;border:1px solid rgb(156,101,0);padding:2pt">
<font face="Calibri,sans-serif" size="2"><font color="#9C6500">CAUTION:</font><font color="black"> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</font></font></div>
<br>
<div>
<div dir="ltr">
<div>I add Vijay since he has been working with this. </div>
<br>
<div>
<div dir="ltr">On Tue, Aug 15, 2023 at 9:27 AM Brett Sterling <<a href="mailto:brett.sterling@odysseysr.com" target="_blank" rel="noreferrer">brett.sterling@odysseysr.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
My goal is to integrate networking into our RTEMS solution, so I started here: <a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Findex.html&data=05%7C01%7C%7Ca986447e0b18401e8d8108db9da85b8c%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277118637201789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=O7Cl3JjG1IGmeX5TzhEdb65bNPtvrK%2BF4Zzqtlw5Zhk%3D&reserved=0" id="m_6882953449743292607m_-5632860229061652200x_m_7018943989205263307LPlnk187737" target="_blank" rel="noreferrer">https://docs.rtems.org/branches/master/legacy-networking/index.html</a>.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
But, as soon as I had started, I hit a failure. I tried the 'quick start' (<a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Fquick_start.html&data=05%7C01%7C%7Ca986447e0b18401e8d8108db9da85b8c%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277118637358041%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gCplMFshN695pxIZnLZlIxdIjfO9mkjZXsOzmm8R45s%3D&reserved=0" id="m_6882953449743292607m_-5632860229061652200x_m_7018943989205263307LPlnk634552" target="_blank" rel="noreferrer">https://docs.rtems.org/branches/master/legacy-networking/quick_start.html</a>),
but regardless of which way I tried to build, the build failed.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Please post about that. This shouldn't happen.</div>
<div><br>
</div>
<div>And Vijay has recent experience testing the legacy stack.</div>
<div><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Based on the failure of the 'quick-start' for the RTEMS "Hello World" example coupled with this failure, I'm starting to consider moving back to an older RTEMS version (I've seen networking information for both RTEMS 4 & 5), but first wanted to reach out to
the user community to get input.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Let's see how this failed. </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Optimally, I would like to find an RTEMS example (any version) <i>WITH NETWORKING</i> that runs on either an RTEMS simulator, or on a commercially available development board so that I can see networking working and then evolve it into my system.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Do you really want the legacy stack or just a network stack? </div>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Less optimally, I would like to find an RTEMS example (any version) <i>WITH NETWORKING</i> that at least completely builds.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
If no one has examples of these, I would be glad to try different things to get the networking stuff building. Especially if someone else can show that they can build with networking.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks in advance!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Brett</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7Ca986447e0b18401e8d8108db9da85b8c%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277118637358041%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=emkBfMPRDD5Ncf8xS7x%2BOB3hQwBUEpkMKEh9lK38Mx4%3D&reserved=0" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div></div>
</blockquote></div></div></div>