Jan Kiszka | 1 Dec 2006 11:24
Picon

[ANNOUNCE] Xenomai Example Repository

Hi,

the new Xenomai example repository has been created. I don't want to
repeat here what is explained already on the related wiki page, please
have a look at

	http://www.xenomai.org/index.php/Examples

Instead, let me sketch what could be done next:

 o Port existing examples, snippets, demos from ksrc/skins/* over, make
   them compilable and runnable if required.

 o Identify what kind of examples are lacking. You, the user, is needed
   here. What do *you* think is missing, what would be helpful to show?

 o Check what is needed to compile kernel-based examples over PPC 2.4.
   Philippe indicated that some switches are likely missing (x86 is fine
   already, other archs are 2.6-only).

 o Regarding RTDM: driver patterns would be nice. Someone (who I don't
   recall ATM, sorry) once posted a template for a PCI driver. Feel
   invited to repost an updated version. Any further suggestion or ready
   code is welcome as well.

Jan

_______________________________________________
(Continue reading)

Wolfgang Grandegger | 1 Dec 2006 17:45

Re: [ANNOUNCE] Xenomai Example Repository

Jan Kiszka wrote:
> Hi,
> 
> the new Xenomai example repository has been created. I don't want to
> repeat here what is explained already on the related wiki page, please
> have a look at
> 
> 	http://www.xenomai.org/index.php/Examples
> 
> Instead, let me sketch what could be done next:
> 
>  o Port existing examples, snippets, demos from ksrc/skins/* over, make
>    them compilable and runnable if required.
> 
>  o Identify what kind of examples are lacking. You, the user, is needed
>    here. What do *you* think is missing, what would be helpful to show?
> 
>  o Check what is needed to compile kernel-based examples over PPC 2.4.
>    Philippe indicated that some switches are likely missing (x86 is fine
>    already, other archs are 2.6-only).

Some time ago I sent a patch for RTnet using the "kernel CFLAGS 
capturing" trick to get proper switches for 2.4:

http://sourceforge.net/mailarchive/forum.php?thread_id=9493711&forum_id=24610

We could do the same trick here.

> 
>  o Regarding RTDM: driver patterns would be nice. Someone (who I don't
(Continue reading)

Jan Kiszka | 1 Dec 2006 18:22
Picon

Re: [ANNOUNCE] Xenomai Example Repository

Wolfgang Grandegger wrote:
> Jan Kiszka wrote:
>> Hi,
>>
>> the new Xenomai example repository has been created. I don't want to
>> repeat here what is explained already on the related wiki page, please
>> have a look at
>>
>>     http://www.xenomai.org/index.php/Examples
>>
>> Instead, let me sketch what could be done next:
>>
>>  o Port existing examples, snippets, demos from ksrc/skins/* over, make
>>    them compilable and runnable if required.
>>
>>  o Identify what kind of examples are lacking. You, the user, is needed
>>    here. What do *you* think is missing, what would be helpful to show?
>>
>>  o Check what is needed to compile kernel-based examples over PPC 2.4.
>>    Philippe indicated that some switches are likely missing (x86 is fine
>>    already, other archs are 2.6-only).
> 
> Some time ago I sent a patch for RTnet using the "kernel CFLAGS
> capturing" trick to get proper switches for 2.4:
> 
> http://sourceforge.net/mailarchive/forum.php?thread_id=9493711&forum_id=24610
> 
> 
> We could do the same trick here.

(Continue reading)

Philippe Gerum | 1 Dec 2006 18:54
Favicon

Re: [Xenomai-help] Re: [ANNOUNCE] Xenomai Example Repository

On Fri, 2006-12-01 at 18:22 +0100, Jan Kiszka wrote:
> Wolfgang Grandegger wrote:
> > Jan Kiszka wrote:
> >> Hi,
> >>
> >> the new Xenomai example repository has been created. I don't want to
> >> repeat here what is explained already on the related wiki page, please
> >> have a look at
> >>
> >>     http://www.xenomai.org/index.php/Examples
> >>
> >> Instead, let me sketch what could be done next:
> >>
> >>  o Port existing examples, snippets, demos from ksrc/skins/* over, make
> >>    them compilable and runnable if required.
> >>
> >>  o Identify what kind of examples are lacking. You, the user, is needed
> >>    here. What do *you* think is missing, what would be helpful to show?
> >>
> >>  o Check what is needed to compile kernel-based examples over PPC 2.4.
> >>    Philippe indicated that some switches are likely missing (x86 is fine
> >>    already, other archs are 2.6-only).
> > 
> > Some time ago I sent a patch for RTnet using the "kernel CFLAGS
> > capturing" trick to get proper switches for 2.4:
> > 
> > http://sourceforge.net/mailarchive/forum.php?thread_id=9493711&forum_id=24610
> > 
> > 
> > We could do the same trick here.
(Continue reading)

Jeff Webb | 1 Dec 2006 21:12

sem_timedwait return value

In my userspace POSIX program, I get a '-1' return value from sem_timedwait, even when the function
succeeds.  When the function succeeds, errno is '-1' as well.  I am using this workaround at the moment:

      result = sem_timedwait(&cas_sem, &wake_time);
      if (result < 0 && errno > 0) /* errno > 0 to work around xenomai bug */
        {
          print_msg(WARN_MSG, "sem_wait returned with error code %d\n",
                    errno);
          continue;
        }

