All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_dev_read hangup
@ 2010-12-23  3:34 Peter Warner
  2011-01-01 22:36 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Warner @ 2010-12-23  3:34 UTC (permalink / raw)
  To: xenomai

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

Hi Xenomai Users,

first I Will Give the Details of My System:

Processor: core2duo
RAM: 4GB
Operating System: Ubuntu 10.04
kernel: 2.6.32.15 (Patched with xenomai)
Xenomai: 2.5.4

I am Using UART sample code Code Provided with xenomai. It is working fine
for about few minutes I am able to send and receive data accurately.
I am using rt_dev_read()  and rt_dev_write() from the user space to read and
write the data respectively. However the code is getting hanged after some
time I tried to debug and Finally I found the code is getting hanged every
time at rt_dev_read() it is not coming back from there.

What Might be wrong here I tried to find out the documentation of
rt_dev_read() but I did not get it.
Again I tried the same with xenomai-2.5.5.2 and I found it is getting hanged
Immediately i.e It is not running at all.

can any of you Please Suggest whats the Wrong Here.
any Suggestion?



Thank you.

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

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

* Re: [Xenomai-help] rt_dev_read hangup
  2010-12-23  3:34 [Xenomai-help] rt_dev_read hangup Peter Warner
@ 2011-01-01 22:36 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2011-01-01 22:36 UTC (permalink / raw)
  To: Peter Warner; +Cc: xenomai

Peter Warner wrote:
> Hi Xenomai Users,
> 
> first I Will Give the Details of My System:
> 
> Processor: core2duo
> RAM: 4GB
> Operating System: Ubuntu 10.04
> kernel: 2.6.32.15 (Patched with xenomai)
> Xenomai: 2.5.4
> 
> I am Using UART sample code Code Provided with xenomai. It is working fine
> for about few minutes I am able to send and receive data accurately.
> I am using rt_dev_read()  and rt_dev_write() from the user space to read and
> write the data respectively. However the code is getting hanged after some
> time I tried to debug and Finally I found the code is getting hanged every
> time at rt_dev_read() it is not coming back from there.
> 
> What Might be wrong here I tried to find out the documentation of
> rt_dev_read() but I did not get it.

rt_dev_read is documented here:
http://www.xenomai.org/documentation/xenomai-2.5/html/api/group__userapi.html#g89c490849c0e1879ae672a23b84a1eda

> Again I tried the same with xenomai-2.5.5.2 and I found it is getting hanged
> Immediately i.e It is not running at all.
> 
> can any of you Please Suggest whats the Wrong Here.
> any Suggestion?

2.5.5 introduced a multi-processor scheduler bug. This, along with a few
other bugs, should be fixed in the next release of the 2.5 branch.

In the mean-time, you can try running a kernel compiled without
CONFIG_SMP, or apply the following patch:
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=1e71e8300dfc64fef918033663567d6a65ad638c

-- 
                                                                Gilles.


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

end of thread, other threads:[~2011-01-01 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23  3:34 [Xenomai-help] rt_dev_read hangup Peter Warner
2011-01-01 22:36 ` 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.