Re: [Xenomai-help] kernel panic unload xeno_nucleus module

2012-04-11 Thread Philippe Gerum

On 04/11/2012 10:58 AM, Alessio Margan @ IIT wrote:

Hi all,

when I try to unload xeno_nucleus module I get a kernel panic and on the
next power on the bios system date is reset.
when configure xenomai nucleus built into the kernel I can reboot correctly.



Kernel panic log would help.


In the bios I disabled HPET and most of the things regarding PM and ACPI.

Here attached same info about system and kernel config.

If possible, I prefer have xenomai configured as modules, is there
anything wrong about my system configuration ?



This should not be a configuration issue. Either some kernel-based 
Xenomai threads (e.g. RTDM driver thread) are still running when 
attempting to unload the nucleus, or a real-time IRQ is still hooked to 
a handler being unmapped, or there is a nucleus bug.



TIA
Alessio

--

ISTITUTO ITALIANO
DI TECNOLOGIA

Alessio Margan
/Senior Technician/
mail me mailto:alessio.mar...@iit.it

Via Morego, 30 16163 Genova
http://maps.google.com/maps?f=qhl=engeocode=q=via+morego,+30+genovasll=37.0625,-95.677068sspn=85.420533,191.601563ie=UTF8ll=44.474913,8.907037spn=0.004685,0.011652t=hz=17iwloc=addr

www.iit.it http://www.iit.it

*Legal Disclaimer*
This electronic message contains information that is confidential. The
information is intended for the use of the addressee only. If you are
not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the
contents of this message is prohibited and may be unlawful. We have
taken every reasonable precaution to ensure that any kind of attachment
to this e-mail has been swept for viruses. However, we cannot accept
liability for any damage sustained as a result of software viruses and
would advise you to carry out your own virus checks before opening any
attachment.
*Avvertenza legale*
Questo messaggio Email contiene informazioni confidenziali riservate ai
soli destinatari. Qualora veniate in possesso di tali informazioni senza
essere definito come destinatario vi reghiamo di leggere le seguenti
note. Ogni apertura, copia, distribuzione del contenuto del messaggio e
dei suoi allegati è proibito e potrebbe violare le presenti leggi.
Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare
che gli allegati non contengano virus. Comunque non assumeremo alcuna
responsabilità per ogni eventuale danno causato da virus software e
simili in quanto è onere del destinatario verificarne l’assenza in ogni
allegato attuando propri indipendenti controlli.



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



--
Philippe.

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


Re: [Xenomai-help] kernel panic unload xeno_nucleus module

2012-04-11 Thread Alessio Margan @ IIT

On 04/11/2012 11:14 AM, Philippe Gerum wrote:

On 04/11/2012 10:58 AM, Alessio Margan @ IIT wrote:

Hi all,

when I try to unload xeno_nucleus module I get a kernel panic and on the
next power on the bios system date is reset.
when configure xenomai nucleus built into the kernel I can reboot correctly.


Kernel panic log would help.


I'll try to get it

In the bios I disabled HPET and most of the things regarding PM and ACPI.

Here attached same info about system and kernel config.

If possible, I prefer have xenomai configured as modules, is there
anything wrong about my system configuration ?


This should not be a configuration issue. Either some kernel-based
Xenomai threads (e.g. RTDM driver thread) are still running when
attempting to unload the nucleus, or a real-time IRQ is still hooked to
a handler being unmapped, or there is a nucleus bug.

after boot the only thing I do is load nucleus and unload it, no other 
xenomai modules are loaded



Thanks
Alessio

--

ISTITUTO ITALIANO
DI TECNOLOGIA

Alessio Margan
/Senior Technician/
mail me mailto:alessio.mar...@iit.it

Via Morego, 30 16163 Genova 
http://maps.google.com/maps?f=qhl=engeocode=q=via+morego,+30+genovasll=37.0625,-95.677068sspn=85.420533,191.601563ie=UTF8ll=44.474913,8.907037spn=0.004685,0.011652t=hz=17iwloc=addr


www.iit.it http://www.iit.it

*Legal Disclaimer*
This electronic message contains information that is confidential. The 
information is intended for the use of the addressee only. If you are 
not the addressee we would appreciate your notification in this respect. 
Please note that any disclosure, copy, distribution or use of the 
contents of this message is prohibited and may be unlawful. We have 
taken every reasonable precaution to ensure that any kind of attachment 
to this e-mail has been swept for viruses. However, we cannot accept 
liability for any damage sustained as a result of software viruses and 
would advise you to carry out your own virus checks before opening any 
attachment.

