EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS 7 + RTEMS 5
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Siddons, David" <siddons at bnl.gov>, EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 11 Jun 2021 07:49:17 -0700
Hi Pete,

On 6/11/21 5:37 AM, Siddons, David via Tech-talk wrote:
> I'm trying to learn how to build EPICS 7 for RTEMS 5. I'm starting with the beagleboneblack BSP since it is already in the system. I can build everything fine, and the test IOC loads and starts. By default it assumes that all ancillary files (st.cmd, db, dbd etc.) will be loaded via NFS. My situation is such that this is not a viable system. I remember in earlier RTEMS versions it was possible to make an IMFS from a tar appended to the bootable binary. I can see hints of that in libcom, but I can't see how to configure the system for that. Has anyone done this?

I don't think I was ever able to make IMFS work, though it has been awhile
since I looked into this.  Perhaps this was just me.

I added a simpler, though less efficient/functional, mechanism to enable
self-contained unittest executables.  This hooks in via a global variable
'epicsRtemsFSImage' [1].  There is an associated script 'epicsMakeMemFs.pl'.

This is used by adding a Makefile rule to package some files.  In one example [2]
the files names are stored in "$(TESTFILES)".

> PROD_SRCS_RTEMS += rtemsTestData.c
...
> include $(TOP)/configure/RULES
...
> rtemsTestData.c : $(TESTFILES) $(TOOLS)/epicsMakeMemFs.pl
> 	$(PERL) $(TOOLS)/epicsMakeMemFs.pl $@ epicsRtemsFSImage $(TESTFILES)


[1] https://github.com/epics-base/epics-base/blob/3c329c1b48fd25f337745764dd853c3d343f12b5/modules/libcom/RTEMS/posix/rtems_init.c#L210

[2] https://github.com/epics-base/epics-base/blob/3c329c1b48fd25f337745764dd853c3d343f12b5/modules/libcom/test/Makefile#L338-L339

References:
EPICS 7 + RTEMS 5 Siddons, David via Tech-talk

Navigate by Date:
Prev: EPICS 7 + RTEMS 5 Siddons, David via Tech-talk
Next: Instructions on using manage-procs procServ and Conserver Smith, William via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: EPICS 7 + RTEMS 5 Siddons, David via Tech-talk
Next: Instructions on using manage-procs procServ and Conserver Smith, William via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 11 Jun 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·