I am using xenomai 2.2.4, but I think the problem exists in other branches as well.  I believe the attached
patch against the trunk should fix the problem.  Do you agree?

Thanks,

Jeff
Attachment (sem_timedwait.patch): text/x-patch, 516 bytes
_______________________________________________
Xenomai-help mailing list
Xenomai-help <at> gna.org
https://mail.gna.org/listinfo/xenomai-help
Wolfgang Grandegger | 1 Dec 2006 23:35

Re: [ANNOUNCE] Xenomai Example Repository

Jan Kiszka wrote:
> Wolfgang Grandegger wrote:
>> Jan Kiszka wrote:
>>> Hi,
>>>
>>> the new Xenomai example repository has been created. I don't want to
>>> repeat here what is explained already on the related wiki page, please
>>> have a look at
>>>
>>>     http://www.xenomai.org/index.php/Examples
>>>
>>> Instead, let me sketch what could be done next:
>>>
>>>  o Port existing examples, snippets, demos from ksrc/skins/* over, make
>>>    them compilable and runnable if required.
>>>
>>>  o Identify what kind of examples are lacking. You, the user, is needed
>>>    here. What do *you* think is missing, what would be helpful to show?
>>>
>>>  o Check what is needed to compile kernel-based examples over PPC 2.4.
>>>    Philippe indicated that some switches are likely missing (x86 is fine
>>>    already, other archs are 2.6-only).
>> Some time ago I sent a patch for RTnet using the "kernel CFLAGS
>> capturing" trick to get proper switches for 2.4:
>>
>> http://sourceforge.net/mailarchive/forum.php?thread_id=9493711&forum_id=24610
>>
>>
>> We could do the same trick here.
> 
(Continue reading)

Wolfgang Grandegger | 1 Dec 2006 23:47

Re: [Xenomai-help] Re: [ANNOUNCE] Xenomai Example Repository

Philippe Gerum wrote:
> On Fri, 2006-12-01 at 18:22 +0100, Jan Kiszka wrote:
>> Wolfgang Grandegger wrote:
>>> Jan Kiszka wrote:
>>>> Hi,
>>>>
>>>> the new Xenomai example repository has been created. I don't want to
>>>> repeat here what is explained already on the related wiki page, please
>>>> have a look at
>>>>
>>>>     http://www.xenomai.org/index.php/Examples
>>>>
>>>> Instead, let me sketch what could be done next:
>>>>
>>>>  o Port existing examples, snippets, demos from ksrc/skins/* over, make
>>>>    them compilable and runnable if required.
>>>>
>>>>  o Identify what kind of examples are lacking. You, the user, is needed
>>>>    here. What do *you* think is missing, what would be helpful to show?
>>>>
>>>>  o Check what is needed to compile kernel-based examples over PPC 2.4.
>>>>    Philippe indicated that some switches are likely missing (x86 is fine
>>>>    already, other archs are 2.6-only).
>>> Some time ago I sent a patch for RTnet using the "kernel CFLAGS
>>> capturing" trick to get proper switches for 2.4:
>>>
>>> http://sourceforge.net/mailarchive/forum.php?thread_id=9493711&forum_id=24610
>>>
>>>
>>> We could do the same trick here.
(Continue reading)

Philippe Gerum | 1 Dec 2006 23:59
Favicon

Re: [Xenomai-help] Re: [ANNOUNCE] Xenomai Example Repository

On Fri, 2006-12-01 at 23:47 +0100, Wolfgang Grandegger wrote:
> >

[...]

>  
> > This said, I agree that adding a fake module directory to capture the
> > flags set by the main kernel Makefile is one step beyond ugliness; the
> > other approach being to only provide a 2.6 Makefile frag. As 2007
> > approaches, I think that anyone still involved with projects relying on
> > 2.4 kernels do know how to build 2.4 modules for the targeted platform.
> 
> I think the example modules should compile on any platform and the 
> "kernel CFLAGS capturing" trick is the most straight-forward way to do 
> it for 2.4. It simplifies our life, avoids fiddling with various arch 
> dependent flags in the Makefile, which will be even more ugly, and it 
> serves as an example on how to get proper flags. Therefore I tend to add 
> an appropriate script to the "scripts" subdirectory.

That would be acceptable too; the capture trick is ugly, but if we
really want to have the generic examples available to all platforms, I
see no other way to get the exact compilation and link flags. So it's
basically a matter of choice: either we don't provide any Makefile frag
for 2.4, or we implement the capture trick so that every platform can
compile them.

--

-- 
Philippe.
Philippe Gerum | 2 Dec 2006 00:00
Favicon

Re: sem_timedwait return value

On Fri, 2006-12-01 at 14:12 -0600, Jeff Webb wrote:
> In my userspace POSIX program, I get a '-1' return value from sem_timedwait, even when the function
succeeds.  When the function succeeds, errno is '-1' as well.  I am using this workaround at the moment:
> 
>       result = sem_timedwait(&cas_sem, &wake_time);
>       if (result < 0 && errno > 0) /* errno > 0 to work around xenomai bug */
>         {
>           print_msg(WARN_MSG, "sem_wait returned with error code %d\n",
>                     errno);
>           continue;
>         }
> 
> I am using xenomai 2.2.4, but I think the problem exists in other branches as well.  I believe the attached
patch against the trunk should fix the problem.  Do you agree?
> 