*Avvertenza legale*
Questo messaggio Email contiene informazioni confidenziali riservate ai 
soli destinatari. Qualora  veniate in possesso di tali informazioni 
senza essere definito come destinatario vi reghiamo di leggere le 
seguenti note. Ogni apertura, copia, distribuzione del contenuto del 
messaggio e dei suoi allegati è proibito e potrebbe violare le presenti 
leggi. Abbiamo attivato ogni possibile e ragionevole precauzione per 
assicurare che gli allegati non contengano virus. Comunque non 
assumeremo alcuna responsabilità per ogni eventuale danno causato da 
virus software e simili in quanto è onere del destinatario verificarne 
l’assenza in ogni allegato attuando propri indipendenti controlli.


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


Re: [Xenomai-help] kernel panic unload xeno_nucleus module

2012-04-11 Thread Philippe Gerum

On 04/11/2012 11:21 AM, Alessio Margan @ IIT wrote:

On 04/11/2012 11:14 AM, Philippe Gerum wrote:

On 04/11/2012 10:58 AM, Alessio Margan @ IIT wrote:

Hi all,

when I try to unload xeno_nucleus module I get a kernel panic and on the
next power on the bios system date is reset.
when configure xenomai nucleus built into the kernel I can reboot correctly.


Kernel panic log would help.


I'll try to get it

In the bios I disabled HPET and most of the things regarding PM and ACPI.

Here attached same info about system and kernel config.

If possible, I prefer have xenomai configured as modules, is there
anything wrong about my system configuration ?


This should not be a configuration issue. Either some kernel-based
Xenomai threads (e.g. RTDM driver thread) are still running when
attempting to unload the nucleus, or a real-time IRQ is still hooked to
a handler being unmapped, or there is a nucleus bug.


after boot the only thing I do is load nucleus and unload it, no other
xenomai modules are loaded


Ok, so this must be a Xenomai bug.




Thanks
Alessio

--

ISTITUTO ITALIANO
DI TECNOLOGIA

Alessio Margan
/Senior Technician/
mail me mailto:alessio.mar...@iit.it

Via Morego, 30 16163 Genova
http://maps.google.com/maps?f=qhl=engeocode=q=via+morego,+30+genovasll=37.0625,-95.677068sspn=85.420533,191.601563ie=UTF8ll=44.474913,8.907037spn=0.004685,0.011652t=hz=17iwloc=addr

www.iit.it http://www.iit.it

*Legal Disclaimer*
This electronic message contains information that is confidential. The
information is intended for the use of the addressee only. If you are
not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the
contents of this message is prohibited and may be unlawful. We have
taken every reasonable precaution to ensure that any kind of attachment
to this e-mail has been swept for viruses. However, we cannot accept
liability for any damage sustained as a result of software viruses and
would advise you to carry out your own virus checks before opening any
attachment.
*Avvertenza legale*
Questo messaggio Email contiene informazioni confidenziali riservate ai
soli destinatari. Qualora  veniate in possesso di tali informazioni
senza essere definito come destinatario vi reghiamo di leggere le
seguenti note. Ogni apertura, copia, distribuzione del contenuto del
messaggio e dei suoi allegati è proibito e potrebbe violare le presenti
leggi. Abbiamo attivato ogni possibile e ragionevole precauzione per
assicurare che gli allegati non contengano virus. Comunque non
assumeremo alcuna responsabilità per ogni eventuale danno causato da
virus software e simili in quanto è onere del destinatario verificarne
l’assenza in ogni allegato attuando propri indipendenti controlli.



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



--
Philippe.

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


Re: [Xenomai-help] kernel panic unload xeno_nucleus module

2012-04-11 Thread Philippe Gerum

On 04/11/2012 11:21 AM, Alessio Margan @ IIT wrote:

On 04/11/2012 11:14 AM, Philippe Gerum wrote:

On 04/11/2012 10:58 AM, Alessio Margan @ IIT wrote:

Hi all,

when I try to unload xeno_nucleus module I get a kernel panic and on the
next power on the bios system date is reset.
when configure xenomai nucleus built into the kernel I can reboot correctly.


Kernel panic log would help.


I'll try to get it

In the bios I disabled HPET and most of the things regarding PM and ACPI.

