Networking examples

Brett Sterling brett.sterling at odysseysr.com
Wed Aug 16 17:13:06 UTC 2023


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.

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 :-)).


  *   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)
  *   My tools (e.g. sparc-rtems6-gcc) are located at: $HOME/src/Toolchains/osr_rtems_6_sparc/bin
  *   My kernel is at: $HOME/src/rtems-development/rtems-hello-world/build/sparc-rtems6-erc32/kernel
  *   I'm trying to build for sparc on RTEMS 6 (probably obvious from the previous pieces of information)
  *   I'm building on a linux host (cross-building for sparc)
  *   I'm using the sparc-rtems6-sis (i.e. the sparc simulator) to test the build
  *   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?
  *   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".

Thanks in advance,
Brett






________________________________
From: Vijay Kumar Banerjee <vijay at rtems.org>
Sent: Tuesday, August 15, 2023 12:53 PM
To: Joel Sherrill <joel at rtems.org>
Cc: Brett Sterling <brett.sterling at odysseysr.com>; RTEMS Users RTEMS <users at rtems.org>; Chris Johns <chrisj at rtems.org>
Subject: Re: Networking examples

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.



On Tue, Aug 15, 2023, 13:10 Joel Sherrill <joel at rtems.org<mailto:joel at rtems.org>> wrote:


On Tue, Aug 15, 2023 at 11:57 AM Brett Sterling <brett.sterling at odysseysr.com<mailto:brett.sterling at odysseysr.com>> wrote:
Hello all!

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.


Now, onto the requested build failure information.

Following https://docs.rtems.org/branches/master/legacy-networking/quick_start.html<https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Fquick_start.html&data=05%7C01%7C%7C096144b9e5824cc8c1d808db9dc0e307%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277224010139137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wLKG%2FGJMSBzyFZnjDCBhXAGCutrx6iu4Uazy90YVHag%3D&reserved=0>
../source-builder/sb-set-builder --prefix=$HOME/src/rtems-net-build 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc
RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)
warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake
Build Set: 6/rtems-net-legacy
config: tools/rtems-net-legacy-6.cfg
error: config error: rtems-bsp.cfg:104: RTEMS tools not found (sparc-rtems6-gcc) found; Please check the --with-tools option or --prefix.
Build FAILED
Build Set: Time 0:00:00.012407
Build FAILED
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).

The prefix is where it will be installed. Normally${prefix}/bin/ will contain your cross tools.

--rtems-tools path     : Path to an install RTEMS tool set

And your --with-rtems-bsp is just the architecture. It would need to be something like sparc/leon3.

Have you built the tools? Is sparc-rtems6-gcc in your $PATH? Can you run hello world?

And --host normally denotes the host os where you are building. You usually want --target.

@Vijay should be able to confirm that for sure. I don't think I have built the legacy stack this way recently.

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:

`../source-builder/sb-set-builder --prefix=$PATH_TO_DIR_WITH_BIN --with-rtems-bsp=powerpc/mvme2700 6/rtems-net-legacy`


I have the rtems toolset installed in this prefix path.



prefix=$HOME/src/Toolchains/osr_rtems_6_sparc 6/rtems-net-legacy --host=sparc-rtems6 --with-rtems-bsp=sparc
RTEMS Source Builder - Set Builder, 6 (8e568b2ca348 modified)
warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake
Build Set: 6/rtems-net-legacy
config: tools/rtems-net-legacy-6.cfg
error: config error: rtems-bsp.cfg:131: RTEMS BSP not found (sparc-rtems6-sparc.pc); Please check the --with-rtems option or --prefix.

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

/home/joel/rtems-work/tools/6/bsp-install/lib/pkgconfig/powerpc-rtems6-psim.pc

prefix to RTEMS configure/install: /home/joel/rtems-work/tools/6/bsp-install/

Note that yours would be something like sparc-rtems6-leon3.pc.


+1


Build FAILED
Build Set: Time 0:00:00.014283
Build FAILED
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.

The "Hello World" failure is documented in this ticket: https://devel.rtems.org/ticket/4927<https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdevel.rtems.org%2Fticket%2F4927&data=05%7C01%7C%7C096144b9e5824cc8c1d808db9dc0e307%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277224010139137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ltug2D7m3JcGB47ctz1LqXmwQrvj0J3QsHGT6082lzI%3D&reserved=0>

OK. I dhave added Chris who I think wrote that section.

Can you build the rtems-examples from that repository?

--joel



Thanks again in advance!
Brett



________________________________
From: Joel Sherrill <joel at rtems.org<mailto:joel at rtems.org>>
Sent: Tuesday, August 15, 2023 9:57 AM
To: Brett Sterling <brett.sterling at odysseysr.com<mailto:brett.sterling at odysseysr.com>>
Cc: users at rtems.org<mailto:users at rtems.org> <users at rtems.org<mailto:users at rtems.org>>; Vijay Kumar Banerjee <vijay at rtems.org<mailto:vijay at rtems.org>>
Subject: Re: Networking examples

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.

I add Vijay since he has been working with this.

On Tue, Aug 15, 2023 at 9:27 AM Brett Sterling <brett.sterling at odysseysr.com<mailto:brett.sterling at odysseysr.com>> wrote:
Hello all,

My goal is to integrate networking into our RTEMS solution, so I started here: https://docs.rtems.org/branches/master/legacy-networking/index.html<https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Findex.html&data=05%7C01%7C%7C096144b9e5824cc8c1d808db9dc0e307%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277224010139137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nEv18JBB83NQ7MvKOhhdmwSauz72p6pyk1Y7BHr6ZUk%3D&reserved=0>.

But, as soon as I had started, I hit a failure.  I tried the 'quick start' (https://docs.rtems.org/branches/master/legacy-networking/quick_start.html<https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Flegacy-networking%2Fquick_start.html&data=05%7C01%7C%7C096144b9e5824cc8c1d808db9dc0e307%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277224010139137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wLKG%2FGJMSBzyFZnjDCBhXAGCutrx6iu4Uazy90YVHag%3D&reserved=0>), but regardless of which way I tried to build, the build failed.

Please post about that. This shouldn't happen.

And Vijay has recent experience testing the legacy stack.


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.

Let's see how this failed.

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.

Do you really want the legacy stack or just a network stack?


Less optimally, I would like to find an RTEMS example (any version) WITH NETWORKING that at least completely builds.

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.

Thanks in advance!
Brett

_______________________________________________
users mailing list
users at rtems.org<mailto:users at rtems.org>
http://lists.rtems.org/mailman/listinfo/users<https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C096144b9e5824cc8c1d808db9dc0e307%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638277224010139137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SHOhfsSmpJ8CmlYr0qYwPCvvornvDhqH9gauDgjxFko%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20230816/bb4bfc04/attachment-0001.htm>


More information about the users mailing list