Re: [Xenomai-core] Auto closing of file descriptors and fork.

2007-12-20 Thread Daniel Schnell
Gilles Chanteperdrix wrote:
> Hi,
> 
> I have a problem with auto closing of file descriptors and fork. I
> have an application (a modified pppd, to name it), which in a certain
> mode (pppd "updetach" mode) opens some real-time file descriptors,
> forks and exit the parent, continuing to use the file descriptors in
> the child. The problem is that when exiting the parent, file
> descriptors are automatically destroyed and therefore can not be used
> in the child.  
> 
> Any ideas for a fix ?

Maybe not exiting the child but saying waitpid() ?



Daniel Schnell.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai on Efika board

2007-10-30 Thread Daniel Schnell
Giammarco Zacheo wrote:
> Does anybody ever tried to port Xenomai on a Efika board?
> 
> http://www.genesippc.com/efika.php
> 
> It is a freescale powerpc based board, with some patches to make
> linux work on it. I have read some emails on the net talking about
> RTAI, so what about Xenomai?  
> 
> Is is realistic that the adeos patch blindly work on the already
> patched kernel? 


We have a MPC5200B based board running on a 2.6.23 Denx Linux Kernel,
which contains MPC5200B specific patches. Uboot support should exist
already for Efika.

There is no apparent reason why Xenomai will not run on this board as
good as on our hardware. Kernel 2.6.24 should support it out of the box
as the MPC5200B patches are now inside the official Linux kernel.


Best regards,

Daniel Schnell.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] RTCAN (MSCAN) doesn't compile on latest Denx 2.6.23

2007-09-26 Thread Daniel Schnell
Wolfgang Grandegger wrote:

> 
> I have a patch already since a while but forgot to post it. Could you
> please give the attached patch a try? 
> 

I have given the patch a try and it doesn't quite work out of the box,
as there is an index off-by-one error concerning the configured CAN
ports. The result is that probing the CAN controller starts with the
second entry in the device tree and a random address will be probed for
the second CAN controller where ioremap gladly bumps out with an error
which results in a RT-CAN shutdown.

The applied patch solves the issue for me. I don't know if it works in
case of (! #defined CONFIG_PPC_MERGE)


Best regards,

Daniel.


mscan_fix_ot_index.patch
Description: mscan_fix_ot_index.patch
___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] RTCAN (MSCAN) doesn't compile on latest Denx 2.6.23

2007-09-24 Thread Daniel Schnell
Wolfgang Grandegger wrote:

 
> It's a bit more tricky as it has to deal with flat device tree based
> resource management. 
> 

Yes this makes sense.


> I have a patch already since a while but forgot to post it. Could you
> please give the attached patch a try? 
> 

Patch applies and compiles cleanly. I will give it a try as soon as I
added the support for our board. I have already support for a 2.6.20
Kernel, so this should be no big deal.

Slightly OT:
Do you know the status of the mpc5200 support of the Denx-2.6 kernel
concerning ATA and FEC ? Are the latest patches from Sylvain Munaut and
Grant Likely already inside ?

What I find nice about the Denx kernel Repo is, that together with
Xenomai there are now two options for opening the MSCAN device.


Best regards,

Daniel Schnell.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


[Xenomai-core] RTCAN (MSCAN) doesn't compile on latest Denx 2.6.23

2007-09-24 Thread Daniel Schnell
Hi,

I have cross compiled Xenomai latest trunk (Adeos-1.7) for the Denx
2.6.23 tree for a PowerPC5200 arch, and the only annoyance I can see is
that MSCAN driver for Xenomai is not compiling because of missing
defines/enums in asm-powerpc/mpc52xx.h in comparision to
asm-ppc/mpc52xx.h.

Looking at the included socket-can mscan driver, things seem to have
changed quite a bit since the socketcan has been ported to
RTCAN/Xenomai.

Wolfgang, Jan, is the MSCAN RT driver just needing the appropriate
defines inside asm-powerpc/mpc52xx.h or or does the driver itself need
changes ? How does the socketcan MSCAN driver come along without these ?


Best regards,

Daniel Schnell. 


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core