Here attached same info about system and kernel config.

If possible, I prefer have xenomai configured as modules, is there
anything wrong about my system configuration ?


This should not be a configuration issue. Either some kernel-based
Xenomai threads (e.g. RTDM driver thread) are still running when
attempting to unload the nucleus, or a real-time IRQ is still hooked to
a handler being unmapped, or there is a nucleus bug.


after boot the only thing I do is load nucleus and unload it, no other
xenomai modules are loaded


Btw, you should try with the latest Xenomai code from the 2.6.x 
maintenance branch, to make sure this has not been fixed already.


git://git.xenomai.org/xenomai-2.6.git




Thanks
Alessio

--

ISTITUTO ITALIANO
DI TECNOLOGIA

Alessio Margan
/Senior Technician/
mail me mailto:alessio.mar...@iit.it

Via Morego, 30 16163 Genova
http://maps.google.com/maps?f=qhl=engeocode=q=via+morego,+30+genovasll=37.0625,-95.677068sspn=85.420533,191.601563ie=UTF8ll=44.474913,8.907037spn=0.004685,0.011652t=hz=17iwloc=addr

www.iit.it http://www.iit.it

*Legal Disclaimer*
This electronic message contains information that is confidential. The
information is intended for the use of the addressee only. If you are
not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the
contents of this message is prohibited and may be unlawful. We have
taken every reasonable precaution to ensure that any kind of attachment
to this e-mail has been swept for viruses. However, we cannot accept
liability for any damage sustained as a result of software viruses and
would advise you to carry out your own virus checks before opening any
attachment.
*Avvertenza legale*
Questo messaggio Email contiene informazioni confidenziali riservate ai
soli destinatari. Qualora  veniate in possesso di tali informazioni
senza essere definito come destinatario vi reghiamo di leggere le
seguenti note. Ogni apertura, copia, distribuzione del contenuto del
messaggio e dei suoi allegati è proibito e potrebbe violare le presenti
leggi. Abbiamo attivato ogni possibile e ragionevole precauzione per
assicurare che gli allegati non contengano virus. Comunque non
assumeremo alcuna responsabilità per ogni eventuale danno causato da
virus software e simili in quanto è onere del destinatario verificarne
l’assenza in ogni allegato attuando propri indipendenti controlli.



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



--
Philippe.

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


Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Wolfgang Grandegger
Hi,

On 04/05/2012 02:46 PM, Minh GIANG wrote:
 i'm sorry sir, what i displayed just in the last mail, isn't good, because
 i removed rt_dev_ioctl(...) in cross-link program
 And then, with  rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ).
 
 [93076.465077] base=0x2f8 iir=0x4
 [93076.465082] base=0x2f8 status=0x0
 [93076.465084] base=0x2f8 iir=0x1

TX on rtser0:

 [93076.556794] base=0x3f8 iir=0x2
 [93076.556799] base=0x3f8 status=0x0
 [93076.556801] base=0x3f8 iir=0x1

RX of 8 chars on rtser1:

 [93076.557819] base=0x2f8 iir=0x4
 [93076.557823] base=0x2f8 status=0x0
 [93076.557825] base=0x2f8 iir=0x1

 [93076.558860] base=0x2f8 iir=0x4
 [93076.558865] base=0x2f8 status=0x0
 [93076.558867] base=0x2f8 iir=0x1

 [93076.559898] base=0x2f8 iir=0x4
 [93076.559901] base=0x2f8 status=0x0
 [93076.559903] base=0x2f8 iir=0x1

 [93076.560943] base=0x2f8 iir=0x4
 [93076.560946] base=0x2f8 status=0x0
 [93076.560948] base=0x2f8 iir=0x1

 [93076.561969] base=0x2f8 iir=0x4
 [93076.561971] base=0x2f8 status=0x0
 [93076.561973] base=0x2f8 iir=0x1

 [93076.563006] base=0x2f8 iir=0x4
 [93076.563009] base=0x2f8 status=0x0
 [93076.563011] base=0x2f8 iir=0x1

 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1

 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1

TX on rtser0:

 [93076.656766] base=0x3f8 iir=0x2
 [93076.656770] base=0x3f8 status=0x0
 [93076.656772] base=0x3f8 iir=0x1

RX on rtser1:

 [93076.657793] base=0x2f8 iir=0x4
 [93076.657795] base=0x2f8 status=0x0
 [93076.657797] base=0x2f8 iir=0x1

