<div dir="ltr"><div dir="auto">Sir , <div dir="auto">It would be very helpful to know about potential mentors of (Replace mongoose with civetweb) <a href="https://devel.rtems.org/ticket/4334" target="_blank">https://devel.rtems.org/ticket/4334</a> this project.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 29, 2021, 9:39 PM Gedare Bloom <<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</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">On Mon, Mar 29, 2021 at 9:49 AM Ayushman Mishra<br>
<<a href="mailto:ayushvidushi01@gmail.com" rel="noreferrer" target="_blank">ayushvidushi01@gmail.com</a>> wrote:<br>
><br>
> I have installed libbsd package (made<br>
> RTEMS_POSIX_API=True,RTEMS_NETWORKING=True in config.ini file to<br>
> enable POSIX and networking) but I am still confused about the work<br>
That doesn't look right. RTEMS_NETWORKING=True enables the legacy<br>
network stack. If you want to build libbsd, you need to check out<br>
<a href="https://git.rtems.org/rtems-libbsd/" rel="noreferrer noreferrer" target="_blank">https://git.rtems.org/rtems-libbsd/</a><br>
<br>
> already done in this project in past. Also after interacting on<br>
> discord I think completely replacing  mongoose with another web-server<br>
> is not a good option since it may rise some user complaints who are<br>
> already using old system and may find it difficult to instantly switch<br>
> over to new system , instead civetweb can be added as an extra new<br>
> web-server where user has a choice to either use old mongoose or the<br>
> new web server both having all dependencies and functionalities<br>
> available.<br>
><br>
No, we will replace mghttpd with civetweb. Anyone who still wants the<br>
frozen version of mghttpd can revive it, but we want to replace it<br>
moving forward.<br>
<br>
> Also I still don't know whether the project #4334 is long enough for<br>
> summer of code project and after going through docs I think<br>
There are other activities involved in getting civetweb to work well<br>
with RTEMS. It should be sufficient, but you would need to flesh out<br>
the proposal details with mentor assistance. To be clear, it will be<br>
C/network programming.<br>
<br>
> <a href="https://devel.rtems.org/ticket/4272" rel="noreferrer noreferrer" target="_blank">https://devel.rtems.org/ticket/4272</a> is also a very interesting project<br>
> since now I think I know a little bit about BSPs and I am good in<br>
> python and know shell-scripting. I would be very grateful to know more<br>
> about this project.<br>
You should start a new thread to discuss this project. I thought<br>
someone else may have inquired about this, maybe it was you? I didn't<br>
see any response yet, but probably because it was buried in other<br>
content (like this comment) so likely the potential mentor didn't even<br>
notice it, especially since all you mention here is the ticket number.<br>
<br>
Gedare<br>
<br>
> Thanks.<br>
><br>
> On Sat, Mar 27, 2021 at 5:36 PM Ayushman Mishra<br>
> <<a href="mailto:ayushvidushi01@gmail.com" rel="noreferrer" target="_blank">ayushvidushi01@gmail.com</a>> wrote:<br>
> ><br>
> > Greetings to all the respected mentors,<br>
> > 1. I saw there has been a lot of discussion regarding replacing<br>
> > mongoose with civetweb (<br>
> > <a href="https://lists.rtems.org/pipermail/devel/2016-April/014661.html" rel="noreferrer noreferrer" target="_blank">https://lists.rtems.org/pipermail/devel/2016-April/014661.html</a> ).<br>
> > I think the basic outline of the project is like this<br>
> > a. Completely removing mongoose and replace it with civetweb and make<br>
> > it configurable in rsb<br>
> > b. check the parameters and options available in civetweb and make it<br>
> > usable for users in rtems.<br>
> > c. making test-cases for civetweb (should be similar to mongoose)<br>
> > d. documentation of using civetweb and web-server in general.<br>
> > I would be very grateful to know what is the actual current status of<br>
> > this project and the coding involved in it enough for a summer of code<br>
> > project or some extra things should be added in it.<br>
> ><br>
> > Also,<br>
> > 2. I have build bsp on rtems6 and a simple application is working<br>
> > correct, but while trying to build libbsd package in rtems6<br>
> > (../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 \<br>
> >   --host=sparc-rtems6 --with-rtems-bsp=erc32 6/rtems-libbsd ) I am<br>
> > constantly getting build failed<br>
> > RTEMS Source Builder - Set Builder, 6 (ade089253e70)<br>
> > Build Set: 6/rtems-libbsd<br>
> > config: tools/rtems-libbsd-6.cfg<br>
> > error: rtems-bsp.cfg:155: invalid %if operator:  -mcpu=cypress<br>
> > -I/home/ayush/quick-start/rtems/6/sparc-rtems6/erc32/lib/include ==<br>
> > Build FAILED<br>
> > Build Set: Time 0:00:00.045392<br>
> > Build FAILED<br>
> ><br>
> > I also tried building all packages for bsp erc32<br>
> > (../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 \<br>
> >     --with-rtems-tests=yes bsps/erc32) but after building for more<br>
> > than an hour it also gave build failed error.<br>
> > building: sparc-rtems6-kernel-erc32-1<br>
> > error: building sparc-rtems6-kernel-erc32-1<br>
> > Build FAILED<br>
> >   See error report: rsb-report-sparc-rtems6-kernel-erc32-1.txt<br>
> > error: building sparc-rtems6-kernel-erc32-1<br>
> > Build Set: Time 0:23:14.195494<br>
> > error: building sparc-rtems6-kernel-erc32-1<br>
> > Build Set: Time 3:55:05.826612<br>
> > Build FAILED<br>
> ><br>
> > Thanks, Ayushman<br>
> ><br>
> > On Mon, Mar 22, 2021 at 6:37 AM Ayushman Mishra<br>
> > <<a href="mailto:ayushvidushi01@gmail.com" rel="noreferrer" target="_blank">ayushvidushi01@gmail.com</a>> wrote:<br>
> > ><br>
> > > Thanks a lot for help and information , actually i am trying to setup<br>
> > > mongoose on simple rtems application<br>
> > > (<a href="https://devel.rtems.org/wiki/Developer/Mongoose_Web_Server" rel="noreferrer noreferrer" target="_blank">https://devel.rtems.org/wiki/Developer/Mongoose_Web_Server</a>) and for<br>
> > > that right now I am trying to configure networking and file-system in<br>
> > > the application.<br>
> > ><br>
> > > On Sun, Mar 21, 2021 at 8:54 PM Joel Sherrill <<a href="mailto:joel@rtems.org" rel="noreferrer" target="_blank">joel@rtems.org</a>> wrote:<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > On Sun, Mar 21, 2021, 4:45 AM Christian Mauderer <<a href="mailto:oss@c-mauderer.de" rel="noreferrer" target="_blank">oss@c-mauderer.de</a>> wrote:<br>
> > > >><br>
> > > >> Hello Ayushman,<br>
> > > >><br>
> > > >> On 21/03/2021 04:15, Ayushman Mishra wrote:<br>
> > > >> > Ayushman<br>
> > > >> > Hello everyone , I am very much interested in taking<br>
> > > >> > <a href="https://devel.rtems.org/ticket/4334" rel="noreferrer noreferrer" target="_blank">https://devel.rtems.org/ticket/4334</a><br>
> > > >> > as a GSOC 2021 project. I know some basic networking concepts and would like to<br>
> > > >> > learn more about it and how its applied to OS like RTEMS , regarding<br>
> > > >> > this I have some questions.<br>
> > > >><br>
> > > >> Note that the ticket will be more about integrating civetweb into a<br>
> > > >> RTEMS Source Builder (RSB) recipe and finding a way to make it<br>
> > > >> configurable there. Alternative could be some kind of stand alone repo<br>
> > > >> like for littlevgl.<br>
> > > ><br>
> > > ><br>
> > > > Making the civitweb configure options available to RTEMS user is a key point.<br>
> > > ><br>
> > > > It may make sense to do a repo with waf build system and config.ini that maps to their settings.<br>
> > > ><br>
> > > >><br>
> > > >> civetweb builds on RTEMS nearly out of the box. So don't expect too much<br>
> > > >> C-Code.<br>
> > > ><br>
> > > ><br>
> > > > I set it up recently on Linux for embedding in their application. As you turned on options, it had more dependencies. This would have to be managed with RTEMS.<br>
> > > ><br>
> > > >><br>
> > > >> I'm not yet sure how much work will be on that ticket. If it is too few<br>
> > > >> for a whole GSoC, you might want to think about reviving the discussion<br>
> > > >> about some useful civetweb parameters (for an embedded system) here:<br>
> > > >><br>
> > > >>      <a href="https://github.com/civetweb/civetweb/pull/297" rel="noreferrer noreferrer" target="_blank">https://github.com/civetweb/civetweb/pull/297</a><br>
> > > ><br>
> > > ><br>
> > > > +1<br>
> > > ><br>
> > > > How to present the options to the user and manage their dependencies would be a key part of this.<br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> ><br>
> > > >> > 1. After building a simple hello world application how and where should i write<br>
> > > >> > configurations of<br>
> > > >> > <a href="https://docs.rtems.org/branches/master/networking/using_networking_rtems_app.html" rel="noreferrer noreferrer" target="_blank">https://docs.rtems.org/branches/master/networking/using_networking_rtems_app.html</a><br>
> > > >> > OR  <a href="https://docs.rtems.org/branches/master/user/migration/v4_11-to-v5.html#networking" rel="noreferrer noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/migration/v4_11-to-v5.html#networking</a><br>
> > > >> > to start using networking stack in RTEMS .<br>
> > > >><br>
> > > >> The documentation is currently mostly for the legacy stack. Please<br>
> > > >> ignore most of that. You should focus on a BSP that uses libbsd. The<br>
> > > >> legacy stack and it's documentation will be removed from the main repos<br>
> > > >> soon.<br>
> > > >><br>
> > > >> > Also I think a simple shell has to be spawned to use networking modules in RTEMS<br>
> > > >> > and for getting it this<br>
> > > >> > <a href="https://docs.rtems.org/branches/master/shell/configuration_and_init.html#attached-to-a-serial-port" rel="noreferrer noreferrer" target="_blank">https://docs.rtems.org/branches/master/shell/configuration_and_init.html#attached-to-a-serial-port</a><br>
> > > >> > I think could be a simple method and for doing so ( like executing<br>
> > > >> > rtems_shell_init with parameters )<br>
> > > >> > do i have to run the specific test in testsuite or re-run the application<br>
> > > >><br>
> > > >> There is a "mghttpd01" test in rtems-libbsd which is used for the<br>
> > > >> current fixed version of mongoose that is integrated in RTEMS. I would<br>
> > > >> suggest to use that as a starting point.<br>
> > > >><br>
> > > >> ><br>
> > > >> > 2. Is there any specific device or bsp needed for running networking<br>
> > > >> > or shell configurations<br>
> > > >> > with file-system in RTEMS<br>
> > > >><br>
> > > >> Basically you can use every BSP that has network support. A good<br>
> > > >> simulation BSP where you don't need any hardware is xilinx_zynq_a9_qemu:<br>
> > > >><br>
> > > >> <a href="https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#debugging-with-xilinx-zynq-a9-qemu" rel="noreferrer noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#debugging-with-xilinx-zynq-a9-qemu</a><br>
> > > >><br>
> > > >> Best Regards<br>
> > > >><br>
> > > >> Christian<br>
> > > >><br>
> > > >> > I would be very thankful if someone can please clarify my doubts and<br>
> > > >> > guide me further<br>
> > > >> > with this project as I am getting lost and don't know how to proceed<br>
> > > >> > after building a simple application.<br>
> > > >> > Thank-you<br>
> > > >> > _______________________________________________<br>
> > > >> > devel mailing list<br>
> > > >> > <a href="mailto:devel@rtems.org" rel="noreferrer" target="_blank">devel@rtems.org</a><br>
> > > >> > <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> > > >> ><br>
> > > >> _______________________________________________<br>
> > > >> devel mailing list<br>
> > > >> <a href="mailto:devel@rtems.org" rel="noreferrer" target="_blank">devel@rtems.org</a><br>
> > > >> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" rel="noreferrer" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>