Oops, yes. This bug belongs to me. Applied, thanks.

> Thanks,
> 
> Jeff
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help <at> gna.org
> https://mail.gna.org/listinfo/xenomai-help
--

-- 
Philippe.
Jan Kiszka | 3 Dec 2006 15:53
Picon

Re: [ANNOUNCE] Xenomai Example Repository

Wolfgang Grandegger wrote:

> Jan Kiszka wrote:
>   
>> Wolfgang Grandegger wrote:
>>     
>>> Jan Kiszka wrote:
>>>       
>>>> Hi,
>>>>         
>>>> the new Xenomai example repository has been created. I don't want to
>>>>         
>>>> repeat here what is explained already on the related wiki page, please
>>>>         
>>>> have a look at
>>>>         
>>>>     http://www.xenomai.org/index.php/Examples
>>>>         
>>>> Instead, let me sketch what could be done next:
>>>>         
>>>>  o Port existing examples, snippets, demos from ksrc/skins/* over, make
>>>>         
>>>>    them compilable and runnable if required.
>>>>         
>>>>  o Identify what kind of examples are lacking. You, the user, is needed
>>>>         
>>>>    here. What do *you* think is missing, what would be helpful to show?
>>>>         
>>>>  o Check what is needed to compile kernel-based examples over PPC 2.4.
>>>>         
(Continue reading)


Gmane