... and so on.

This looks completely normal and I'm really puzzled why the
rt_dev_ioctl(RTSER_RTIOC_WAIT_EVENT) does not work as expected. Ah, I
just realized that the following patch was not yet applied:

https://mail.gna.org/public/xenomai-core/2011-11/msg9.html

I think it will fix your problem.

Wolfgang.


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


Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Gilles Chanteperdrix
On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote:
 Hi,
 
 On 04/05/2012 02:46 PM, Minh GIANG wrote:
 i'm sorry sir, what i displayed just in the last mail, isn't good, because
 i removed rt_dev_ioctl(...) in cross-link program
 And then, with  rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ).

 [93076.465077] base=0x2f8 iir=0x4
 [93076.465082] base=0x2f8 status=0x0
 [93076.465084] base=0x2f8 iir=0x1
 
 TX on rtser0:
 
 [93076.556794] base=0x3f8 iir=0x2
 [93076.556799] base=0x3f8 status=0x0
 [93076.556801] base=0x3f8 iir=0x1
 
 RX of 8 chars on rtser1:
 
 [93076.557819] base=0x2f8 iir=0x4
 [93076.557823] base=0x2f8 status=0x0
 [93076.557825] base=0x2f8 iir=0x1
 
 [93076.558860] base=0x2f8 iir=0x4
 [93076.558865] base=0x2f8 status=0x0
 [93076.558867] base=0x2f8 iir=0x1
 
 [93076.559898] base=0x2f8 iir=0x4
 [93076.559901] base=0x2f8 status=0x0
 [93076.559903] base=0x2f8 iir=0x1
 
 [93076.560943] base=0x2f8 iir=0x4
 [93076.560946] base=0x2f8 status=0x0
 [93076.560948] base=0x2f8 iir=0x1
 
 [93076.561969] base=0x2f8 iir=0x4
 [93076.561971] base=0x2f8 status=0x0
 [93076.561973] base=0x2f8 iir=0x1
 
 [93076.563006] base=0x2f8 iir=0x4
 [93076.563009] base=0x2f8 status=0x0
 [93076.563011] base=0x2f8 iir=0x1
 
 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1
 
 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1
 
 TX on rtser0:
 
 [93076.656766] base=0x3f8 iir=0x2
 [93076.656770] base=0x3f8 status=0x0
 [93076.656772] base=0x3f8 iir=0x1
 
 RX on rtser1:
 
 [93076.657793] base=0x2f8 iir=0x4
 [93076.657795] base=0x2f8 status=0x0
 [93076.657797] base=0x2f8 iir=0x1
 
 ... and so on.
 
 This looks completely normal and I'm really puzzled why the
 rt_dev_ioctl(RTSER_RTIOC_WAIT_EVENT) does not work as expected. Ah, I
 just realized that the following patch was not yet applied:
 
 https://mail.gna.org/public/xenomai-core/2011-11/msg9.html
 
 I think it will fix your problem.

Sorry, it looks like I completely forgot this patch. Could you rebase it
on the current contents of xenomai-2.6 so that I can merge it?

