On Wed, Aug 16, 2023 at 12:13 PM Brett Sterling <brett.sterl...@odysseysr.com> wrote: > > 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
You can add the tools path using: --rtems-tools=$HOME/src/Toolchains/osr_rtems_6_sparc If that doesn't work, would it be possible to add "$HOME/src/Toolchains/osr_rtems_6_sparc/bin" into your path using `export` temporarily just to check if that works? > 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? Great. The RTEMS tools are correctly built then, the issue seems to be coming from the command line options. You can also use the `--help` option to see all the options with a brief description with sb-set-builder `../source-builder/sb-set-builder --help` > 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". > `rtems-examples` is a separate repository where we have some example applications that can be used as a reference or starting point for user application development. Please refer to the following repository: https://git.rtems.org/rtems-examples/ Best regards, Vijay > Thanks in advance, > Brett > > > > > > > ________________________________ > From: Vijay Kumar Banerjee <vi...@rtems.org> > Sent: Tuesday, August 15, 2023 12:53 PM > To: Joel Sherrill <j...@rtems.org> > Cc: Brett Sterling <brett.sterl...@odysseysr.com>; RTEMS Users RTEMS > <users@rtems.org>; Chris Johns <chr...@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 <j...@rtems.org> wrote: > > > > On Tue, Aug 15, 2023 at 11:57 AM Brett Sterling > <brett.sterl...@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 > > ../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 > > > 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 <j...@rtems.org> > Sent: Tuesday, August 15, 2023 9:57 AM > To: Brett Sterling <brett.sterl...@odysseysr.com> > Cc: users@rtems.org <users@rtems.org>; Vijay Kumar Banerjee <vi...@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.sterl...@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. > > 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), > 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@rtems.org > http://lists.rtems.org/mailman/listinfo/users _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users