[GSoC 2020]: Weekly thread update

Mritunjay Sharma mritunjaysharma394 at gmail.com
Sun Jul 19 16:08:58 UTC 2020


Thank you, Heinz, for telling that.
I have started writing recipes and will update about it in the new thread.

Thanks
Mritunjay


On Sun, Jul 19, 2020 at 8:49 PM Heinz Junkes <junkes at fhi-berlin.mpg.de>
wrote:

> It uses the legacy-stack.
> When I am back I will adapt rtems_init to use libbsd.
> You should proceed to write rsb recipes.
> Heinz
>
> FHI, Heinz Junkes
>
> On 19. Jul 2020, at 16:03, Mritunjay Sharma <mritunjaysharma394 at gmail.com>
> wrote:
>
> 
>
>
> On Sun, Jul 19, 2020 at 4:28 AM Gedare Bloom <gedare at rtems.org> wrote:
>
>> On Sat, Jul 18, 2020 at 2:02 PM Mritunjay Sharma
>> <mritunjaysharma394 at gmail.com> wrote:
>> >
>> > [UPDATE]: Thank you so much Heinz, with commit
>> `3afec267ab08568ea454789e562450b00feea5c0`v
>> > I was able to successfully built EPICS7 with RTEMS5 for pc-386 and
>> pc-386 qemu both.
>> >
>>
>> Great. Is this with --enable-networking?
>>
>
> Yes.
>
>>
>> Is libbsd still not yet working?
>>
>
> Not sure. Can you tell me the way it can be checked here?
>
>>
>> > As advised, should I begin writing RSB recipe now for RTEMS5?
>> > What can be the next steps?
>> >
>>
>> I think so. You might try to write some simple script first for
>> yourself, to help think through the logic of automation.
>>
>
> Sure, I will be starting a new thread for the next week and I will post it
> there.
>
>>
>> > Please advise and also guide on what will be the best way to begin with
>> writing RSB recipe?
>> >
>>
>> Now that you know how to build by hand, you want to document what you
>> need to do and then you can try to script it. I'm not really sure, but
>> I guess it would be a new kind of "rtems-package" to build, since it
>> is done after rtems is successfully installed? We'll eventually want
>> this to be a vertically integrated package with the RTEMS
>> configuration combined with EPICS for some BSPs that are known to
>> work. Get started, and ask questions as you go.
>>
>> work from doco at
>> https://docs.rtems.org/branches/master/user/rsb/index.html
>> and submit changes as needed to improve it
>>
>
> Thank you so much, Gedare. I will work and update on a new thread soon.
>
>>
>> > Thanks
>> > Mritunjay
>> >
>> > On Sat, Jul 18, 2020 at 10:48 PM Mritunjay Sharma <
>> mritunjaysharma394 at gmail.com> wrote:
>> >>
>> >>
>> >> Thank you so much, I am trying and reverting soon.
>> >>
>> >> On Sat, Jul 18, 2020 at 10:45 PM Heinz Junkes <
>> junkes at fhi-berlin.mpg.de> wrote:
>> >>>
>> >>> Mritunjay,
>> >>> can you try to use the commit 3afec267ab08568ea454789e562450b00feea5c0
>> >>> Dated 25.9. 2019
>> >>>
>> >>> From Heinz
>> >>>
>> >>> On 17.07.2020, at 20:23, Mritunjay Sharma <
>> mritunjaysharma394 at gmail.com> wrote:
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Jul 17, 2020 at 12:53 PM Heinz Junkes <
>> junkes at fhi-berlin.mpg.de> wrote:
>> >>>>
>> >>>> You are right. I was not aware of that the dhcpcd stuff is already
>> included into the source of the epicsPlayground repo. Will have a look into
>> it.
>> >>>> Heinz
>> >>>>
>> >>>> FHI, Heinz Junkes
>> >>>
>> >>>
>> >>> Thank you so much, Heinz! It will be kind of you to advice for now to
>> how to proceed ahead like whether we have to either
>> >>> use and build the old legacy stack using `--enable-networking` or the
>> libbsd stack?
>> >>> Also, should I start writing the recipe for RSB based on the existing
>> notes of how the process went for building
>> >>> EPICS7 for RTEMS5 for pc-386?
>> >>>
>> >>> Also, I have written another blog on what I learnt recently (using
>> mutt). Here's the link:
>> >>>
>> https://medium.com/@mritunjaysharma394/how-to-set-up-mutt-text-based-mail-client-with-gmail-993ae40b0003
>> >>>
>> >>> I also learnt about Networking Drivers from
>> https://docs.rtems.org/branches/master/bsp-howto/networking.html.
>> >>>
>> >>>
>> >>> Thanks,
>> >>> Mritunjay.
>> >>>
>> >>>
>> >>>>
>> >>>> On 15. Jul 2020, at 22:05, Mritunjay Sharma <
>> mritunjaysharma394 at gmail.com> wrote:
>> >>>>
>> >>>> 
>> >>>> Apologies as I mistakenly sent this as a private mail.
>> >>>> I missed to tag Chris, Gedare and RTEMS Devel and that's why sending
>> this again on what
>> >>>> I responded.
>> >>>>
>> >>>> On Wed, Jul 15, 2020 at 10:35 PM Mritunjay Sharma <
>> mritunjaysharma394 at gmail.com> wrote:
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> On Wed, Jul 15, 2020 at 7:48 PM Heinz Junkes <
>> junkes at fhi-berlin.mpg.de> wrote:
>> >>>>>>
>> >>>>>> Hello, Mritunjay,
>> >>>>>>
>> >>>>>> I'm afraid I've lost track of the situation. I am also still on
>> holiday in Norway for 2 weeks and
>> >>>>>> I don't always have perfect internet access.
>> >>>>>
>> >>>>>
>> >>>>
>> >>>> This:->
>> >>>>
>> >>>>>
>> >>>>> I am extremely sorry to disturb you on a holiday. I will try to
>> bring back to you where we currently are:
>> >>>>> As advised by you I already have Built EPICS 7 with RTEMS 4.10 and
>> tested it as well.
>> >>>>> I was doing the same for EPICS7 with RTEMS5 for pc-386. I apologise
>> that I forgot to update the thread that the suggestion
>> >>>>> presented by Gedare to change to  `#include <rtems/bsd.h>` from
>> existing `#include <rtems/bsd/bsd.h>` helped me
>> >>>>> fixed the error mentioned in the start of the thread
>> ("../posix/rtems_init.c:38:10: fatal error: rtems/bsd/bsd.h: No such file
>> or directory
>> >>>>>  #include <rtems/bsd/bsd.h>").
>> >>>>>
>> >>>>> I used the 'make' command again then inside `epics-base`
>> (Downloaded from your GitHub's playground) and then got the
>> >>>>> following error:
>> >>>>>
>> >>>>> `../posix/rtems_init.c:39:10: fatal error: rtems/dhcpcd.h: No such
>> file or directory
>> >>>>>  #include <rtems/dhcpcd.h>
>> >>>>> `
>> >>>>> I discussed this with Gedare on the IRC channel and we concluded
>> that it is there because we have to either
>> >>>>> use and build the old legacy stack using `--enable-networking` or
>> the libbsd stack.
>> >>>>>
>> >>>>> I would like your advice on what should work here and how to
>> approach doing each of these builds?
>> >>>>> Also, I again apologise that I am disturbing you on a holiday.
>> Please enjoy and take care!
>> >>>>>
>> >>>>> Thanks
>> >>>>> Mritunjay
>> >>>>>
>> >>>>>>
>> >>>>>> Where can I find your blog. I only found something from June 9th.
>> What is the current location of the blog?
>> >>>>
>> >>>>
>> >>>> This:->
>> >>>>>
>> >>>>> I have made another blog which as of now deals with building BSPs
>> and I have to update the draft of another one
>> >>>>> which will further demonstrate on how to Build EPICS.
>> >>>>> The link to the blog is:
>> https://medium.com/@mritunjaysharma394/installing-rtems-ecosystem-and-building-your-first-bsp-993d1cf38902
>> >>>>>>
>> >>>>>>
>> >>>>>> I'm afraid you've made a mess of things here.
>> >>>>>
>> >>>>>
>> >>>> This:-
>> >>>>>
>> >>>>> I am sorry if I have and I accept that I am a beginner but am
>> really enjoying the learning I am making this summer.
>> >>>>> Thank you so much for the support everyone in helping me grow and
>> learn.
>> >>>>>
>> >>>>> Thanks
>> >>>>> Mritunjay
>> >>>>>>
>> >>>>>>
>> >>>>>> In the "official" epics repo, you can read
>> >>>>>>
>> >>>>>>
>> https://github.com/epics-base/epics-base/blob/7.0/modules/libcom/RTEMS/rtems_init.c
>> :
>> >>>>>>
>> >>>>>> …
>> >>>>>>
>> >>>>>> #include <rtems/stackchk.h>
>> >>>>>> #include <rtems/rtems_bsdnet.h>
>> >>>>>> #include <rtems/imfs.h>
>> >>>>>> #include <librtemsNfs.h>
>> >>>>>> #include <bsp.h>
>> >>>>>> …
>> >>>>>> Here the definition of the legacy stack will be included
>> >>>>>>
>> >>>>>> #include <rtems/rtems_bsdnet.h>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> Viele Grüße
>> >>>>>> Heinz Junkes
>> >>>>>> --
>> >>>>>> Experience directly varies with equipment ruined.
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> > On 15. Jul 2020, at 05:57, Mritunjay Sharma <
>> mritunjaysharma394 at gmail.com> wrote:
>> >>>>>> >
>> >>>>>> >
>> >>>>>> >
>> >>>>>> > On Wed, Jul 15, 2020 at 5:33 AM Chris Johns <chrisj at rtems.org>
>> wrote:
>> >>>>>> > On 15/7/20 4:30 am, Mritunjay Sharma wrote:
>> >>>>>> > > Hello everyone,
>> >>>>>> > >
>> >>>>>> > > Pardon my mistake for that long thread. From now on the daily
>> updates will be
>> >>>>>> > > given on a thread that will end every week.
>> >>>>>> >
>> >>>>>> > Thank you :)
>> >>>>>> >
>> >>>>>> > > 1) I studied about https://github.com/RTEMS/rtems-libbsd
>> >>>>>> > > 2) Tried to fix the error that I reported yesterday:
>> >>>>>> > >
>> >>>>>> > > ```
>> >>>>>> >
>> >>>>>> > Why cut the compile command line used to build this file out of
>> the message? The
>> >>>>>> > compiler command is important because it lets us see what paths
>> are being used
>> >>>>>> > and I think there may be a problem with them.
>> >>>>>> >
>> >>>>>> > > ../posix/rtems_init.c:38:10: fatal error: rtems/bsd/bsd.h: No
>> such file or directory
>> >>>>>> > >  #include <rtems/bsd/bsd.h>
>> >>>>>> > >           ^~~~~~~~~~~~~~~~~
>> >>>>>> >
>> >>>>>> > I cannot duplicate this because I am not sure what the sequence
>> of commands are
>> >>>>>> > you used to get to here. I am sorry if I missed it in a previous
>> post.
>> >>>>>> >
>> >>>>>> > The error indicates a set up issue. It normally means the
>> networking software
>> >>>>>> > (rtems-libbsd) has not been installed into a prefix path EPICS
>> looks in.
>> >>>>>> >
>> >>>>>> > I am posting the entire command set further ahead in the email
>> which will make things
>> >>>>>> > easier to understand.
>> >>>>>> >
>> >>>>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200719/fb6c9e81/attachment.html>


More information about the devel mailing list