-- 
Gilles.

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


Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Gilles Chanteperdrix
On 04/11/2012 06:56 PM, Gilles Chanteperdrix wrote:
 On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote:
 Hi,

 On 04/05/2012 02:46 PM, Minh GIANG wrote:
 i'm sorry sir, what i displayed just in the last mail, isn't good, because
 i removed rt_dev_ioctl(...) in cross-link program
 And then, with  rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ).

 [93076.465077] base=0x2f8 iir=0x4
 [93076.465082] base=0x2f8 status=0x0
 [93076.465084] base=0x2f8 iir=0x1

 TX on rtser0:

 [93076.556794] base=0x3f8 iir=0x2
 [93076.556799] base=0x3f8 status=0x0
 [93076.556801] base=0x3f8 iir=0x1

 RX of 8 chars on rtser1:

 [93076.557819] base=0x2f8 iir=0x4
 [93076.557823] base=0x2f8 status=0x0
 [93076.557825] base=0x2f8 iir=0x1

 [93076.558860] base=0x2f8 iir=0x4
 [93076.558865] base=0x2f8 status=0x0
 [93076.558867] base=0x2f8 iir=0x1

 [93076.559898] base=0x2f8 iir=0x4
 [93076.559901] base=0x2f8 status=0x0
 [93076.559903] base=0x2f8 iir=0x1

 [93076.560943] base=0x2f8 iir=0x4
 [93076.560946] base=0x2f8 status=0x0
 [93076.560948] base=0x2f8 iir=0x1

 [93076.561969] base=0x2f8 iir=0x4
 [93076.561971] base=0x2f8 status=0x0
 [93076.561973] base=0x2f8 iir=0x1

 [93076.563006] base=0x2f8 iir=0x4
 [93076.563009] base=0x2f8 status=0x0
 [93076.563011] base=0x2f8 iir=0x1

 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1

 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1

 TX on rtser0:

 [93076.656766] base=0x3f8 iir=0x2
 [93076.656770] base=0x3f8 status=0x0
 [93076.656772] base=0x3f8 iir=0x1

 RX on rtser1:

 [93076.657793] base=0x2f8 iir=0x4
 [93076.657795] base=0x2f8 status=0x0
 [93076.657797] base=0x2f8 iir=0x1

 ... and so on.

 This looks completely normal and I'm really puzzled why the
 rt_dev_ioctl(RTSER_RTIOC_WAIT_EVENT) does not work as expected. Ah, I
 just realized that the following patch was not yet applied:

 https://mail.gna.org/public/xenomai-core/2011-11/msg9.html

 I think it will fix your problem.
 
 Sorry, it looks like I completely forgot this patch. Could you rebase it
 on the current contents of xenomai-2.6 so that I can merge it?
 
Actually, the patches are merged in xenomai-2.6 repository. The problem
we have is simply that xenomai 2.6.0 is too old.

-- 
Gilles.

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


Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Wolfgang Grandegger
On 04/11/2012 06:59 PM, Gilles Chanteperdrix wrote:
 On 04/11/2012 06:56 PM, Gilles Chanteperdrix wrote:
 On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote:
 Hi,

 On 04/05/2012 02:46 PM, Minh GIANG wrote:
 i'm sorry sir, what i displayed just in the last mail, isn't good, because
 i removed rt_dev_ioctl(...) in cross-link program
 And then, with  rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ).

 [93076.465077] base=0x2f8 iir=0x4
 [93076.465082] base=0x2f8 status=0x0
 [93076.465084] base=0x2f8 iir=0x1

 TX on rtser0:

 [93076.556794] base=0x3f8 iir=0x2
 [93076.556799] base=0x3f8 status=0x0
 [93076.556801] base=0x3f8 iir=0x1

 RX of 8 chars on rtser1:

 [93076.557819] base=0x2f8 iir=0x4
 [93076.557823] base=0x2f8 status=0x0
 [93076.557825] base=0x2f8 iir=0x1

 [93076.558860] base=0x2f8 iir=0x4
 [93076.558865] base=0x2f8 status=0x0
 [93076.558867] base=0x2f8 iir=0x1

 [93076.559898] base=0x2f8 iir=0x4
 [93076.559901] base=0x2f8 status=0x0
 [93076.559903] base=0x2f8 iir=0x1

 [93076.560943] base=0x2f8 iir=0x4
 [93076.560946] base=0x2f8 status=0x0
 [93076.560948] base=0x2f8 iir=0x1

 [93076.561969] base=0x2f8 iir=0x4
 [93076.561971] base=0x2f8 status=0x0
 [93076.561973] base=0x2f8 iir=0x1

 [93076.563006] base=0x2f8 iir=0x4
 [93076.563009] base=0x2f8 status=0x0
 [93076.563011] base=0x2f8 iir=0x1

 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1

 [93076.564012] base=0x2f8 iir=0x4
 [93076.564012] base=0x2f8 status=0x0
 [93076.564012] base=0x2f8 iir=0x1

 TX on rtser0:

 [93076.656766] base=0x3f8 iir=0x2
 [93076.656770] base=0x3f8 status=0x0
 [93076.656772] base=0x3f8 iir=0x1

 RX on rtser1:

 [93076.657793] base=0x2f8 iir=0x4
 [93076.657795] base=0x2f8 status=0x0
 [93076.657797] base=0x2f8 iir=0x1

 ... and so on.

 This looks completely normal and I'm really puzzled why the
 rt_dev_ioctl(RTSER_RTIOC_WAIT_EVENT) does not work as expected. Ah, I
 just realized that the following patch was not yet applied:

 https://mail.gna.org/public/xenomai-core/2011-11/msg9.html

 I think it will fix your problem.

 Sorry, it looks like I completely forgot this patch. Could you rebase it
 on the current contents of xenomai-2.6 so that I can merge it?

 Actually, the patches are merged in xenomai-2.6 repository. The problem
 we have is simply that xenomai 2.6.0 is too old.

