All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] update from fusion 0.9.1 to xenomai 2.4.0
@ 2007-12-27 15:04 Racconico Lambrati
  2007-12-27 16:15 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 20+ messages in thread
From: Racconico Lambrati @ 2007-12-27 15:04 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

Hi.

I've update my system to xenomai 2.4.0 from fusion 0.9.1 using vxworks skin

I used http://www.captain.at/xenomai-porting-fusion.php to make the porting
of my application.

now I have this linker problem:

... undefined reference to 'printk'
... undefined reference to 'intUnlock'
... undefined reference to 'intLock'
... undefined reference to 'sysClkConnect'

could you give me an hint?

thanks, Racconico

[-- Attachment #2: Type: text/html, Size: 563 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [Xenomai-help] update from fusion 0.9.1 to xenomai 2.4.0
@ 2007-12-28  1:56 Racconico Lambrati
  2007-12-28 14:30 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 20+ messages in thread
From: Racconico Lambrati @ 2007-12-28  1:56 UTC (permalink / raw)
  To: xenomai-help

[-- Attachment #1: Type: text/plain, Size: 2869 bytes --]

2007/12/27, Philippe Gerum <rpm@xenomai.org>:
>
> Racconico Lambrati wrote:
> >
> > How can I run it in kernel space?
> > The application is designed to be little and stable, and with fusion
> > 0.9.1 run without problem
> >
>
> If your application based on 0.9.1 used to run in user-space, then it
> must have been based on the UVM support. This support has been dismissed
> since Xenomai v2.3-rc1, because it was a temporary hack allowing
> user-space development until all skins have a real user-space interface,
> which is now the case.


murphy's law  could be applied here! I use uvm

The services you mention are now only available from the kernel-based
> interface, provided by the xeno_vxworks.ko module, because they do not
> make sense from a userland perspective.


then is it possible to create a kernel-based application with vxworks skins?
How can i do it?
I use "$(xeno-config --uvm-ldflags) -lvxworks -lrtai -lm" as LDFLAGS option.

Userland applications based on the VxWorks API
> (/usr/xenomai/lib/libvxworks.so) should not need them at all. If for
> some reason they do, then you should consider splitting the application
> in two parts, one kernel-based, the other one running in userland. The
> point is that dealing with interrupts should most often remain a kernel
> business, and this obviously also applies to interposing on the tick
> timer.


I've alredy done, using rt_pipe to make a communication line to a non-RT
application and my RT application.

If your application was not based on the UVM, then it must have been
> running embodied into a kernel module, in which case the issue is
> already solved.


This is not my case

Rehashing what Gilles already told you: until you actually explain _why_
> you need such services, nobody will be able to suggest any solution to
> your problem, I'm afraid.
>
> --
> Philippe.
>

The application use intLock and intUnlock first of all to handle a CAN
device.
I use it also to handle a timers array. when I delete a timers from an array
I disable the interrupt to avoid some race condition's problem (maybe a
timer that is going to be delete wake up during it's deleting routine).

I use SysClkConnect to hang the clock to a function that send the Give
signal to a semaphore every 'n' cycle.

the semaphore is used to give the start to a function that handle the most
important duty of the system, then when it term it cycle, it send the Give
signal to a second semaphore that will launch a second task that manage the
lesser important things.

This is an overview of my software. there aren't many other thing, only the
processing of the data received from CAN device, that is a lot of code but
it don't need the realtime services. this code is executed in the first task


I hope you understand my needs (my English is not so good).


Now I want understand the possible solution to my problem.

[-- Attachment #2: Type: text/html, Size: 4075 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-01-31  9:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-27 15:04 [Xenomai-help] update from fusion 0.9.1 to xenomai 2.4.0 Racconico Lambrati
2007-12-27 16:15 ` Gilles Chanteperdrix
2007-12-27 18:05   ` Racconico Lambrati
2007-12-27 18:13     ` Gilles Chanteperdrix
     [not found]       ` <8b3b30860712271028p12db5801mb156e6d58a01008f@domain.hid>
2007-12-27 18:35         ` Racconico Lambrati
2007-12-27 20:30           ` Philippe Gerum
     [not found]             ` <8b3b30860712271741q46bd1d7bx9c8548013affd024@domain.hid>
2007-12-28  1:47               ` Racconico Lambrati
  -- strict thread matches above, loose matches on Subject: below --
2007-12-28  1:56 Racconico Lambrati
2007-12-28 14:30 ` Gilles Chanteperdrix
2007-12-30 20:17   ` Racconico Lambrati
2007-12-31 14:16     ` Gilles Chanteperdrix
2007-12-31 14:58       ` Racconico Lambrati
2007-12-31 15:04         ` Gilles Chanteperdrix
2007-12-31 15:23           ` Racconico Lambrati
2008-01-23 14:10             ` Gilles Chanteperdrix
2008-01-29  9:15               ` Racconico Lambrati
2008-01-29 15:05                 ` Gilles Chanteperdrix
2008-01-31  8:10                   ` Racconico Lambrati
2008-01-31  9:15                     ` Gilles Chanteperdrix
2008-01-31  9:26                     ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.