<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Gedare,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks again for the response, and my apologies for not getting around to it until today.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Here is what I tried:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
* Changed the 'sparc' argument to just a bsp (erc32), as is indicated in the documentation. This failed because it was then searching for the wrong tool.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=erc32
<div class="ContentPasted0">RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)</div>
<div class="ContentPasted0">warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake</div>
<div class="ContentPasted0">Build Set: 6/rtems-net-legacy</div>
<div class="ContentPasted0">config: tools/rtems-net-legacy-6.cfg</div>
<div class="ContentPasted0">error: config error: rtems-bsp.cfg:104: RTEMS tools not found (erc32-rtems6-gcc) found; Please check the --with-tools option or --prefix.</div>
<div class="ContentPasted0">Build FAILED</div>
<div class="ContentPasted0">Build Set: Time 0:00:00.012689</div>
<div class="ContentPasted0">Build FAILED</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
* Because that failed, I tried the arch/bsp combination (this would require a change to the documentation if it was correct). This failed because it's not finding the tools:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc/erc32
<div class="ContentPasted1">RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)</div>
<div class="ContentPasted1">warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake</div>
<div class="ContentPasted1">Build Set: 6/rtems-net-legacy</div>
<div class="ContentPasted1">config: tools/rtems-net-legacy-6.cfg</div>
<div class="ContentPasted1">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 class="ContentPasted1">Build FAILED</div>
<div class="ContentPasted1">Build Set: Time 0:00:00.011935</div>
Build FAILED<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
<div><span class="ContentPasted2">* So now it needs to find the tools. As such I added the suggested "--rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc":</span></div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted3">
../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc/erc32 --rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc
<div class="ContentPasted3">RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)</div>
<div class="ContentPasted3">warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake</div>
<div class="ContentPasted3">Build Set: 6/rtems-net-legacy</div>
<div class="ContentPasted3">config: tools/rtems-net-legacy-6.cfg</div>
<div class="ContentPasted3">error: config error: rtems-bsp.cfg:131: RTEMS BSP not found (sparc-rtems6-erc32.pc); Please check the --with-rtems option or --prefix.</div>
<div class="ContentPasted3">Build FAILED</div>
<div class="ContentPasted3">Build Set: Time 0:00:00.022636</div>
<div class="ContentPasted3">Build FAILED</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted3">
At this point, I'm not sure what to try next. The '<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted4 ContentPasted5 ContentPasted6">sparc-rtems6-erc32.pc' is located in two places on my system (where the
kernel is located). It's either '$HOME/rtems-development/rtems-hello-world/build/sparc-rtems6-erc32/kernel/lib/pkgconfig/sparc-rtems6-erc32.pc' or '$HOME/rtems-development/rtems-hello-world/rtems/build/sparc/erc32/sparc-rtems6-erc32.pc'</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted3">
<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted4 ContentPasted5"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted3">
<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted4 ContentPasted5">Thanks in advance for further suggestions.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted3">
Brett</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted3">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Brett Sterling <brett.sterling@odysseysr.com><br>
<b>Sent:</b> Thursday, August 17, 2023 9:47 AM<br>
<b>To:</b> Gedare Bloom <gedare@rtems.org><br>
<b>Cc:</b> Vijay Kumar Banerjee <vijay@rtems.org>; RTEMS Users RTEMS <users@rtems.org>; Chris Johns <chrisj@rtems.org><br>
<b>Subject:</b> Re: Networking examples</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Gedare,</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks for pointing out that I wasn't specifying a BSP - I will try that later today/tomorrow, along with any other suggestions, and respond. Definitely could be an issue : - )</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks,</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Brett</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Gedare Bloom <gedare@rtems.org><br>
<b>Sent:</b> Thursday, August 17, 2023 8:57 AM<br>
<b>To:</b> Brett Sterling <brett.sterling@odysseysr.com><br>
<b>Cc:</b> Vijay Kumar Banerjee <vijay@rtems.org>; RTEMS Users RTEMS <users@rtems.org>; Chris Johns <chrisj@rtems.org><br>
<b>Subject:</b> Re: Networking examples</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">[You don't often get email from gedare@rtems.org. Learn why this is important at
<a href="https://aka.ms/LearnAboutSenderIdentification">https://aka.ms/LearnAboutSenderIdentification</a> ]<br>
<br>
CAUTION: 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.<br>
<br>
<br>
On Thu, Aug 17, 2023 at 8:54 AM Gedare Bloom <gedare@rtems.org> wrote:<br>
><br>
> hi Brett,<br>
><br>
> On Thu, Aug 17, 2023 at 8:12 AM Brett Sterling<br>
> <brett.sterling@odysseysr.com> wrote:<br>
> ><br>
> > Hello all,<br>
> ><br>
> > So I tried a bunch of things and none have worked:<br>
> ><br>
> > ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc<br>
> > error: config error: rtems-bsp.cfg:104: RTEMS tools not found (sparc-rtems6-gcc) found; Please check the --with-tools option or --prefix.<br>
> ><br>
> > ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc --rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc<br>
> > error: config error: rtems-bsp.cfg:131: RTEMS BSP not found (sparc-rtems6-sparc.pc); Please check the --with-rtems option or --prefix.<br>
> ><br>
> > (so I changed '--with-rtems-bsp=sparc' to '--with-rtems=sparc':)<br>
> > ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems=sparc --rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc<br>
> > error: config error: rtems-bsp.cfg:51: No RTEMS BSP specified: --with-rtems-bsp=bsp<br>
> ><br>
> > So I tried with both arguments:<br>
> > ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc --rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc --with-rtems=sparc<br>
> > error: config error: rtems-bsp.cfg:131: RTEMS BSP not found (sparc-rtems6-sparc.pc); Please check the --with-rtems option or --prefix.<br>
> ><br>
> ><br>
> > NOTE that all of these options had the sparc tools in the path:<br>
> > ~/src/rtems-development/rtems-tools/rtems-source-builder/rtems-net-legacy$ echo $PATH<br>
> > /home/bsterling/.nvm/versions/node/v16.20.0/bin:/home/bsterling/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/bsterling/src/Toolchains/osr_rtems_6_sparc:/home/bsterling/src/Toolchains/osr_rtems_6_sparc/bin<br>
> ><br>
><br>
> I understand you are following along<br>
> <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%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zScqSMWXcMVHIxbW6UN1xLBcSTscuPEN0hO90xfD7Os%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Fquick_start.html&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zScqSMWXcMVHIxbW6UN1xLBcSTscuPEN0hO90xfD7Os%3D&reserved=0</a><br>
><br>
> In there is the command:<br>
> ../source-builder/sb-set-builder \<br>
> --prefix=/path/to/rtems/prefix \<br>
> 6/rtems-net-legacy \<br>
> --host=powerpc-rtems6 \<br>
> --with-rtems-bsp=beatnik<br>
><br>
> I see you are trying to do this for sparc6, but what BSP are you<br>
> wanting to use? "beatnik" is a powerpc BSP. Note: this command example<br>
> is wrong with RSB for rtems6, as the --with-rtems-bsp now takes an<br>
> arch/bsp pair. @Vijay Kumar Banerjee can you fix?<br>
><br>
> The corrected command for you should be something like:<br>
> ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build<br>
> 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=??<br>
><br>
> "sparc" is not a BSP. I think that you can use --with-rtems to try to<br>
> build all the bsps.<br>
> Referring to the (other) quick start:<br>
> <a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Fuser%2Fstart%2Fbsp-build.html%23rsb-bsp-build&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WXR08F9QrZEX1Ow0Lp70xgaIb%2Bmz5wo%2FVKJCZylgTzA%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Fuser%2Fstart%2Fbsp-build.html%23rsb-bsp-build&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WXR08F9QrZEX1Ow0Lp70xgaIb%2Bmz5wo%2FVKJCZylgTzA%3D&reserved=0</a><br>
><br>
> So, maybe, you want --with-rtems-bsp=sparc/leon3<br>
> You can also specify multiple bsps to build.<br>
><br>
> I don't think that "--with-rtems" is a valid command line option to<br>
> use. I guess RSB should be a little more noisy about unknown command<br>
> line options.<br>
><br>
> So, try:<br>
> ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build<br>
> 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc/leon3<br>
><br>
Actually, it might be --rtems-bsp= instead of --with-rtems-bsp=<br>
I think --rtems-bsp=sparc/leon3 will parse it out to<br>
--target=sparc-rtems6<br>
--with-rtems-bsp=leon3<br>
--with-rtems-arch=sparc<br>
<br>
So, you might try<br>
<br>
./source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build \<br>
6/rtems-net-legacy --host=sparc-rtems6 --rtems-bsp=sparc/leon3<br>
<br>
> ><br>
> > I look forward to any further suggestions. By the way, as I mentioned, I followed the 'Quick Start' procedure in order to get things working (with the one issue mentioned before). I have not yet found a full procedure for adding in the networking repositorye.
We have to use rtems 6 because we want C++17 support.<br>
> ><br>
> > Thanks again in advance.<br>
> ><br>
> > Brett<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > ________________________________<br>
> > From: Vijay Kumar Banerjee <vijay@rtems.org><br>
> > Sent: Wednesday, August 16, 2023 4:56 PM<br>
> > To: Brett Sterling <brett.sterling@odysseysr.com><br>
> > Cc: Joel Sherrill <joel@rtems.org>; RTEMS Users RTEMS <users@rtems.org>; Chris Johns <chrisj@rtems.org><br>
> > Subject: Re: Networking examples<br>
> ><br>
> > CAUTION: 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.<br>
> ><br>
> ><br>
> > On Wed, Aug 16, 2023 at 12:13 PM Brett Sterling<br>
> > <brett.sterling@odysseysr.com> wrote:<br>
> > ><br>
> > > First off, I want to thank everyone for the fast replies. Second, I want to apologize for the delay responding to the questions - I plan to do better going forward.<br>
> > ><br>
> > > Here are the responses to the various questions below. If you'd rather I interlace them in the responses, I'm glad to do so (but didn't want it to get too messy :-)).<br>
> > ><br>
> > > None of the RTEMS tools are in my path - we specify locations when doing builds (i.e. would like to specify this as a parameter to the build)<br>
> > > My tools (e.g. sparc-rtems6-gcc) are located at: $HOME/src/Toolchains/osr_rtems_6_sparc/bin<br>
> ><br>
> > You can add the tools path using:<br>
> ><br>
> > --rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc<br>
> ><br>
> > If that doesn't work, would it be possible to add<br>
> > "$HOME/src/Toolchains/osr_rtems_6_sparc/bin" into your path using<br>
> > `export` temporarily just to check if that works?<br>
> ><br>
> > > My kernel is at: $HOME/src/rtems-development/rtems-hello-world/build/sparc-rtems6-erc32/kernel<br>
> > > I'm trying to build for sparc on RTEMS 6 (probably obvious from the previous pieces of information)<br>
> > > I'm building on a linux host (cross-building for sparc)<br>
> > > I'm using the sparc-rtems6-sis (i.e. the sparc simulator) to test the build<br>
> > > With the workaround for issue with the 'Quick Start' process, I can run the "Hello World" example (from the "Quick Start"). Is this what was being referred to with the question "Can you run hello world?", or is there another "hello world" that I should
try?<br>
> > Great. The RTEMS tools are correctly built then, the issue seems to be<br>
> > coming from the command line options.<br>
> ><br>
> > You can also use the `--help` option to see all the options with a<br>
> > brief description with sb-set-builder<br>
> > `../source-builder/sb-set-builder --help`<br>
> ><br>
> > > Per the question "Can you build the rtems-examples from that repository?", can someone clarify which 'repository' that's referring to? Regardless, the answer is "I haven't tried, but I'm glad to give it a shot if there is information somewhere about
how to do this".<br>
> > ><br>
> > `rtems-examples` is a separate repository where we have some example<br>
> > applications that can be used as a reference or starting point for<br>
> > user application development. Please refer to the following<br>
> > repository:<br>
> > <a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fgit.rtems.org%2Frtems-examples%2F&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=q1Ezbldh%2Bflt1MORp8JKwPiV1yiSRH3xl%2Bj09pU3AQo%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fgit.rtems.org%2Frtems-examples%2F&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=q1Ezbldh%2Bflt1MORp8JKwPiV1yiSRH3xl%2Bj09pU3AQo%3D&reserved=0</a><br>
> ><br>
> ><br>
> > Best regards,<br>
> > Vijay<br>
> ><br>
> > > Thanks in advance,<br>
> > > Brett<br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > ________________________________<br>
> > > From: Vijay Kumar Banerjee <vijay@rtems.org><br>
> > > Sent: Tuesday, August 15, 2023 12:53 PM<br>
> > > To: Joel Sherrill <joel@rtems.org><br>
> > > Cc: Brett Sterling <brett.sterling@odysseysr.com>; RTEMS Users RTEMS <users@rtems.org>; Chris Johns <chrisj@rtems.org><br>
> > > Subject: Re: Networking examples<br>
> > ><br>
> > > CAUTION: 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.<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Tue, Aug 15, 2023, 13:10 Joel Sherrill <joel@rtems.org> wrote:<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Tue, Aug 15, 2023 at 11:57 AM Brett Sterling <brett.sterling@odysseysr.com> wrote:<br>
> > ><br>
> > > Hello all!<br>
> > ><br>
> > > 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.<br>
> > ><br>
> > ><br>
> > > Now, onto the requested build failure information.<br>
> > ><br>
> > > Following <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%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zScqSMWXcMVHIxbW6UN1xLBcSTscuPEN0hO90xfD7Os%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Fquick_start.html&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zScqSMWXcMVHIxbW6UN1xLBcSTscuPEN0hO90xfD7Os%3D&reserved=0</a><br>
> > ><br>
> > > ../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc<br>
> > > RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)<br>
> > > warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake<br>
> > > Build Set: 6/rtems-net-legacy<br>
> > > config: tools/rtems-net-legacy-6.cfg<br>
> > > error: config error: rtems-bsp.cfg:104: RTEMS tools not found (sparc-rtems6-gcc) found; Please check the --with-tools option or --prefix.<br>
> > > Build FAILED<br>
> > > Build Set: Time 0:00:00.012407<br>
> > > Build FAILED<br>
> > ><br>
> > > 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).<br>
> > ><br>
> > ><br>
> > > The prefix is where it will be installed. Normally${prefix}/bin/ will contain your cross tools.<br>
> > ><br>
> > > --rtems-tools path : Path to an install RTEMS tool set<br>
> > ><br>
> > > And your --with-rtems-bsp is just the architecture. It would need to be something like sparc/leon3.<br>
> > ><br>
> > > Have you built the tools? Is sparc-rtems6-gcc in your $PATH? Can you run hello world?<br>
> > ><br>
> > > And --host normally denotes the host os where you are building. You usually want --target.<br>
> > ><br>
> > > @Vijay should be able to confirm that for sure. I don't think I have built the legacy stack this way recently.<br>
> > ><br>
> > ><br>
> > > 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:<br>
> > ><br>
> > > `../source-builder/sb-set-builder --prefix=$PATH_TO_DIR_WITH_BIN --with-rtems-bsp=powerpc/mvme2700 6/rtems-net-legacy`<br>
> > ><br>
> > ><br>
> > > I have the rtems toolset installed in this prefix path.<br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > prefix=$HOME/src/Toolchains/osr_rtems_6_sparc 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc<br>
> > > RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)<br>
> > > warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake<br>
> > > Build Set: 6/rtems-net-legacy<br>
> > > config: tools/rtems-net-legacy-6.cfg<br>
> > > error: config error: rtems-bsp.cfg:131: RTEMS BSP not found (sparc-rtems6-sparc.pc); Please check the --with-rtems option or --prefix.<br>
> > ><br>
> > ><br>
> > > 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<br>
> > ><br>
> > > /home/joel/rtems-work/tools/6/bsp-install/lib/pkgconfig/powerpc-rtems6-psim.pc<br>
> > ><br>
> > > prefix to RTEMS configure/install: /home/joel/rtems-work/tools/6/bsp-install/<br>
> > ><br>
> > > Note that yours would be something like sparc-rtems6-leon3.pc.<br>
> > ><br>
> > ><br>
> > ><br>
> > > +1<br>
> > ><br>
> > ><br>
> > > Build FAILED<br>
> > > Build Set: Time 0:00:00.014283<br>
> > > Build FAILED<br>
> > ><br>
> > > 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.<br>
> > ><br>
> > > The "Hello World" failure is documented in this ticket: <a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdevel.rtems.org%2Fticket%2F4927&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T81iovcI1pu9Ulw%2FCK2q5e601Jz7D4GlzIFWrYEpPqg%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdevel.rtems.org%2Fticket%2F4927&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T81iovcI1pu9Ulw%2FCK2q5e601Jz7D4GlzIFWrYEpPqg%3D&reserved=0</a><br>
> > ><br>
> > ><br>
> > > OK. I dhave added Chris who I think wrote that section.<br>
> > ><br>
> > > Can you build the rtems-examples from that repository?<br>
> > ><br>
> > > --joel<br>
> > ><br>
> > ><br>
> > ><br>
> > > Thanks again in advance!<br>
> > > Brett<br>
> > ><br>
> > ><br>
> > ><br>
> > > ________________________________<br>
> > > From: Joel Sherrill <joel@rtems.org><br>
> > > Sent: Tuesday, August 15, 2023 9:57 AM<br>
> > > To: Brett Sterling <brett.sterling@odysseysr.com><br>
> > > Cc: users@rtems.org <users@rtems.org>; Vijay Kumar Banerjee <vijay@rtems.org><br>
> > > Subject: Re: Networking examples<br>
> > ><br>
> > > CAUTION: 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.<br>
> > ><br>
> > > I add Vijay since he has been working with this.<br>
> > ><br>
> > > On Tue, Aug 15, 2023 at 9:27 AM Brett Sterling <brett.sterling@odysseysr.com> wrote:<br>
> > ><br>
> > > Hello all,<br>
> > ><br>
> > > 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%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vQTFld6cloDnZ3JQiyDXy3WaekYc%2FfjWpivbRLkNENw%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Findex.html&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vQTFld6cloDnZ3JQiyDXy3WaekYc%2FfjWpivbRLkNENw%3D&reserved=0</a>.<br>
> > ><br>
> > > 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%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zScqSMWXcMVHIxbW6UN1xLBcSTscuPEN0hO90xfD7Os%3D&reserved=0">https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Fquick_start.html&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zScqSMWXcMVHIxbW6UN1xLBcSTscuPEN0hO90xfD7Os%3D&reserved=0</a>),
but regardless of which way I tried to build, the build failed.<br>
> > ><br>
> > ><br>
> > > Please post about that. This shouldn't happen.<br>
> > ><br>
> > > And Vijay has recent experience testing the legacy stack.<br>
> > ><br>
> > ><br>
> > > 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.<br>
> > ><br>
> > ><br>
> > > Let's see how this failed.<br>
> > ><br>
> > ><br>
> > > Optimally, I would like to find an RTEMS example (any version) WITH NETWORKING 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.<br>
> > ><br>
> > ><br>
> > > Do you really want the legacy stack or just a network stack?<br>
> > ><br>
> > ><br>
> > ><br>
> > > Less optimally, I would like to find an RTEMS example (any version) WITH NETWORKING that at least completely builds.<br>
> > ><br>
> > > 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.<br>
> > ><br>
> > > Thanks in advance!<br>
> > > Brett<br>
> > ><br>
> > > _______________________________________________<br>
> > > users mailing list<br>
> > > users@rtems.org<br>
> > > <a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LX8N3IVfO%2FVyLJKbSV0auDt9OoMWYLnPk5Cd23W4SY%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LX8N3IVfO%2FVyLJKbSV0auDt9OoMWYLnPk5Cd23W4SY%3D&reserved=0</a><br>
> > _______________________________________________<br>
> > users mailing list<br>
> > users@rtems.org<br>
> > <a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LX8N3IVfO%2FVyLJKbSV0auDt9OoMWYLnPk5Cd23W4SY%3D&reserved=0">
https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7Cfa04ba2ce63444c92ac308db9f323ef7%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638278810401317683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LX8N3IVfO%2FVyLJKbSV0auDt9OoMWYLnPk5Cd23W4SY%3D&reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>