Argh, you are right. Sorry for the noise.

Wolfgang.



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


Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Minh GIANG
ok for CC, i was afraid of spam everyone by my mail. I answer your
questions.

- non, i didn't modify cross-link program  (even if i used to modify this
program to make it run, but it worked the same way)

- Xenomai 2.6

- Linux 2.6.38 and patch Adeos 2.6.38 of course

- i build the program in Eclipse C++ so my command in setting configuration
is

command :   g++
All options:   -l/usr/xenomai/include -O3 -wall -c -fmessage-length=0

Well, i will soon rebuild my kernel with this patch

Goodbye

On Wed, Apr 11, 2012 at 9:01 PM, Wolfgang Grandegger w...@grandegger.comwrote:

 On 04/11/2012 06:59 PM, Gilles Chanteperdrix wrote:
  On 04/11/2012 06:56 PM, Gilles Chanteperdrix wrote:
  On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote:
  Hi,
 
  On 04/05/2012 02:46 PM, Minh GIANG wrote:
  i'm sorry sir, what i displayed just in the last mail, isn't good,
 because
  i removed rt_dev_ioctl(...) in cross-link program
  And then, with  rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ).
 
  [93076.465077] base=0x2f8 iir=0x4
  [93076.465082] base=0x2f8 status=0x0
  [93076.465084] base=0x2f8 iir=0x1
 
  TX on rtser0:
 
  [93076.556794] base=0x3f8 iir=0x2
  [93076.556799] base=0x3f8 status=0x0
  [93076.556801] base=0x3f8 iir=0x1
 
  RX of 8 chars on rtser1:
 
  [93076.557819] base=0x2f8 iir=0x4
  [93076.557823] base=0x2f8 status=0x0
  [93076.557825] base=0x2f8 iir=0x1
 
  [93076.558860] base=0x2f8 iir=0x4
  [93076.558865] base=0x2f8 status=0x0
  [93076.558867] base=0x2f8 iir=0x1
 
  [93076.559898] base=0x2f8 iir=0x4
  [93076.559901] base=0x2f8 status=0x0
  [93076.559903] base=0x2f8 iir=0x1
 
  [93076.560943] base=0x2f8 iir=0x4
  [93076.560946] base=0x2f8 status=0x0
  [93076.560948] base=0x2f8 iir=0x1
 
  [93076.561969] base=0x2f8 iir=0x4
  [93076.561971] base=0x2f8 status=0x0
  [93076.561973] base=0x2f8 iir=0x1
 
  [93076.563006] base=0x2f8 iir=0x4
  [93076.563009] base=0x2f8 status=0x0
  [93076.563011] base=0x2f8 iir=0x1
 
  [93076.564012] base=0x2f8 iir=0x4
  [93076.564012] base=0x2f8 status=0x0
  [93076.564012] base=0x2f8 iir=0x1
 
  [93076.564012] base=0x2f8 iir=0x4
  [93076.564012] base=0x2f8 status=0x0
  [93076.564012] base=0x2f8 iir=0x1
 
  TX on rtser0:
 
  [93076.656766] base=0x3f8 iir=0x2
  [93076.656770] base=0x3f8 status=0x0
  [93076.656772] base=0x3f8 iir=0x1
 
  RX on rtser1:
 
  [93076.657793] base=0x2f8 iir=0x4
  [93076.657795] base=0x2f8 status=0x0
  [93076.657797] base=0x2f8 iir=0x1
 
  ... and so on.
 
  This looks completely normal and I'm really puzzled why the
  rt_dev_ioctl(RTSER_RTIOC_WAIT_EVENT) does not work as expected. Ah, I
  just realized that the following patch was not yet applied:
 
  https://mail.gna.org/public/xenomai-core/2011-11/msg9.html
 
  I think it will fix your problem.
 
  Sorry, it looks like I completely forgot this patch. Could you rebase it
  on the current contents of xenomai-2.6 so that I can merge it?
 
  Actually, the patches are merged in xenomai-2.6 repository. The problem
  we have is simply that xenomai 2.6.0 is too old.

 Argh, you are right. Sorry for the noise.

 Wolfgang.



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

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