[okl4-developer] Fast and Optimized System StartUp / OKL4 in an automotive environment

Geoffrey Lee glee at ok-labs.com
Mon Oct 27 15:47:17 EST 2008


On Fri, Oct 24, 2008 at 05:17:18PM +0200, Oliver Mayer-Buschmann wrote:
> Hi,
> 
> I still need help in using the iguana-api.
> I've tried a lot to setup a loaded iguana application
> but I failed in starting the loaded code.
> 
> That's what I've accomplished:
> In my loader-server I have access to a shared memsection, containing an
> elf-file, loaded from flash. This elf-file corresponds to a simple
> iguana application (not yet a server).
> The elf-file is linked to a predetermined virtual address and I'm able
> to create a fixed memsection for the needed address range.
> Then I use the nicta elf-loader to copy the code and data sections to
> this memsection.
> So far so good.
> 
> I've played a litte bit in creating threads, e.g. using
> thread_create_simple(), etc.
> In case I pass a local function of my loader-server to
> thread_create_simple(), the new thread is created an the passed function
> get's correctly executed. But this does not work, if I pass loaded
> functions contained in the fixed memsection. 
> 

Oliver - 

Thread_create_simple() creates a thread context in your local
protection domain.  You may be able to create a thread context
in a remote location with pd_create_thread().

Unfortunately dynamically loading executables is not supported in OKL4 yet, 
so the documentation on how to dynamcially start something up does not
exist.  The best reference right now is probably the source code as
well as the refernece manual.


	-gl

> I'm still wondering what a basic scenario for creating memsections a pd,
> etc. for a dynamically created iguana application would be.
> 
> Shall I first create the fixed memsection,
> then a pd and attach the memsection to the pd?
> 
> What else is needed? Caps, function calls like
> memsection_register_server(), etc. ?
> 
> How can I create a thread in context of the target pd?
> 
> So basically what is the standard scenario and about what do I have take
> care?
> 
> Thx,
> 
> Oliver
> 
> > > There is an Iguana reference manual on the OKL4 wiki.  Is there
> > > something specific that you are after?
> > 
> > I'm after a sample Implementation how additional server's are
> > registered
> > to iguana. Some explanation for which API calls have to be performed
> > in
> > which order. That's what I mean when I talk about semantic.
> > > 
> > >       -gl
> 
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
> 

-- 




More information about the Developer mailing list