EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Unresolved symbol: rtemsTicksPerSecond_double
From: Andrew Johnson <[email protected]>
To: Till Straumann <[email protected]>, "Ernest L. Williams Jr." <[email protected]>
Cc: EPICS core-talk <[email protected]>, [email protected], Arturo Alarcon <[email protected]>, Steve Shoaf <[email protected]>
Date: Fri, 02 May 2008 09:46:58 -0500
Till, Ernest,

Does what Eric describes provide what you guys need? The EPICS rtems_netconfig.c file is really an application-specific network configuration file so in many cases you may need to have your own anyway.

- Andrew

Eric Norum wrote:
There are some mechanisms already available.

1) EPICS RTEMS support breaks the configuration/initialization into several source files. If, for example, your application requires some specialized network configuration, simply copy rtems_netconfig.c to the application directory, make the changes, and add rtems_netconfig.c to the application Makefile. To do this on a site-wide basis, put your site-specific version of rtems_netconfig.o into a support module where it will be linked before -lrtemsCom is encountered. There's a separate rtems_config.c file, too.

2) As noted in the EPICS R3.14.10 release notes, there are some hooks to make it easier to set up your own specific configuration:
Added hooks for application routines to supply special network configuration parameters. The RTEMS startup code calls epicsRtemsInitPreSetBootConfigFromNVRAM just before reading values from NVRAM and epicsRtemsInitPostSetBootConfigFromNVRAM just afterwards. See epicsRtemsInitHooks.h for prototypes and global variables.


On May 1, 2008, at 4:10 PM, Andrew Johnson wrote:

Till Straumann wrote:

seems that 3.14.10 does a more initialization in the 'Init' function
which we don't use (e.g., because it hardcodes things like the the
amount of mbuf  (networking buffers) space [which ends up
being the same] and whether BOOTP should be used.

IMHO we should come up with a better way of initializing the system
that is more flexible (here we use a bootloader plus a small library
for connecting the bootloader, user interactive input, non-volatile memory
and the bootee).

For the time being, IMHO 'Init' should be broken up into pieces
that
a) deal with initializing RTEMS (networking, filesystem, console)
b) deal with initializing EPICS (setting some environment variables,
   rtemsTicksPerSecond_double etc.)

The user should be able to override all of (a) but use (b) to initialize
EPICS on an RTEMS system of her preference.

That seems entirely reasonable, can you work with Eric to come up with a proposal and patch that works for both camps? R3.14.10 is not set in stone yet, and it would be good to get this cleared up before the release.

- Andrew
--
When a distinguished but elderly scientist states that something is
possible, he is almost certainly right.  When he states that something
is impossible, he is very probably wrong.  -- Arthur C. Clarke

Replies:
Re: Unresolved symbol: rtemsTicksPerSecond_double Till Straumann

Navigate by Date:
Prev: Re: NDEBUG Ben Franksen
Next: Re: Unresolved symbol: rtemsTicksPerSecond_double Till Straumann
Index: 2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: NDEBUG Ben Franksen
Next: Re: Unresolved symbol: rtemsTicksPerSecond_double Till Straumann
Index: 2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024